[Webkit-unassigned] [Bug 90498] add a setting to allow user to play a media by clicking on it

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 5 14:43:02 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=90498


Eric Carlson <eric.carlson at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #150691|review?                     |review-
               Flag|                            |




--- Comment #10 from Eric Carlson <eric.carlson at apple.com>  2012-07-05 14:43:01 PST ---
(From update of attachment 150691)
View in context: https://bugs.webkit.org/attachment.cgi?id=150691&action=review

> Source/WebCore/html/HTMLMediaElement.cpp:3855
> +    if (document()->settings() && document()->settings()->mediaClickToPlayEnabled() && event->type() == eventNames().clickEvent && canPlay()) {
> +        play();
> +        event->setDefaultHandled();

This strikes me as the wrong way to enable this feature. Other (most?) players that enable "click to play" have a UI affordance to help the user understand that clicking will initiate playback, often a large "play" button. If someone wanted to implement that in a WebKit port, they would not be able to use this setting because the play button would intercept the click, and they would presumably want to restrict the behavior to clicks in the play button.

It seems to me that you are adding a new control function, so the right place for this is in the media control code. It should be easy to add an element to the controls shadow DOM and do the hit testing there. Whether you actually show a button or not is tangential.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list