Skip to content
This repository has been archived by the owner on Dec 10, 2020. It is now read-only.

loadedmetadata event fires whenever currentTime is 0 #82

Closed
heff opened this issue Feb 22, 2014 · 1 comment
Closed

loadedmetadata event fires whenever currentTime is 0 #82

heff opened this issue Feb 22, 2014 · 1 comment

Comments

@heff
Copy link
Member

heff commented Feb 22, 2014

See videojs/video.js#462

http://jsfiddle.net/xu9Y6/10/ - (view in Firefox where flash player will be used)

I was able to find where the event is triggered, but I can't tell exactly how it's getting triggered.
https://github.com/videojs/video-js-swf/blob/master/src/com/videojs/providers/HTTPVideoProvider.as#L615

My best guess is this is a difference in how Flash works. That it always triggers the metadata event when you start from the beginning of a video file, even if you're just seeking back. Can anyone confirm?

@gkatsev
Copy link
Member

gkatsev commented Sep 26, 2014

I will be having a fix for this in #122. Basically, going to set a variable when onmetadata fires and resetting that variable when a new src is set.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants