WebRTC icon indicating copy to clipboard operation
WebRTC copied to clipboard

disable video in call

Open jjaaxx44 opened this issue 7 years ago • 0 comments

Hi, I'm trying to disable video while connected in call. I want to show user image in case of other user disables video...

i can think of 2 ways to disable video..

  1. localVideoTrack.isEnabled = false //in this case video view shows black screen
  2. [localStream removeVideoTrack:localVideoTrack] //in this case video is stopped to a frame

in both cases other person could not get any data which tells that video has been stopped, in #1 for other client remoteVideoTrack.isEnabled is always true. in #2 remote video track in stream still shows track only it gets stuck to last frame...

I'm I missing something, maybe some other way? or this is a but?

Thanks in advance ;)

jjaaxx44 avatar Jul 19 '18 10:07 jjaaxx44