Clicking on HTML5 video controls does not generate onclick event
Reported by
aja...@gmail.com,
Mar 6 2016
|
||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36 Example URL: https://jsfiddle.net/ajaxgb/26trou4o/4/ Steps to reproduce the problem: 1. Click anywhere on the video except the controls. 2. Note the alerts. 3. Click anywhere on the controls. 4. Note the lack of alerts. What is the expected behavior? Clicking on the video controls should generate an onclick event for the video tag. What went wrong? No click event was generated. Does it occur on multiple sites: Yes Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? Yes Chrome version: 48.0.2564.116 Channel: stable OS Version: 6.3 Flash Version: Shockwave Flash 20.0 r0
,
Mar 7 2016
,
Mar 7 2016
,
Mar 7 2016
,
Mar 14 2016
This is actually intentional. Issue 269454 tracked this change, and it was in response to a lot of discussion about the HTML spec. (Disclaimer: I was one of those who wanted this change.) One of the basic problem is that if scripts use the click event handler to play/pause the video, click the native play button will do nothing, as the two cancel each other out. I think there were cases, but I haven't gone back to look, where it wasn't possible to start playing the video using the big overlay play button on Android. Closing this as WontFix, but if this got in the way of something you were trying to do that's just impossible because of it, please do describe the situation, maybe there are improvements to be made here.
,
Mar 14 2016
Good reasoning. In fact, I realized some time after submitting this report that I would need to implement some hacky workarounds if it was actually fixed. I guess that all I really want is for the video player to get focus after the controls are clicked on, but that's a separate issue.
,
Mar 14 2016
Ah, interesting. Do you mean that you want to see a focus rectangle, or that you want document.activeElement to be the video element? It looks like the video element isn't getting focus at all now. Firefox actually does give the video element focus. Can you file a bug describing what you were hoping for?
,
Mar 14 2016
Filed as Issue 594518 . While I was creating the issue, I also discovered Issue 594517 .
,
Mar 21 2016
Renaming Blink>Video to Blink>Media>Video for better characterization |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by aja...@gmail.com
, Mar 6 2016