Reputation: 86
I am trying to create an application that uses webrtc data channels, to create a peer connection to an existing server. The client must run a native application on android (no Java of any kind, JNI might be acceptable though if it is the only way, that is not my choice it is a hard requirement on the project) while the server is running on windows.
The only problem is, I can not seems to find any minimal example that illustrates the steps to create one. By steps I mean Call method A, then Call method B then C and so on. Most of the examples are in JavaScript which is just a high-level overview of what needs to be done, it doesn't give enough information to translate it to C++.
The only example I can find was Example from webrtc which doesn't work at all, and crashes on the creation of the peer connection factory method, and after 2 days of debugging I found that the default parameters that were passed in, simply don't work (at least for Android).
So far I have a server when connected to (Through usual unix sockets) that automatically sends to me an SDP offer and 20 ICE candidates. how do I establish the connection after that? I do need to send an SDP Answer, and select Data Channel for communication, but I am not sure about the steps.
Kindly if you mark the question as Duplicate, please make sure the links in the duplicated Answer works, many of the old webrtc links are not reachable anymore.
Upvotes: 0
Views: 233