[Webkit-unassigned] [Bug 177867] Unexpected "playing" event triggered when video playback fails

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 5 05:30:47 PDT 2017


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

--- Comment #5 from Eirik Sletteberg <eiriksletteberg at gmail.com> ---
(In reply to Jer Noble from comment #3)
> This is intentional. Many websites never check the promise returned by
> ply(), and leave their player UI in a broken state.

I'm not sure I understand, could you please elaborate a bit on that? I argue the opposite.

The bug I reported (or "feature", if it's intentional) will leave player UIs in a broken state. If a developer gets a "playing" event from the video element, they will (supposedly) change the "play" button in the UI to be a "pause" button. If they receive an "error" event, they will change the button to a "play button" and show an error message, or something.

Assume somebody triggers play() on the video element, but the playback action is denied, because of the autoplay restriction. The "playing" event will still be dispatched (which is what the bug is about). This will lead to a broken UI state, because the "play" button will have been made into a "pause" button (assuming that's how the developer implemented the UI) - even if the video isn't playing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171005/b77a9a03/attachment.html>


More information about the webkit-unassigned mailing list