webrtc video stream stop sharing

前端 未结 3 835
暗喜
暗喜 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:42

    calling mediaStream.stop() will stop the camera
    where mediaStream is the stream that you got when calling getUserMedia

    Here is a working example

提交回复
热议问题