Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ParameterDescription
appKeyServer application key to communicate with backend server while session goes
mediaProvidersList of suppoted publication or playback technologies
clientVersionClient SDK version
clientOSVersionClient OS version
clientBrowserVersionClient browser version

...

ParameterDescription
mediaSessionIdWebRTC media session Id
nameStream name to play
publishedStream is published
hasVideoStream has video
hasAudioStream has audio
statusStream status
audioCodecAudio codec
videoCodecVideo codec
infoStream status text description
recordStream is recorded on server
widthPicture width (set while playing if 0)
heightPicture height (set while playing if 0)
bitrateBitrate (will set while playing if 0)
minBitrateMinimum bitrate (no limits if 0)
maxBitrateMaximum bitrate (no limits if 0)
qualityStream quality
createDateCreation date as integer
streamInfoAdditional stream information
mediaProviderPublishing technology

Publishing/playback stream metrics

Since build 5.2.576, main publishing/playback stream metrics were added to messages inboundVideoRate, outboundVideoRate, which are intended to control publishing/playback channel quality:

Code Block
languagejs
themeRDark
{
 "message":"inboundVideoRate",
 "data":
  [
    {
     "mediaSessionId":"a12145d0-7eee-11ea-9833-9da59e0cc100",
     "videoRate":704856,
     "fps":31,
     "nack":0,
     "pli":0,
     "lostPackets":0,
     "width":640,
     "height":360
    }
  ]
}
{
 "message":"outboundVideoRate",
 "data":
  [
    {
     "mediaSessionId":"0040ed40-7eef-11ea-9833-9da59e0cc100",
     "videoRate":685256,
     "fps":30,
     "nack":0,
     "pli":13,
     "lostPackets":0,
     "width":640,
     "height":360
    }
  ]
}

Messages parameters

ParameterDescription
mediaSessionIdWebRTC media session Id
videoRateVideo bitrate, bps
fpsFPS
nackNACK packets count
pliPLI queries count
lostPacketsLost packets count
widthPicture width
heightPicture height

Stream availability checking

To check if a stream is available on the server, client should send availableStream message

Code Block
languagejs
themeRDark
[
  {
    "mediaSessionId": "2f693140-7d54-11eb-91fe-1fd0fb28f180",
    "name": "test"
  }
]

Message parameters

ParameterDescription
mediaSessionIdWebRTC media session Id
nameStream name

The server will respond with availableStream message

Code Block
languagejs
themeRDark
[
  {
    "status": "false",
    "info": "Restricted access",
    "id": "2f693140-7d54-11eb-91fe-1fd0fb28f180"
  }
]

Message parameters

ParameterDescription
status

true if stream is available

false if stream is not available

infoThe unavailability reason phrase
idWebRTC media session Id

The unavailability reason phrase is supported since build 5.2.911