Communication between android and PC of webrtc and webrtcandroid

Source: Internet
Author: User

Communication between android and PC of webrtc and webrtcandroid

After more than a week of hard work, we finally connected all the audio and video of PC and android. So far, the interconnection between android and android, pC and PC, android and PC has been solved, and audio and video are all supported.


Some time ago, the audio and video of PC and PC were connected. This part is very simple. After all, debugging in windows is still very convenient, and there is also the basis of the Call example.

Sorry, but the mobile phone cannot be turned over. In the end, I gave up this path and used to connect the PC to android first. Connecting PCs to android is also very simple. After all, AppRTCDemo has just a few lines of code, which is very convenient to move to xmpp. However, after the connection, I found that the android client still does not work, but the PC sent to android is good!

Google has been around for a long time, and no one has encountered such a problem. It is estimated that there was an error when I modified it. So I captured the sdp package again and found that the sdp package sent by android was recvonly or sendonly, And it was dizzy. No wonder there was no sound!


Continue to google. Someone mentioned whether audiotrack is added to stream. Seeing this, I suddenly remembered that I didn't really pay too much attention to this modification. So I looked at the code and did not add it. There was an if statement that was null, causing audiotrack not to be added to the stream !!

So I modified the next test. All the tests are okay!


This experience: there is a good network to continue working.


What kind of online games do Android and PC Data interwork? You can play on your phone or on your computer, without using a simulator.

QQ Farm hope to adopt
 
How does Huawei ensp bridge and communicate with PCs or virtual machines?

You can see it in the setup wizard. Generally, there is a manual.

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.