webrtc-sdk / webrtc

BSD 3-Clause "New" or "Revised" License
225 stars 89 forks source link

When disable a stream the mute state of the track is being changed to true #99

Open igala opened 11 months ago

igala commented 11 months ago

According to Google library of webrtc and documentation this should be the behavior when disabling a stream: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/enabled

It should keep sending audio frames with 0 value and in video should send black frames.

The current behavior was changed in the webrtc library at some point and the mute is changed to true when disabling the track. This causes unexpected behavior and is different than the web google behavior.

Can you please fix this?

igala commented 10 months ago

@cloudwebrtc can you please help?