Android IOS WebRTC Audio Video Development Summary (18)

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.