owt-client-javascript
owt-client-javascript copied to clipboard
Mute/unmute event on subscription not fired when muting audio
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);
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.