How can I fix black, green, or pixelated video when a Web client and a Native client communicate with each other?
When a Web client and a Native client communicate with each other the receiving end sees a black, green, or pixelated screen.
The Native SDK encodes video streams in the H.264 format, and the issue is mainly caused by errors decoding the H.264 video streams.
Troubleshoot the problem by following the steps below:
getSupportedCodecto get the codecs supported by both the Web SDK and the browser. If H.264 is not supported, the Web client cannot communicate with the Native client.
Ask the user to use the latest official version of the Chrome browser, and disable the hardware‑accelerated video decoding and encoding:
chrome://flagsin the browser address bar.
- Set both Hardware-accelerated video decode and Hardware-accelerated video encode as Disabled.
- Click Relaunch to restart the browser, as shown in the figure below:
Upgrade the Native SDK to the latest version.
If the client sending the video stream is a Web client on desktop, ask the user to launch Chrome with the following command: