owt-client-javascript icon indicating copy to clipboard operation
owt-client-javascript copied to clipboard

Mute/unmute event on subscription not fired when muting audio

Open philipgiuliani opened this issue 4 years ago • 1 comments

For debugging purposes, I have currently added the following subscriptions:

subscription.addEventListener("mute", console.debug);
subscription.addEventListener("unmute", console.debug);

subscription.stream.getAudioTracks().forEach((t) => {
    t.addEventListener("mute", console.debug);
    t.addEventListener("unmute", console.debug);
})

subscription.stream.getVideoTracks().forEach((t) => {
    t.addEventListener("mute", console.debug);
    t.addEventListener("unmute", console.debug);
})

When muting the audio channel, the subscription's event listener is never fired. We have also tried to mute the stream with the OWT Management API. We always have the same result. Muting video works, muting audio doesn't.

// subscription's listeners are called
this.publication.mute(Owt.Base.TrackKind.VIDEO);

// subscription's listeners are not called
this.publication.mute(Owt.Base.TrackKind.AUDIO);

philipgiuliani avatar Jun 29 '21 07:06 philipgiuliani

I also opened it in owt-server because I think it actually belongs there: https://github.com/open-webrtc-toolkit/owt-server/issues/1037

Feel free to close this one.

philipgiuliani avatar Jul 08 '21 11:07 philipgiuliani