simplewebrtc / SimpleWebRTC

Simplest WebRTC ever
Other
4.65k stars 1.19k forks source link

No local and remote video on iOS #751

Closed amalinaaziz closed 5 years ago

amalinaaziz commented 5 years ago

No local video and remote video seen or they are all in black after a peer connected. But the remote user or peer can view the video. This issue is only occur on iOS app, no issue in android app.

I've tried:

I am using this SimpleWebRTC and cordova-plugin-iosrtc plugin.

Any pointers?

amalinaaziz commented 5 years ago

I've fixed the issue by:

  1. adding cordova.plugins.iosrtc.observeVideo(video);
  2. adding playinline attribute
  3. removing the CSS "object-fit: cover" on the remote video. I am not sure why but this does causing the video to be blank in iOS.

Thanks.