(Android) Native API support of WebRTC

192 views
Skip to first unread message

Kailash Kumar

unread,
May 15, 2017, 7:47:25 AM5/15/17
to discuss-webrtc
Hi,

I am planning to use WebRTC C++ APIs in JNI layer of Android app.

Here is what I have done so far:
1) Compiled WebRTC libraries for android platform and ARM architecture. Verified that compiled libraries are for ARM 32 bit architecture.
2) Copied WebRTC headers into Android Project specific folder.
3) Just added one header file to begin with  -   "webrtc/api/peerconnectioninterface.h" file in one of JNI C++ file.

With both libjingle_peerconnection.so as well as libwebrtc.a, I am getting undefined reference errors for symbols in webrtc code base:

Sample error:
webrtc/api/datachannelinterface.h -
Error:(66) undefined reference to 'rtc::CopyOnWriteBuffer::CopyOnWriteBuffer(rtc::CopyOnWriteBuffer const&)'
Error:(64) undefined reference to 'rtc::CopyOnWriteBuffer::~CopyOnWriteBuffer()'

May more such undefined symbol errors follow.

Is it possible to use WebRTC libraries in completely C++ codebase using above approach on Android platform?

Thanks
Kailash


DISCLAIMER

THIS MESSAGE, TOGETHER WITH ANY ATTACHMENTS, IS CONFIDENTIAL, IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE(S), AND MAY HAVE INFORMATION THAT IS COVERED BY LEGAL, PROFESSIONAL OR OTHER PRIVILEGE. ANY OPINIONS EXPRESSED, IMPLIED, OR PRESENTED ARE SOLELY THOSE OF THE AUTHOR AND ARE NOT THOSE OF PRETLIST. IF YOU ARE NOT THE INTENDED RECIPIENT, THEN PLEASE DESTROY THIS EMAIL AND ITS ATTACHMENTS, AND LET US KNOW AT ONCE. ANY COPYING, DISTRIBUTION OR USE OF THIS EMAIL, ITS ATTACHMENTS, OR ANY INFORMATION CONTAINED HERE IS PROHIBITED.

Kaiduan Xie

unread,
May 15, 2017, 9:01:18 AM5/15/17
to discuss...@googlegroups.com
Any reason you can not use the JAVA API (https://webrtc.org/native-code/android/) for your android application?

/Kaiduan



--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/edf30e57-148f-461f-9c6d-9a5bf5dc7804%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Founder of Goodstartsoft

Kailash Kumar

unread,
May 16, 2017, 11:28:08 PM5/16/17
to discuss-webrtc
Thanks Kaiduan. At present I am looking for feasibility of WebRTC APIs completely in C++ codebase for Android Platform.
If not possible, I will definitely look into Java implementation.

Please let me know if pure C++ support over webrtc is possible for Android Platform.

Thanks
Kailash
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.

Henrik Andreasson

unread,
May 17, 2017, 3:54:01 AM5/17/17
to discuss-webrtc
The audio layer needs Java and there are most likely more parts that depend on Java, e.g. video.

To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/27e206c9-84ed-4004-949f-29077689cedf%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages