Versions Compared

Key

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

...

stream terminate

Stop stream playback or publishing on this server

Parameters:

<mediaSessionId> media session identifier (mandatory)

...

Code Block
themeRDark
stream terminate 19be2809-6f2a-48fc-b67e-48acd3d578c8

Packet dumping for published stream

For debugging purposes, published stream packets dump recording can be launched from CLI. Stream packets are dumped before depacketizing them. Dumpa are recorded to the folder defined by the following parameter

Code Block
themeRDark
depacketizer_dump_dir=/usr/local/FlashphonerWebCallServer/depacketizer_dump_dir

WebRTC H264, RTSP, VOD stream dumps are recorded to files with h264 extension, WebRTC VP8 streams with vp8 extension, RTMP streams with avc extension.

stream dump-start

Start published stream packets dump recording.

Parameters:
<mediaSessionId> media session identifier (mandatory)

Example:

Code Block
themeRDark
stream dump-start a9fc6ae4-71ee-4c2c-8a5b-e5dd94819203

Image Added

The same REST API query

Code Block
languagebash
themeRDark
curl -s -H "Content-Type: application/json" -X POST http://localhost:8081/rest-api/stream/dumper/startup -d '{"mediaSessionId":"a9fc6ae4-71ee-4c2c-8a5b-e5dd94819203"}'

stream dump-stop

Stop published stream packets dump recording.

Parameters:
<mediaSessionId> media session identifier (mandatory)

Example:

Code Block
themeRDark
stream dump-stop a9fc6ae4-71ee-4c2c-8a5b-e5dd94819203

Image Added

The same REST API query

Code Block
languagebash
themeRDark
curl -s -H "Content-Type: application/json" -X POST http://localhost:8081/rest-api/stream/dumper/terminate -d '{"mediaSessionId":"a9fc6ae4-71ee-4c2c-8a5b-e5dd94819203"}'