New issue
Advanced search Search tips

Issue 723492 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

webview browser tester could not play online video in emulator

Reported by lifekill...@gmail.com, May 17 2017

Issue description

Device name: emulator
Android version: 7.1.1
WebView version: 52.0.2743.100
Application: webview browser tester
Application version: 1.0

URLs (if applicable): http://m.iqiyi.com/

Steps to reproduce:
(1) running webview browser tester
(2) open url http://m.iqiyi.com/
(3) playing online video

Expected result:
Normal display video image

Actual result:
Display video image exception, no update

 
webview_browser_tester.png
258 KB View Download

Comment 1 by boliu@chromium.org, May 17 2017

Status: WontFix (was: Unconfirmed)
I think all hardware features (video, webgl) in webview don't work in webview, because emulator used to not support all the GL extensions that webview needs. I don't know if that's still the case with the latest emulator though.

If you want to try it, make sure you enable hardware emulation, and change this line in webview and set it to false: https://cs.chromium.org/chromium/src/android_webview/java/src/org/chromium/android_webview/AwContents.java?rcl=27a1d93030604b777013fafab121a4e6e0ead70f&l=119

If it works and things don't blow up, then report back exactly which emulator you are using and we can see about removing that check.

For now this is working as expected
Emulator setting:
Graphics: Hardware-GLES2.0

If changes below code
private static final boolean FORCE_AUXILIARY_BITMAP_RENDERING =
            "goldfish".equals(Build.HARDWARE) || "ranchu".equals(Build.HARDWARE);
to
private static final boolean FORCE_AUXILIARY_BITMAP_RENDERING = false;

How to build "webview.apk"(external/chromium-webview/prebuilt/arm/webview.apk),
now my build environment can build out "ChromePublic.apk SystemWebView.apk AndroidWebView.apk", but could not build out "webview.apk"

Thanks a lots!

AVD-setting.png
291 KB View Download

Comment 4 Deleted

Compare extract files between webview.apk and AndroidWebView.apk or SystemWebView.apk, but could not find "libwebviewchromium.so"(only one in webview.apk/lib/armeabi-v7a) in AndroidWebView.apk or SystemWebView.apk, why?

Need to build release version?
webview-1.png
312 KB View Download
webview-2.png
312 KB View Download

Comment 6 by torne@chromium.org, May 18 2017

SystemWebView.apk is the correct thing. The filename is just different in the Android tree for historical reasons - it's just renamed.

The contents are different because you've done a different type of build (debug vs release, as you guessed) but it doesn't matter; the debug one will work fine.

Sign in to add a comment