WebRTC/getUserMedia: How to properly mute local video?

后端 未结 3 820
面向向阳花
面向向阳花 2021-02-08 23:09

I\'m trying to implement the functionality for muting the local video MediaStreamTrack in my WebRTC application. Here\'s how I\'m approaching this:

         


        
3条回答
  •  日久生厌
    2021-02-08 23:24

    I think you can make two requests for getuser media : http://codepen.io/anon/pen/gjtpu . Then you can really stop a stream. You will also have to use mutiple peer connection between user since renegociation (adding or removing stream during to an existing peer connection) is not supported by firefox

提交回复
热议问题