ionic-video-chat-support
ionic-video-chat-support copied to clipboard
Black Screen on Video Call [iOS]
I'm only seeing a black screen when placing a video call. I'm able to call and answer just fine, and the smaller video frame in the lower right works fine, but no video of the other party, or sound.
- iOS, android, or desktop
- if desktop what browser
- hosted or local
iOS and Hosted on AWS with an nginx proxy sitting in front of it. Only port 9000 is open.
For iOS, make sure you have followed step 6 here https://github.com/devin-la/ionic-video-chat-v2-issues/wiki/Building#ios
If that still does not work: Is the other party also iOS? or are you testing using a desktop web browser?
Both phones are iOS, and I did add the privacy description keys into xCode as per iOS 10 requirements. How does the iosrtc work - is it peer to peer or does it require the server? It may be a firewall or network issue?
It could be network related. The server portion allows messages to be sent using socket.io to signal a direct connection between each device. Once the connection is negotiated, they should be talking to eachother.
To debug the network traffic:
- server: modify the log output in
socket.on('sendMessage', (userId, message) => {
so that it prints the message as well. - client: take a look at the bottom of the contructor method in call.ts. specificly at the end of
this.socket.on('messageReceived', (name, message) => {
you will see the rtc connection specific functions. output the entire message there to make sure the message is getting received properly.
Also, I just added this which might also help you: https://github.com/devin-la/ionic-video-chat-v2-issues/wiki/STUN-TURN-Server
I'm getting a black screen too when on a video call... Android receives Browser fine Browser does not receive Android and shows a black