No WebRTC video on WebView in Android application
Reported by
b...@jobo.tv,
Jun 15 2016
|
||||||
Issue description
<b>Chrome Version : <Copy from: 'about:version'></b>
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
Safari:
Firefox:
IE:
I am writing an Android application. I compile myself WebRtc and I am using embedded chrome (webview) for data/audio/video streams.
What steps will reproduce the problem?
(1) I can provide you with a custom version of my app Jobo.TV which uses embedded WebView
(2) Install my app (jobo.tv)
(3) Register with some google account
(4) find public server and connect...
What is the expected result?
To see video. I am using Android 5.0.2 running on Samsung A5.
What happens instead?
no video on embedded browser, but webrtc seems to work properly -> connect, live stream mic and camera
If I use external browser (opera, chrome or firefox) webrtc works and video is shown
Please provide any additional information below. Attach a screenshot if
possible.
,
Jun 16 2016
,
Jun 17 2016
what webview version is installed on the device? yeah we need the apk to reproduce this
,
Jun 17 2016
Samsung A5 uses Mali or Adreno, so it's not the known issue on PowerVR. Do you see/hear anything at all?
,
Jun 17 2016
I do hear all sounds. Microphone for example works fine as well as camera. Only thing that is not working is video - cannot be seen. WebView version: 51.0.2704.81 Download the apks (release, debug - for armeabi-v7a) from here https://goo.gl/H1EZC5 Steps to reproduce: 1. Install the given apk. 2. It will start a wizard about registration - you'll need a google account 3. If installed - click on some of the public servers - a webview will pop-up and will use webrtc to connect to selected public server (you can connect to yourself as well, or to install a windows version of Jobo.TV streaming server to connect to) 4. In case something goes wrong - delete /sdcard/Jobo.TV and start over If you want to login to the portal instead of https://www.jobo.tv - please use current on development https://8-dot-web-jobo-tv.appspot.com Sign in with same google account using "Jobo.TV" login 2016-06-17 17:54 GMT+02:00 tobiasjs@chromium.org via Monorail < monorail@chromium.org>:
,
Jun 17 2016
Oh sound works.. Ok back up one bit. Does normal <video> tags work in the webview in your app, eg if you redirected the webview to youtube?
,
Jun 17 2016
Just added a link on https://8-dot-web-jobo-tv.appspot.com/ to open youtube - (you can test it as well) but there is no video visible... although I head the sound. 2016-06-17 18:24 GMT+02:00 boliu@chromium.org via Monorail < monorail@chromium.org>:
,
Jun 17 2016
ok, so general video issue, not webrtc then, much easier to test can you open chrome on the device, go to chrome://gpu and attach that page? you should be able to print to a pdf file, although not sure if that's available on L, if not, screenshots is ok too Do you have any other device to test? I think this might be a device specific issue.
,
Jun 17 2016
Just did it. Check attachment. Unfortunately all my devices are less than LOLIPOP and cannot test webrtc on them 2016-06-17 18:45 GMT+02:00 boliu@chromium.org via Monorail < monorail@chromium.org>:
,
Jun 17 2016
email attachments doesn't work, you need to open the bug: crbug.com/620344 and attach it here
,
Jun 17 2016
results from chrome://gpu
,
Jun 17 2016
Just attached it.
BTW - extra info that may help: I build myself webrtc.v49 - it's part of
the as binary so file.
My AndroidManifest has this
line: <uses-feature android:glEsVersion="0x00020000" android:required="true"
/>
This is the code, I'm using to create the webview and add WebChromeClient -
hope I'm not doing something dummy.
webView_ = (WebView) context.findViewById(R.id.jobo_web_browse);
webView_.setInitialScale(1);
webView_.getSettings().setAllowFileAccess(true);
webView_.getSettings().setPluginState(PluginState.ON);
webView_.getSettings().setJavaScriptEnabled(true);
webView_.getSettings().setLoadWithOverviewMode(true);
webView_.getSettings().setUseWideViewPort(true);
webView_.getSettings().setJavaScriptCanOpenWindowsAutomatically(false);
webView_.getSettings().setSupportMultipleWindows(false);
webView_.getSettings().setUserAgentString("jobo.tv/4.0.5");
// If we are LOLLIPOP and more...
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
{
webView_.setWebChromeClient(new WebChromeClient(){
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void onPermissionRequest(PermissionRequest
request) {
request.grant(request.getResources());
}
});
}
webView_.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view,
String url) {
view.loadUrl(url);
return true;
}
});
webView_.loadDataWithBaseURL("", empty_page, "text/html",
"utf-8", "");
Let me know if you need me to setup the android app, eventually to
reproduce it.
2016-06-17 18:52 GMT+02:00 boliu@chromium.org via Monorail <
monorail@chromium.org>:
,
Jun 18 2016
Thank you for providing more feedback. Adding requester "boliu@chromium.org" for another review and adding "Needs-Review" label for tracking. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jun 27 2016
On startup I get this error: 06-27 11:42:01.928: E/libEGL(31490): validate_display:255 error 3008 (EGL_BAD_DISPLAY) Could this be the reason why there is no video in WebView later? Do I need to add/register something during startup of my app ?
,
Jun 27 2016
No, that log message is just an unavoidable part of our startup.
,
Dec 29 2016
I have upgraded to WebRTC v.56 and most recent versions of WebView. It still does not work when comes to embedded browser video. Do you have any progress ? I cannot release my soft with this bug.
,
Mar 13 2017
Cleaning up sheriffbot label "Needs-Review" label as a part of modified "Needs-Feedback" sheriffbot rule. [ref bug for cleanup 684919]
,
Apr 3 2017
I have the same issue, using Genymotion, AVD, LG G3 and Huawei P8 for testing. On Lollipop 5.1, running on Genymotion and LG G3, all is good, but on the Huawei, AVD and in Genymotion I get no image. Sound not tested yet. Chrome works fine, so it´s just the stock browser. I tried installing the Android System Webview apk (56.xxxx.28) on Genymotion, which did not help - it actually just doubled the appr.tc screen so that there are two join buttons and when having joined/opened room, there are two of all the control icons. Huawei already had the mentioned webview apk - I did not install it. So, appr.tc is what I´ve tested it with first of all, but also 5-10 other webrtc demos, all not able to allow the camera to stream.
,
Sep 13 2017
Effort from the triage Team: There is no active investigation / updates since the last couple months,closing the issue. Feel free to reopen if needed. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by tkonch...@chromium.org
, Jun 16 2016