Closed Bug 1234821 Opened 9 years ago Closed 9 years ago

HTML 5 Video events order

Categories

(Core :: Audio/Video: Playback, defect)

All
Other
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1229256

People

(Reporter: rafarel007, Unassigned)

Details

(Whiteboard: [specification][type:bug])

What did you do? ================ 1/ I create a video tag with a source tag (in javascript), then I listen to all video events and output to the console the type of event to see the firing order before doing video.load(); 2/ I load the video "video.load()" and I watch my console to see the events firing order. What happened? ============== I have in order : - loadstart - progress - durationchange - loadedmetadata - loadeddata And nothing else ... I'am waiting to the canplay :'( What should have happened? ========================== It should have fired the canplay and the canplaythrough events after the loadeddata. To get the canplay event I have to actually play the video, that makes no sense at all ! (in my humble opinion, the canplay should tell me that i can do play, it should come before the play action not after) Sometimes if the video is in cache or something the canplay event is triggered in the right order (I don't need to play to have it). Is there anything else we should know? ====================================== I have tested it on Firefox 43.0.1 on MacOs 10.10.5 and on Firefox 43.0 on Ubuntu 15.10
Component: General → Audio/Video: Playback
Product: Mozilla Developer Network → Core
a workaround for now is to set preload=auto , not preload=metadata as otherwise no data will be fetched and as such canplay will never be fired
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Thanks for your reply I'll try this!
Alternatively, use Firefox Developer Edition (45) it has the proper fix
You need to log in before you can comment on or make changes to this bug.