-
Notifications
You must be signed in to change notification settings - Fork 794
Combine the flash tech and HLS tech's currentTime methods #170
Comments
It's possible that we don't need to override the Also, you accidentally linked to |
Bah! Thanks. Updated it. Yeah there's nothing that jumps out to me there that has to be different. The SetCurrentTime was going to be my next question so I guess I don't need to open a different issue for it. Could we just listen for the |
Listening to |
Cool, I'll try to validate that. I'm guessing the swf will need to be updated to handle (or just ignore) seeks in the appendBytes mode. |
There was a reason for overriding currentTime() at some point but that may have disappeared in video.js updates since then. I can not recall what it might have been right now. |
I believe it was important that we had access to the seek target so that we could update the NetStream with the new base time offset once seeking had completed. The seek-related events we tried only had access to the current playback time, not the time that the seek was headed to. |
The flash tech should be reporting the seek target for currentTime when the seeking even is fired. I don't know if this was before or after you were testing it for HLS, but looks like it was updated in January. videojs/video.js@dd8c25e The video element appears to do the same, at least with MSE. |
Fixed in the video.js 5.0 / development branch. |
As part of scoping out the source handler interface I'm trying to reduce the need to override existing tech methods.
The HLS tech's currentTime and Flash's currentTime are pretty similar, and it's not clear what the need for the differences is. Does anyone know the background? Could features in the HLS version be added to the Flash version?
HLS
Flash
The text was updated successfully, but these errors were encountered: