How can I easily add WebRTC functionality to my android app so that I would be able to play video stream in MediaPlayer?
What library (.jar file) do I have to add to referencies?
Could you add some code example please?
Actually, there is no such ".jar" files for you to reference right now.
WebRTC is designed for web browsers, even if it can be build for android and iOS.
for your question, I think you may need to learn how to build WebRTC on Android or iOS.
for Android, you should know NDK and JNI first. then build whole webrtc projects or standalone VoE\ViE even NS\AECM\VAD\AGC modules for android.
for iOS, you should also build it by yourself, but you may need this help.
all of these info can be found on the internet, especially google group.
checkout following link : http://www.webrtc.org/reference/getting-started
I have added my project on github: https://github.com/SDkie/Webrtc-for-Android, you can fork and make changes in it.
Please take a look at http://www.webrtc.org/native-code/android.
It has all the information on how to build webRTC for android.
The java wrapper for the native webRTC libraries:
https://code.google.com/p/webrtc/source/browse/trunk/talk/app/webrtc/java/#java%2Fsrc%2Forg%2Fwebrtc
It has the instructions on how to build the native libraries.
It also has an example app that uses webRTC to talk to the https://apprtc.appspot.com.
https://code.google.com/p/webrtc/source/browse/trunk/webrtc/examples/android/media_demo/README
I could not find instructions on how to create an Android Studio Project and build it with gradle though. If anyone finds it, please share.
I hope it helps
One option is to use the crosswalk, you can create a native app using the crosswalk as a webview in your project.
In my case the Web-RTC worked without any problems.
Here are some tutorials on how to add the crosswalk on your project.
https://diego.org/2015/01/07/embedding-crosswalk-in-android-studio/
https://crosswalk-project.org/documentation/embedding_crosswalk.html
I hope this helps.
Related
In order to make some proof of concept prototypes, I'm planning to add git functionality to my Xamarin Android app.
For doing so, I was taking a look at the libgit2sharp library, especially the latest prereleases that seem to be released with .netstandard 2.0.
The NuGet package installation works perfectly, but obviously, it fails when I try to make any call to the library because the missing library files that are not built in the libgit2sharp.nativebinaries project.
Is there any way I can build on my own these libraries?
If not, can you think about any other alternative?
Kind regards and thanks in advance
I'm trying to create a cordova plugin to use OpenCV on android and iOS.
I am for the moment at the android part.
I downloaded the OpenCV android package, and create a test application with android. That work, so I just need to put that in the plugin.
But I have absolutly no idea about how to import the OpenCV library in the plugin.
Someone know how to do that ?
Thanks in advance
Have you written a cordova plugin in the past? If not, this is probably not the easiest place to start (if you haven't start with the plugin guide from the Cordova team.).
Including JNI (native code) in Android in Cordova plugins is a bit of black art, but you are lucky that someone has gone there before (and abandoned) a
Cordova OpenCV plugin for Android. Study that, and then for iOS it is a lot easier, since you can CocoaPods or just include the library and don't have to worry about C/Java bridge. If all of this is making your head hurt and you have no idea what JNI is then you might want to farm out the writing of this kind of plugin to someone else.
EDIT
I was going to add this in a comment but it was too long:
An apk is a complete App and not a Library.you need to include the various .so files (shared objects) for openCV. If you want to learn how to link a C++ file into an Android app (first step of creating a Cordova Plugin with JNI check out this tutorial. However, since half the work has already been done for you, what I would do is just download the OpenCV Plugin into a directory and then
cordova plugin install
and fix what you need (if you get everything working, think about forking the original project and contribute back to the community :) ).
As stated the plugin for iOS will be similar to other IOS plugins, maybe look at the cordova-cocoapods project, the other cordova-cocoapods project and the OpenCV CocoaPod.
Can anybody tell me the link to download ExoPlayer library for android app development n how to use it?
Thx in advance for your kind answer.
There is a github for exoplayer, which contains the exoplayer library and an android demo app. You have to build the library.
The documentation indicates how to do it. Basically you can just do a gradle build (provided you cloned the repo and installed git).
phonegap is cross-platform solution for mobile development. my question is for each platform i should create new project with phonegap and import my html/js/css? or there is a tool to generate other platforms code?
As I know there is no tool for that.
You have to use the project templates for all devices you want to support and share the "www" folder for all the projects.
The main problem with this approach is that you have to implement all changes in the native code for each device... for example we had to change the start page in our project.
edit
Thank you for the hint #PeterMmm, did not know this =)
As #PeterMmm has mentioned, the PhoneGap build service allows you to build for all the supported platforms "in the cloud". Currently it does not support custom plugins although I understand that is a planned feature.
So as long as you are using only stock PhoneGap API calls you should be OK to use the build service.
I'm interested in developing an Android App using the Drools (JBoss) expert systems rules based system. It's got a plugin via Eclipse per their tools (v3.2) but I don't exactly know how to integrate Drools Jars into and Android project successfully. There has some talk about the issue (see below) but I don't know if it's been completely resolved. Can anyone enlighten me.
http://blogs.siliconindia.com/vinayGuntaka/Intergrating_External_Jars_ie_Drools_Jars__to_Android_and_Developing_Android_Programs-bid-HshzM96A62906557.html
http://osdir.com/ml/Android-Beginners/2010-01/msg00318.html
here is another working option, I made a little modification on drools libaries for loading and running DRL rules on android.
check it, hope be helpful:
https://github.com/jorgemfk/dr-drools-android-demo
https://play.google.com/store/apps/details?id=mx.dr.drools
I forked Drools 6 and modified it to use Dex for class generation and it works on Android (using serialized packages compiled on desktop) I put an Android application sample on github
So, do you know how to create android projects? and how to add external jars to your android projects? When you reach that stage, this post may help. It talks about jbpm5 running in android but it depends on drools so it should be the same.
http://kverlaen.blogspot.com/2011/03/jbpm5-lightweight-running-on-android.html
Cheers