Versions Compared

Key

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

...

10. Receiving the event confirming playback successful streaming stop

StreamStatusEvent STOPPED UNPUBLISHED code

Code Block
languagejs
themeRDark
    conferenceStreampublishStream = session.createStream({
        name: streamName,
        display: remoteVideomockLocalDisplay,
        constraintsreceiveVideo: getConstraints()false,
    }).on(STREAM_STATUS.PENDING, function (stream) {    receiveAudio: false,
        ...constraints: getConstraints()
    }).on(STREAM_STATUS.PLAYINGPUBLISHING, function (streampublishStream) {
        ...
    }).on(STREAM_STATUS.STOPPEDUNPUBLISHED, function () {
        $("#preloader").hide();
        setStatus(STREAM_STATUS.STOPPED);
        onStopped();
    }).on(STREAM_STATUS.FAILED, function (stream) {
        ...
    });

11. Receiving the event confirming successful streaming playback stop

StreamStatusEvent UNPUBLISHED STOPPED code

Code Block
languagejs
themeRDark
    publishStreamconferenceStream = session.createStream({
        name: streamName,
        display: mockLocalDisplayremoteVideo,
        receiveVideoconstraints: false,getConstraints()
    }).on(STREAM_STATUS.PENDING, function   receiveAudio: false,(stream) {
        constraints: getConstraints()...
    }).on(STREAM_STATUS.PUBLISHINGPLAYING, function (publishStreamstream) {
        ...
    }).on(STREAM_STATUS.UNPUBLISHEDSTOPPED, function () {
        $("#preloader").hide();
        setStatus(STREAM_STATUS.STOPPED);
        onStopped();
    }).on(STREAM_STATUS.FAILED, function (stream) {
        ...
    });