Open fregante opened 7 years ago
Current incorrect behavior on autoplay videos:
autoplay
paused
false
play
Correct behavior:
true
canplay
playing
Source: https://www.w3.org/TR/html5/embedded-content-0.html#handling-first-frame-available
Also, when a new src is set, the event order should be changed:
src
loadeddata +playing canplay canplaythrough -play -playing
Current incorrect behavior on
autoplay
videos:paused
is set tofalse
immediatelyplay
event is triggered immediatelyCorrect behavior:
paused
should be set totrue
after thecanplay
eventcanplay
,play
, andplaying
should be fired at the same timeSource: https://www.w3.org/TR/html5/embedded-content-0.html#handling-first-frame-available