Is there a way to mute the video on first play using the WSPlayer? I've tried the following and the video plays WITH sound, even though we've set the volume to 0. And looking at the documentation at https://flashphoner.com/docs/api/WCS5/client/web-sdk/latest/Session.html#~createStream there doesn't seem to be an option when creating the stream.
Code:
const streamParams = {
name: "rtsp://localhost/VIDEO",
display: "my-video",
playWidth: 1280,
playHeight: 720
};
let fpStream = session.createStream(streamParams)
.on(Flashphoner.constants.STREAM_STATUS.PENDING, (stream) => {
stream.setVolume(0);
})
.on(Flashphoner.constants.STREAM_STATUS.PLAYING, (stream) => {
stream.setVolume(0);
});
fpStream.play();