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="true" controls="true">'
remote: and 'video id= [remote_peer_id] autoplay="true" controls="true">'
Now during the video chat if local user mute auido remote user can not hear anything and its working perfect.
Problem is with the video. If local user pause his own video he can see the video is paused but remote user still can see his video live.
on the other hand if remote user pause his video, local user still can see his video live.
Any one tell what need to do to deploy the feathure
"Pause" and "resume" video that works real time for both peer?