New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 623943 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Email to this user bounced
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

HTML5 video looping is broken (both when using loop attribute and manual looping via callback functions)

Reported by reinis.a...@gmail.com, Jun 28 2016

Issue description

THIS TEMPLATE IS FOR FILING BUGS ON THE ANDROID SYSTEM WEBVIEW. GENERAL WEB BUGS SHOULD BE FILED USING A DIFFERENT TEMPLATE!

Device name: Galaxy Note 10.1 2014 SM-P605
Android version: 5.1.1
WebView version (from system settings -> Apps -> Android System WebView): 52.0.2743.49
Application: Any WebView app (tested on different open and closed source so called Kiosk apps)
Application version: 52.0.2743.49

URLs (if applicable):
http://jsbin.com/fijaxin/4/edit?html,js,output
http://jsbin.com/wuqexo/2/edit?html,js,output

Steps to reproduce:
Check the urls provided, that has looping video
1. Loop via attribute
http://jsbin.com/fijaxin/4/edit?html,js,output
2. Loop via callbacks
http://jsbin.com/wuqexo/2/edit?html,js,output

Expected result:
Video and audio should loop infinitely. Apps utilising WebView should be able to display looping HTML5 video without viideo and/or audio glitches.

Actual result:
Behaviour types observed:
1) first loop all fine, on second loop audio is gone, third loop never starts (both audio and video)
1) first loop all fine, starting second loop video gets jagged, audio & video out of sync till infinity
This is both when MP4 and WEBM formats are used.

Additional notes:
Standalone browser Chrome Browser Beta 52.0.2743.49 does not have this issue. And it does not has this issue even with --enable-unified-media-pipeline set to OFF (current stable standalone browser 51.0.2704.81 has this issue and can be fixed with --enable-unified-media-pipeline flag, see my other closely related confirmed bug https://bugs.chromium.org/p/chromium/issues/detail?id=622325)

 
Edit for "additional notes" above
Chrome Browser Beta 52.0.2743.49 has --enable-unified-media-pipeline flag set ON by default (if more precise, it is now called --disable-unified-media-pipeline and is OFF by default). Thus things work on Chrome Browser if unified media pipeline for Android is on. Just wanted to add this as observed hint where the issue maybe lies. Anyways, WebView cannot render looping video. And no way for USER to set flags (thus forget about https://android.googlesource.com/platform/frameworks/webview/+/android-cts-5.1_r8/chromium/java/com/android/webview/chromium/WebViewChromiumFactoryProvider.java#76)
Owner: ti...@chromium.org
passing to Tima
Status: Assigned (was: Unconfirmed)

Comment 4 by ti...@chromium.org, Jul 1 2016

Spitzer has been enabled for WebView by https://codereview.chromium.org/2057743002/, commit
https://chromium.googlesource.com/chromium/src/+/e0e5c818737bb30a4526245db6ef32d9c6a8ef5e

This should mast the issue as the bug probably still exists in WMPA path.
Can somebody test that Spitzer fixes it, I cannot get hold on the device?

Comment 6 by ti...@chromium.org, Jul 1 2016

Cc: ti...@chromium.org
Owner: candr...@chromium.org
candrada@: could you, please, assign to the right person to test?
when this is pushed into Android System WebView beta apk-s, please let know. we are currently working on a project that uses "webview via android app", the whole project depends on the ability to play & loop html5 videos (thus this bugreport). plus, we are using both "plain" audio for the video as well as using audio context to manipulate the audio of the video, channel gains/merging/panning a.o. we will happily put it under rigorous field test if possible.
Cc: candr...@chromium.org
Owner: krav...@chromium.org
Cc: -ti...@chromium.org
Owner: ti...@chromium.org
Device -SMP605/KOT49H/53.0.2785.49(Chrome Beta)/52.0.2743.91(Chrome stable)
Test url -http://jsbin.com/fijaxin/4/edit?html,js,output

Scenario 1:
Enable the flag -"Disable the unified media pipeline on Android" -> Video is  playing

Scenario 2:
Disable the flag -"Disable the unified media pipeline on Android" -> Video is not playing 

logs @http://go/chrome-androidlogs1/6/623943

kravula@: please confirm that you see the issue in Chrome (i.e. not only WebView).
I tested in chrome
Components: -Mobile>WebView Internals>Media>Video
M52 is default on for Chrome in M52, we're at 45% roll out right now, but will be at 100% in the next week or so. Thus for Chrome this should be resolved, WebView issues I'm not sure about.
I've been surprised by #9, I read it as it works when Spitzer is disabled. And it mentions Chrome 53.0.2785.49 that should be 100% Spitzer? Maybe I miss something.
Okay this is confusing, c#0 is about WebView only, c#9 is reporting things which  c#0 explicitly says are not true, and  issue 622325  tracks a similar problem that is now fixed.

timav@ can you get this device and see what the actual issue is?
I could not get the right device on the first round, but I'll try again.

Comment 17 by ti...@chromium.org, Aug 10 2016

Got the same device as in comment #9 (SMP605/KOT49H/53.0.2785.49(Chrome Beta)).
The test http://jsbin.com/fijaxin/4/edit?output played for me in Chrome for both enabled and disabled Spitzer.

On this device the jsbin.com site displays check box "Auto-run JS", video played for me only of this box was checked. Then you need to tap the video, and it played.

For non-Spitzer pipeline it seems you need to tap once to have the black screen appear, since there is no preview, and then tap again, and the video played.

It does not seem to me as a problem.

Comment 18 by ti...@chromium.org, Aug 10 2016

Cc: dalecur...@chromium.org
Status: WontFix (was: Assigned)
Seems like WontFix to me then.

Comment 20 by ti...@chromium.org, Aug 10 2016

The original report was on WebView. However, I cannot install a recent system webview on this user KitKat device because it requires API 21 (Lollipop) and I cannot flush this device either.

WontFix.
OP here. I can confirm that video is looping after installing newest WebView beta (SM-P605, 53.0.2785.57) and issues described in the report do not manifest any more. Video loops, audio loops, both in sync, no glitches. Tested with MP4.

Sign in to add a comment