cordova-plugin-iosrtc: Video Sometimes Not Shown when using Apizee
Hello, We are seeing issues with the Video on various IPhone devices running on different IOS Versions (12-14 at the time) When app is initially opened (from killed state) and a video call is established, the IOS video is OK and running. After repeating the call with the app open several times, video starts to not show. There are several states that i am seeing:
- Video sometimes does not show only on the IOS device (white screen)- but it shows for the other person on the call
- Video sometimes does not show for both sides (white screen instead of video)
- Video sometimes is black for both sides
In all of the cases, Audio is working fine.
We are using Apizee as WebRTC provider (https://www.apizee.com/)
Also in the logs sometimes we are seeing this error
Error: getStats() must be called with null or a valid MediaStreamTrack instance as argument", url: "http://localhost:12710/plugins/cordova-plugin-iosrtc/dist/cordova-plugin-iosrtc.js", lineNo: 2263, columnNo: 106, error: {}, stack: "http://localhost:12710/plugins/cordova-plugin-iosrtc/dist/cordova-plugin-iosrtc.js:2263:18\nhttps://cloud.apizee.com/apiRTC/apiRTC-latest.min.js:2:651202"
Versions affected
- Plugin version (6.0.11, 6.0.14, 8.0.0-RC2):
- iOS version (13.X):
- Xcode version (11.6):
Steps to reproduce
Start a Video Call several times in a row
Expected results
Video should always show up
Actual results
Video sometimes does not show up
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 30 (20 by maintainers)
Perfect, yes those commit are for README and sample and does not have impact for you. I just fixed the jslint issue on render-and-libwebrtc-test.js 😉
@hthetiot i tested the latest master (without the last commit u had made just now) and apart from the black screen initially (which i reported in https://github.com/cordova-rtc/cordova-plugin-iosrtc/issues/583#issuecomment-711133150) , all looks good. Here is the commit that i tested with
Feel free to add your company/app to https://github.com/cordova-rtc/cordova-plugin-iosrtc/blob/master/WHO_USES_IT.md when you want 😃
I can make a branch for you, give me a moment. Will notify you here.
I tried #587 @hthetiot , it loads the video on both sides all the time now. Here is a video of how it works now. https://www.dropbox.com/s/unc8e8v86u7gra5/20201018_100612.mp4?dl=0 One small comment which is not so important - but good if it can be addressed for better UI/UX - would be the black screen not to show initially (if it is possible - check the video in the comment).
Thanks a lot @hthetiot, i really appreciate your help!!!