Android IOS WEBRTC Audio and Video Development summary (vi) __ios

Source: Internet
Author: User

Some time ago in the audio and video version of iOS, so the title changed to the Android iOS WEBRTC audio and Video development summary, the following summary of some experience in the development process:

1. iOS WEBRTC audio and video compilation and download: Have the android WEBRTC compile download experience to get IOS, you will find that more simple, then there are problems, you can refer to: http://www.cnblogs.com/ProbeStar/p/3411510. HTML Remember to have Mac and iOS two versions, to specify what version you want.

2. Correctly distinguish ARMv7 armv7s i386 platform: Compile time is especially easy to find armv7. A file, such as error, people who do not know confused, in fact, this is because each target compile can generate a different platform, ARMV7, Armv7s is for mobile phone, I386 is for Mac and simulator, understand this point you can easily solve this kind of problem.

3. Correctly differentiate between. m and. mm Files: There was a compilation of a strange problem, the hint can not find the String.h file, toss a half-day have not done, and very puzzled this document is not the system itself? later found himself. m file called C + + code caused, The solution is to change the. m file to a. mm file.

4. Debug WEBRTC Code: Android can only go through log, but iOS is very convenient, object C. C C + + call each other (this somewhat let me like the Xcode), at the same time compiled into the debug version, directly into the. A file inside debugging, Windows on the same principle.

5. The principle is the same: Although WebRTC has a version for Windows,mac,android,ios, but they are the same principle, mainly in the form of different forms, so if you understand a set and then to get another set of easier, People who know the design patterns will find that they have a lot of template patterns and factory patterns, such as data sending, udp_socket_xxx.h for this same platform.

6. The image does not show or there is no image on the other side: There are many reasons for this problem, first of all you have to catch the packet to see the ARTP,ARTCP,VRTP,VRTCP port to send and receive data is normal, followed by debugging or set breakpoints to observe whether the packet was discarded or have not been correctly decoded, The first two days just solved a problem because the keyframe (WEBRTC inside Keyframe,deltaframe respectively indicates whether the image is a full or a different image) is not sent to the normal result of not receiving data.

7. What is the difference between RTP and RTCP: The former is mainly responsible for the transmission of audio and video packets, the latter is mainly responsible for control of signaling-related packages, such as back to the message order.

8. Ask the pertinent questions: found that a lot of beginners in some groups to ask the question is either very pan, or others have answered N times, at the same time, hope that the great God out to help him directly solve, and even want others to help you debug code, too unrealistic, but you are willing to spend money to buy services is another matter, According to my observation, the real Daniel is not very talkative, basically diving.

Finally: more experience to add, you have better ideas and suggestions welcome reply!

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.