webrtc video stream stop sharing

前端 未结 3 826
暗喜
暗喜 2021-02-04 19:12

I have created webrtc based video chat suing peerjs.

The local and remote video element is created using control:

local: \'video id= [local_peer_id] autoplay=\"t

3条回答
  •  死守一世寂寞
    2021-02-04 19:39

    mediaStream.getAudioTracks()[0].stop();
    mediaStream.getVideoTracks()[0].stop();

    Hope this will work with new standards. Its working fine in my app.

提交回复
热议问题