Should the android application create SDP by it's own?
I am writing an WebRTC client for Android.
I am having my own signalling server.
I have a web API which accepts SDP to create session on web server!
What I want to know is that: How would I create SDP from the Android app which will be used to pass it to the web API?
Is there any 3rd party library which can be used to generate SDP from Android app?
You should receive the SDP directly from the other peer and from your WebRTC stack for the local endpoint. You should not touch this SDP just pass it as is. You need to parse the SDP from signalling message.
Otherwise basic SDP is pretty simple (just a few lines in clear text), however with WebRTC it becomes very complicated because of the ICE offers.
Assuming you are using Android native for webRTC, in that case your Android app will be the offerer. Invoke createOffer to generate the offer SDP in Android end. Its similar process how you start offer from any web based WebRTC implementation.
Asked in February 2016Viewed 2,745 timesVoted 8Answered 2 times