Versions Compared

Key

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

...

By default, for playing WebRTC video stream is used the same video codec is used with which it is published (VP8), and transcoding on server is not performed.

To use H.264 codec for playback, VP8 can be excluded on browser side using Web SDK stipCodecs option:

Code Block
languagejs
themeRDark
playStream = session.createStream({
    ...
    stripCodecs: "VP8"
}).on(STREAM_STATUS.PENDING, function (publishStream) {
    ...
});
playStream.play();

...