How to start player muted

Hello!

We have a specific behavior where is necessary start the player always muted.

How to do it? Something like autoplay .. automute = true?
 

Max

Administrator
Staff member
Good day.
You can use Stream.muteRemoteAudio() function:
Code:
    stream = session.createStream(options).on(STREAM_STATUS.PENDING, function (stream) {
          stream.muteRemoteAudio();
          ...
    }).on(STREAM_STATUS.PLAYING, function (stream) {
          ...
    });
    stream.play();
This function actually mutes video element created by WebSDK to play a stream.
 
Top