In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the relevant knowledge of "how to solve the failure of C++ compiling WebRTC to obtain sdp session description". The editor shows you the operation process through an actual case. The method of operation is simple, fast and practical. I hope this article "how to solve the failure of C++ compiling WebRTC to obtain sdp session description" can help you solve the problem.
In recent years, with the improvement of people's requirements for web video, WebRTC is known by more and more people. To run WebRTC, it needs to build a user interface and a server to send signaling. WebRTC handles the creation and processing of SDP information, pulls through the pull library, and realizes the web page playback function of WebRTC.
When we compiled WebRTC through C++, we did not succeed in adding videos. C++ WebRTC implementation pulls streams with go pion library to add video and audio sources, which makes it impossible for WebRTC in C++ to enter into a custom rewritten virtual function.
For example, get the SDP session description:
To establish a session description according to the normal process, and pull the stream with WebRTC in C++, you need to take the following steps:
1. Create a PeerConnection peering connection factory
2. Use the first step above to create a peering connection: CreatePeerConnection this function
3. Create an interface to request the server to obtain the video and audio information of the stream. Add to the instantiated CreatePeerConnection connection
4. This triggers the local SDP session description, and then passes the local session description to the server.
In going through this process, we got stuck in step 4, causing the local sdp session description not to be triggered. Our analysis may be a lack of steps or which step is wrong.
After analysis, it is found that there is one point to pay attention to: multiple threads should be opened when creating the first step, such as network thread, worker thread and signaling thread. At this time, all we pass in are null values, resulting in no feedback from the starting thread.
Knowing the cause of the problem, it will be easier to solve it. Create network threads, worker threads, and signaling threads, pass these three threads to the peering connection factory (the first step), and the next steps can continue.
This is the end of the content on "how to solve the failure of C++ compiling WebRTC to get sdp session description". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.