Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

StartAudioStream

Type
Notification
Sender
SDL
Purpose
Initiate an audio streaming service between SDL and the HMI to stream audio data.

Request

Parameters

Name Type Mandatory Additional
url String true minlength: 21
maxlength: 500
appID Integer true

Response

Parameters

This RPC has no additional parameter requirements

Sequence Diagrams

Example Request

{
  "jsonrpc" : "2.0",
  "method" : "Navigation.StartAudioStream",
  "params" :  
  {
    "url" : "SDL/application_directory/audio/123.mp3",
    "appID" : 65674
  }
}

Example Response

{
  "id" : 176,
  "jsonrpc" : "2.0",
  "result" :
  {
    "code" : 0,
    "method" : "Navigation.StartAudioStream"
  }
}

Example Error

{
  "id" : 176,
  "jsonrpc" : "2.0",
  "error" :
  {
    "code" : 22,
    "message" : "Start stream failed or some other error occurred",
    "data" :
    {
      "method" : "Navigation.StartAudioStream"
    }
  }
}
View on GitHub.com
Previous Section Next Section