webrtc-android-codelab | An attempt to provide a codelab for Webrtc in Android | SDK library
kandi X-RAY | webrtc-android-codelab Summary
kandi X-RAY | webrtc-android-codelab Summary
An attempt to provide a codelab for Webrtc in Android - Similar to codelab for web at
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Extract opus data from an opus file
- get turn server from turn server
- Remove a single line from a mdp file .
- Private function to create peer connection
- Handle local stream
- Sets the default decoder for a raw record .
- Send ice candidate .
- Try to start a stream .
- Handle remote stream
- Stop the recording .
webrtc-android-codelab Key Features
webrtc-android-codelab Examples and Code Snippets
Community Discussions
Trending Discussions on webrtc-android-codelab
QUESTION
I'm trying to create an Android app that uses WebRTC data channels for data exchange. The data that I want to send is basic strings. Admittedly, this is my first time looking at WebRTC, and so I am a bit fuzzy on the details. My problem is that whenever I try to create a data channel, it is always null, and ICE candidate requests do not seem to be exchanged with the signalling server. I started from this example that creates a connection to exchange video between two devices and modified it to not exchange video but instead create a data channel.
I looked through a lot of other answers but the vast majority have to do with WebRTC in the browser, and data channel examples are rare to begin with. I also looked through the google chromium source code implementation of WebRTC in c++ to see if anything could be learned but had no luck.
My code is as follows
WebRtcActivity.kt
...ANSWER
Answered 2020-Nov-17 at 23:53Answering my own question, not entirely but will post what worked for me. Ultimately I could not figure out what was wrong with the code above, I suspect somewhere I was not doing something right with the initialization or requests.
Some of the files are from above and have not been modified, but I'll post them anyways. Also, I had used this article as a starting point.
CustomPeerConnection.java
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install webrtc-android-codelab
Signaling server
WebRTC Android App
WebRTC example web site
"Open an existing Android Studio project"
Select the Step-3 folder
On "Unable to get Gradle wrapper properties from:" click "Ok" to recreate gradle files
Ignore/Cancel all git related questions
Agree to update Gradle
Now a warning appears, agree to "Remove Build Tools version and sync project"
Select "Files" "Sync Project with Gradle Files"
Building and installing the App should work at this point
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page