Versions Compared

Key

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

...

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:

...

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