Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use OpenWebRTC framework for Android? #18

Closed
b95505017 opened this issue Oct 5, 2014 · 4 comments
Closed

How to use OpenWebRTC framework for Android? #18

b95505017 opened this issue Oct 5, 2014 · 4 comments

Comments

@b95505017
Copy link

I follow the build tutorial, it seems that ./build.sh -r android is successful.
/Users/yuhsuanlin/Documents/ikala/openwebrtc/install-sh -c -d '/Users/yuhsuanlin/Documents/ikala/openwebrtc/out/arm-linux-androideabi/./share/doc/libopenwebrtc'
/usr/bin/install -c -m 644 /Users/yuhsuanlin/Documents/ikala/openwebrtc/README /Users/yuhsuanlin/Documents/ikala/openwebrtc/COPYING /Users/yuhsuanlin/Documents/ikala/openwebrtc/AUTHORS /Users/yuhsuanlin/Documents/ikala/openwebrtc/ChangeLog /Users/yuhsuanlin/Documents/ikala/openwebrtc/INSTALL /Users/yuhsuanlin/Documents/ikala/openwebrtc/NEWS '/Users/yuhsuanlin/Documents/ikala/openwebrtc/out/arm-linux-androideabi/./share/doc/libopenwebrtc'
Marking build successful in .

But how do I use them in app? Is there any demo app?
Thanks!

@Rugvip
Copy link
Contributor

Rugvip commented Oct 5, 2014

We will add tutorials for writing applications soon, but if you want to get going straight away and enjoy a challenge, Bowser is the best thing to look at. It works by injecting a script into a WebView, which enables the WebRTC API to be used inside the webpage.

The Android WebView uses the same API as the iOS one, so the method for injecting the script can be copied directly. The code for injecting the script is found in BowserViewController.

You will also need to use some method to access the native C functions from Java in order to call owr_bridge_start_in_thread. We've been using JNA to do that.

@superdump
Copy link
Contributor

Also there is this wiki page about running and testing

@stefanalund
Copy link
Contributor

@Rugvip that Android tutorial would be nice :-)

@stefanalund
Copy link
Contributor

Here's a fully native example showing how to use OpenWebRTC on Android: EricssonResearch/openwebrtc-examples#31

adam-be pushed a commit to adam-be/openwebrtc that referenced this issue Apr 21, 2015
Merge juberti:master to doohickey branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants