WebRTC's Android and PC interoperability

Source: Internet
Author: User

Toss for one weeks, today finally will PC and Android audio, video all get through. So far, the interoperability between Android and ANDROID,PC and Pc,android and PC has been resolved and audio video is available.


Some time ago to get through the PC and PC audio, video, this part is still very simple, after all, Windows debugging what is still very convenient, and then there is the basis of the call example.

Then get through the Android and Android, but the audio did not, think for a long time, tried how long to test the official apprtcdemo.apk, but suffering from mobile phone can not turn, eventually give up this road, take the first to get through the PC to Android. PC to Android is also very simple to get through, after all, Apprtcdemo just a few lines of code, moved to XMPP very convenient. But after getting through, found that the Android voice or not, but the PC to Android is good!

Google for a long time, no one has encountered such a problem, it is estimated that I changed when the error. So once again grabbed the SDP package, observed after the discovery of Android issued by the SDP package is recvonly or sendonly, Dizzy dead, no wonder no sound!


Continue Google, it was mentioned, is not really added to the stream audiotrack. See this, I suddenly think of myself as if I really did not pay much attention to the changes, so look at the code, and really did not add in, there is an if judgment is null, resulting in audiotrack not added to the stream!!

So modified the next, a test, all can be!


This experience: Have a good network, work can continue.

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.