Any success regarding your attempt to integrate webrtc with android?
On Apr 23, 10:57 pm, Lionel_RTC <
lioledin...@gmail.com> wrote:
> Thanks for that hint.
>
> After playin around a little with the code, I'm gonna implement a
> subset of "official" W3C javascript API thanks to PhoneGap.
> In my JS I will also include something to detect wether I'm in Chrome
> or inAndroidto switch the good signatures.
>
> On the WebView part, I have no other choice but to use anAndroid
> SurfaceView that will come on top of the WebView.
> Impossible to render the video in the video html5 tag :'(
>
> Regards,
> Lionel
>
> On 17 avr, 03:27, Zhihong GUO <
gzhh...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi Lionel,
>
> > I am doing the same thing as you. In webview ofAndroidSDK there is a
> > method called addJavascriptInterface by which you can extend JS in webview.
> > You can also get the examples from
developer.android.com. The JS method has
> > to implement by Java code, then the Java code can call JNI.
>
> > But I am not sure if such solution can work for the method getUserMedia,
> > which defined by W3C a method of Navigator, the navigator object in JS is
> > implemented in WebCore of WebKit onAndroid. I am afraid you have to modify
> > theAndroidWebkit and rebuild a new ROM for youandroiddevice.
>
> > James
>
> > On Tuesday, April 17, 2012 12:24:20 AM UTC+8, Lionel_RTC wrote:
>
> > > Hi folks,
>
> > > I'm planning to develop a WebApp forAndroid, using PhoneGap to
> > > demonstrate WebRTC.
>
> > > What I've done so far is to build the VideoEngine test app on two
> > >Androiddevices, and it works almost fine (remote video is splitted,
> > > maybe due to my old 2.3.3 devices).
> > > The thing is that this demo app is written in Java, but I want to
> > > convert it in a WebView, with the standard WebRTC JavaScript APIs.
>
> > > With the Video demo app, I have now the Video stack in a Shared
> > > Library (and the JNI part), but I don't know how to call this Native
> > > library with JavaScript.
> > > Is there a part of Chromium or WebKit I can reuse to integrate in my
> > > WebApp that would implement the JavaScript side ?
> > > Should I use LibJingle sources instead of the WebRTC demo app sources
> > > (maybe more complete) ?
>
> > > I've played a bit between LibJingle, Chromium and WebKit source code
> > > (forAndroid), and I don't know which direction to take to achieve my