A user may encounter black screen issues in the following scenarios:
- Black screen on the local side.
- Black screen on the remote side.
- Black screen on the local and remote sides.
Typical reasons for black screens include:
- Network failure: If the local network connection is poor or interrupted, the user cannot see other users. If any user in the call has network issues, none of the other users can see this user.
- The user disabled the video.
- When you set the local or remote video view before calling
joinChannel, but the user fails to join the channel, the local video preview or the remote video view appears black. This can happen if you pass the wrong token.
Step 1: Self-check
Black screen on the local side
This is likely caused by a video capture failure on the local side. Do the following:
- Check the camera hardware. Start the built-in video camera to test the recording function.
- Check if the camera access permission is enabled. Both Android and iOS have a runtime access permission function under System Settings.
- Check if another app is using the camera. Close all apps, restart your phone, and re-check.
- If the app enabled the External Source Mode, check the data collected from the external video sources.
Black screen on the remote side
This is likely caused by a video capture failure on the remote side or slow downlink network on the local side. Do the following:
- Check if the user disabled the remote video.
- Switch to another network to ensure that the problem is not caused by a poor Internet connection.
- Check whether the remote user uses the channel encryption function but the local user doesn't.
- Check whether the remote user can preview their video on their own device. If not, then the cause of the black video probably lies on the remote side. Perform the steps in Black screen on the local side.
Black screen on both sides
This occurs when the video is not rendered correctly or the video function is not enabled. Do the following:
- Check if the app calls the
enableVideo method to enable the video.
- Check if the video is enabled on both the local and remote sides.
- Check the rendering type in the SDK log in Windows. If the rendering type is D2D, update to the latest graphics card driver. If the issue persists after updating the driver, switch to GDI rendering, which has the app call the following function before the user joins the channel:
nRet = apm->setInt("che.video.renderer.type", 9);
- If the app enables the Other Rendering Method Mode, check for any rendering issue.
- Check if you are using the video SDK and not the voice SDK.
- Check if the local and remote video views are set correctly. For example:
- Neither the width nor height of the video view are set to 0.
- The video display window is not covered by any black view.
If the issue persists, contact email@example.com. Please provide the following information to help with the troubleshooting:
- The UIDs of the users sending and receiving the black video.
- The time frame when the black screen appears.
- Screen recording files.
- SDK log files. See How can I set the log file?
Step 3: Monitor the quality of experience in Agora Analytics in Console
You can monitor the statistics of every call in Agora Analytics in Console. For more information, see Agora Analytics Tutorial.