Using Webrtc in Native App

My questions is :

1 — Is it possible to have a WebView( Provided by Native framework) instance in my Native App , and extend it to support Webrtc,

  • How keep aspect ratio in bitmap drawable
  • What is a cheek press event?
  • How to detect the pinch-zoom event with OnGestureListener in Android?
  • Android WebView progress bar
  • “Android Asset Studio” adds extra space when I upload my .png icons, but doesn't when it uses its internal cliparts. Why?
  • Android studio v1 - actionbar not showing
  • if 1 is Yes, then probably following would be the action Item

    1 — Have a webrtc build on Android, 2 — In Android WebView extend Javascript to couple / bind the Webrtc call,

    Please confirm..

    What i am trying to do is

    1 — We have webrtc based Voice / Video chat application working fine in Chrome & Mozilla desktop Browser, as both comes with webrtc… , i.e. user need to access and it will start video / voice sessions,

    2 — same thing on mobile, we would like to go as a native app, i.e. we are trying to make an application, which will have native WebView instance, in which we will access to have voice / video session

    3 — I tried the way i explained in 2 but it seems, in WebView instance provided by Application framework doesn’t have webrtc enabled in it, so i am trying to add it and this is what i am thinking,

    — WebView instance has some mechanism to extend the Javascript , that means
    some of these API i need to add into the WebView, and for their implementation will come if i am able to successfully integrate and build Webrtc over android and iOS Platform

    Please comment….

    Related posts:

    Exception when focusing a EditText in a PopupWindow running on Device
    Detect Android Navigation Bar orientation
    Determining available heap space for Activity (preventing OutOfMemoryException)
    How to fix “process is bad” error for an Android Widget?
    How to implement/use dynamic type in Android's material design
    Android MediaRecorder and setOutputFile
  • LoaderCallbacks.onLoadFinished not called if orientation change happens during AsyncTaskLoader run
  • ANdroid - Run APK file after edited using apktool get error :
  • Escape multiple “%” characters in Android
  • How do I start a service in a new thread?
  • ClassNotFoundException: android.hardware.camera2.CameraAccessException with OpenCV 3.1.0
  • How to store sqlite database directly on sdcard
  • 7 Solutions collect form web for “Using Webrtc in Native App”

    I know this question is kinda old, but I find crosswalk ( to be a pretty good solution for using WebRTC inside of an Android app. What crosswalk do, is compiling a chromium browser into an Android app and hosting your site inside of this chromium, so you will have support for the latest browser features, like WebRTC.

    If you want to use webRTC in a Native App, i’ve built a small android app ( that share the back camera to a nodeJS server (
    I found that the easiest way to use the libjingle library is with IntelliJ IDEA. I’ve had a lot of problems with Eclipse and Android Studio.

    Android WebView does not support WebRTC APIs at this point.

    Work is underway on Java an Objective-C bindings, though that may not solve your problem.

    You’re going to have a hard time with the WebView, although it’s coming on (newer) Android at least. Nothing on the horizon for iOS.

    If you want complete native, you can check out what we’ve done @ FM with IceLink, sounds like it might work for you.

    With Android L release this should be possible by using just the Android WebView, more below :

    I’m building a native app with a webview and webrtc video inside.
    So generally it is possible to build such application and nowadays chromium (webview) have a official support , but I have faced really a lot of problem during writing that application.

    Few problems are:

    • Support for phones and os version – I have android 5.1.1 (xperia m2) and after a lot of problems webrtc is running. On android 6 (xperia z5 compact) is not working.. On other phones is sometimes working sometimes not…
    • You can not be sure, how webview will work – today webrtc is working, but tommorow Google can add some security rule, and it will not work- it’s a little bit unstable, and as I have seen, some things depend on os compilation. WebView can get update from store independently of os.
    • PERMISSIONS – there are a lot of stupid problems, based on the fact that is it a browser inside native app, like – you can’t expect a permission question from webview, you have to implement it in android webview config, and in some android versions it is working- in others not 🙂
    • Still a lot of problems of ‘young product’ – example is that nowadays webview has some issue with devices info display (like camera is front or back) so you have to find a workaround for such problem
    • Bad video quality – currently my problem is a quality of video- nice quality of video on phone, below maximum resources consumed (cpu, network, memory) and video on computer is really poor…
    • …and many more

    So the fact is – yes this is possible, but it’s still not good enough to use it without facing a lot of problems which are not so easy to solve.

    You can actually go native with html5 features. So if you use Crosswalk as someone mentioned before, but if you are really set against using: Crosswalk/Ionic/Angular/Cordova (which is awesome), you can still use Crosswalk in a native environment to replace inconsistent and feature lacking WebViews with 1 single, full WebRTC compatible WebView based on the Blink Engine.

    I remember reading a few guides on how to get Crosswalk going in Android Studio, here’s one I quickly searched, but just Google around there’s a bunch of them.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.