Closed
Bug 1225554
Opened 9 years ago
Closed 9 years ago
Clicking play button after pausing Youtube html5 video button does not resume video
Categories
(Firefox for Android Graveyard :: Audio/Video, defect)
Firefox for Android Graveyard
Audio/Video
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: miketaylr, Assigned: miketaylr)
References
Details
STR, In Fennec 42 (stable) and up:
1) Open youtube.com and select any video to play
2) tap the video to bring up controls and press the pause button
3) press play button
Expected:
Video plays
Actual:
Controls are hidden. Clicking the video after that causes the video to play.
It's not clear to me if this is our bug, or something that Youtube is doing. So let's find out.
Assignee | ||
Comment 1•9 years ago
|
||
I think the main issue that causes this is the difference between dispatching events from native video controls (we do and Chrome doesn't).
Here's a test page: https://miketaylr.com/bzla/controls.html. When you click play or pause, those events are dispatched to the <video> element in Fennec (and Firefox desktop), while they are not in Chrome Mobile (and desktop).
Click + touch events dispatched on Video | No events dispatched on Video
-----------------------------------------|------------------------------
Firefox Desktop | Chrome Desktop
Firefox for Android | Chrome Mobile
Safari Desktop |
Presto Opera | Opera Mobile
| Edge Desktop
And then there's a few browsers that do special things:
Safari Mobile and FxiOS fire touchstart and touchend on the <video> wen you click play, but then the video is passed off to the system player. Clicking "Done" or pause don't send any events.
IE Mobile (Win Phone 8.2) dispatches touchstart and touchend (but not click) on the video.
Now I need to find out where in the Youtube JS to see if my theory is correct, and to help us decide if this is something that Youtube can easily work around or if we should investigate moving towards Chrome/Opera/Edge behavior.
Assignee | ||
Comment 2•9 years ago
|
||
Actually, this might be the wrong theory -- Firefox OS doesn't have the bug and also dispatches touchstart/touchend/click on the video. Time to dig back into Youtube...
tracking-fennec: --- → ?
Assignee | ||
Comment 3•9 years ago
|
||
On a hunch, I re-tested w/ the patch from 1217055 applied and the play button is back to working.
Francisco, can you verify this is the behavior we want? To test without having to wait for that path to land, set the following to false in about:config, and refresh the page:
general.useragent.updates.enabled
The one difference between us and Chrome is that the only way to get a video playing again is via the controls. Chrome will let you click anywhere on the video -- but that's an implementation detail of their native controls. They stick a (fancy shadow-dom) play button on the video (the hit region happens to be the entire video), in addition to their controls below the video. See https://cloudup.com/cYCEnjIfNEF.
Flags: needinfo?(fstruck)
Comment 4•9 years ago
|
||
Yep, that's that.. Thanks and have a great weekend!
Flags: needinfo?(fstruck)
Assignee | ||
Comment 5•9 years ago
|
||
This is fixed in Nightly, and I've requested uplift for Aurora and Beta over in https://bugzilla.mozilla.org/show_bug.cgi?id=1217055#c11.
Can you verify (and close if working) in Nightly Francisco?
Flags: needinfo?(fstruck)
Comment 6•9 years ago
|
||
It works. Hopefully it will hit Production in 43...
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: needinfo?(fstruck)
Resolution: --- → FIXED
Assignee | ||
Comment 7•9 years ago
|
||
The patch was uplifted to beta and aurora, so assuming they stick it should land in 43.
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•