You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.
The loadstart event does not always happen before the loadedmetadata event, which is the expected behavior. This causes problems for example when trying to override the playlist selection, as discussed in #277. You can see the problem in action at http://output.jsbin.com/haheco/1/ (I can reproduce the problem around 50% of the time).
Today loadstart is triggered in Flash (HTTPVideoProvider:initNetConnection), and loadedmetadata is triggered in both HLS JS (playlists.on('loadedmetadata') handler) and Flash (HTTPVideoProvider:onMetaData). My understanding is that we want to trigger loadstart right before we start downloading the playlists at videojs-hls.js#L108, but that would mean moving that logic from Flash to JS. It would make sense to only trigger loadedmetadata from JS too, as the event triggers twice today.
I'm not sure what other implications/issues apart from #277 there are, but nonetheless this seems like it could cause more problems down the road. I'm not sure how this problem should be approached (it seems code changes are needed both in Flash and contrib HLS), but I wanted to highlight the issue and also ask for feedback in case I'm misunderstanding something.
The text was updated successfully, but these errors were encountered:
@dcrockwell: There's a very crude monkey-patch which works as a short-term workaround if you really need it. Notice line 63. Maybe there are better workarounds, but this is what we are forced to used at the moment.
The
loadstart
event does not always happen before theloadedmetadata
event, which is the expected behavior. This causes problems for example when trying to override the playlist selection, as discussed in #277. You can see the problem in action at http://output.jsbin.com/haheco/1/ (I can reproduce the problem around 50% of the time).Today
loadstart
is triggered in Flash (HTTPVideoProvider:initNetConnection), andloadedmetadata
is triggered in both HLS JS (playlists.on('loadedmetadata') handler) and Flash (HTTPVideoProvider:onMetaData). My understanding is that we want to triggerloadstart
right before we start downloading the playlists at videojs-hls.js#L108, but that would mean moving that logic from Flash to JS. It would make sense to only triggerloadedmetadata
from JS too, as the event triggers twice today.I'm not sure what other implications/issues apart from #277 there are, but nonetheless this seems like it could cause more problems down the road. I'm not sure how this problem should be approached (it seems code changes are needed both in Flash and contrib HLS), but I wanted to highlight the issue and also ask for feedback in case I'm misunderstanding something.
The text was updated successfully, but these errors were encountered: