Firefox createMediaStreamDestination bug using rtc?

主宰稳场 提交于 2019-12-05 06:02:29

Ok thanks to @Ken Fyrstenberg I just tried the Firefox Nighly build. On the Nighly everythink works fine (as in Chrome). The data types are:

stream //type: LocalMediaStream    
dest.steam //type: MediaStream

as before, but I can hear the opponent and be able to mute the mic.

So I only have to wait for release :P

To mute the audio you can enable/disable the track itself by doing:

stream.getAudioTracks()[0].enabled = false;  // mutes

This won't solve the problem with the gain node, which is most likely a bug/limitation in Firefox at the moment (in which case we can only wait for a fix). But if the purpose is to (un)mute this should work (it also works with video tracks).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!