This article mainly introduces the last encounter of some machines do not see the video problem, the article from the blog Park Rtc.blacker, reproduced please indicate the source.
Before doing the video chat app has been running well, a few days ago customer feedback said in Samsung 9100. You can't see your own image on the Android4.0.3.
After a search to find the WEBRTC is the bottom of the bug, has been repaired and feedback to the community, the following main analysis of the cause of the bug and solutions.
The main cause of the bug:
Setting the camera parameters using unsupported parameters, resulting in camera.setparameters error, resulting in a subsequent memory allocation error, video stream read error, resulting in the video is not seen.
Bug Specific Cause:
Read the camera via parameters.getsupportedpreviewsizes () previewsizes
However, this parameter is assigned to Picturesize. But the camera doesn't necessarily support the picturesize.
So executing camera.setparameters () is tragic.
Below I am the test process to print out the log, see here you are easy to understand.
Solution above the note has been written clearly, the following is a more safe solution:
You know, there are a lot of holes in the WEBRTC, the road is endless ...
Android IOS WebRTC Audio Video Development Summary (18)