No local and remote video on iOS
amalinaaziz opened this issue · comments
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:
- add playinline, webkit-playsinline, control="true"
- add cordova.plugins.iosrtc.observeVideo(localVideo);
- change the z-index. the "body" background-color: transparent
I am using this SimpleWebRTC and cordova-plugin-iosrtc plugin.
Any pointers?
I've fixed the issue by:
- adding cordova.plugins.iosrtc.observeVideo(video);
- adding playinline attribute
- 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.