video streaming - Receiving Kurento Media Server stream in Android WebView -


i trying kurento one many video call example (this one) raspberry pi sends stream kms using uv4l. trying view stream on android app using webview. used custom webviewclient avoid ssl certificate error. however, when hardware acceleration enabled, green rectangle displayed instead of video, , when acceleration disabled, spinning wheel displayed. however, audio received correctly.

logcat displays following messages:

[warning:webrtcsession.cc(1719)] candidate has unknown component: cand[1:2:udp:2013266430:ip:port:local::0::] content: audio

[warning:srtpfilter.cc(585)] failed unprotect srtp packet, err=9

[error:channel.cc(666)] failed unprotect video rtp packet: size=1133, seqnum=23250, ssrc=1884862060

the code use webview following.

    webview displaywebview = (webview) rootview.findviewbyid(r.id.displaywebview);     websettings websettings = displaywebview.getsettings();     websettings.setjavascriptenabled(true);     websettings.setusewideviewport(true);     websettings.setloadwithoverviewmode(true);      displaywebview.setwebviewclient(new customwebviewclient());      displaywebview.loadurl("https://ip:port/");  

the code customwebviewclient following.

private class customwebviewclient extends webviewclient {      @override     public boolean shouldoverrideurlloading(webview view, string url) {         view.loadurl(url);         return true;     }      @override     public void onreceivedsslerror(webview view, sslerrorhandler handler, sslerror error) {         log.d(tag, "ignoring ssl certificate error...");         handler.proceed();     } } 

i tested app on phones running lollipop. guess related webview. help?

the officially supported way of working webrtc using webrtc-capable browsers (i.e. chrome, firefox , opera, , android browser). webview indeed support webrtc (though not everything), how webrtc working in webview better answered webview users.

on other hand, doing some research seems crosswalk better option, embeds functional chrome browser.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -