Start video player at specific play time #3902
-
Hi All, When I create my video player, I'd like to set the playback to begin at a specific playback time. I have this working by doing the following:
This works. But the problem is that the seek does not occur until after the chunk has been loaded for the start of the video. This takes a couple seconds, then the seek happens, and it takes a couple of seconds to load the chunk at the specified playback time. The problem is that it takes 2x the amount of time for the player to be in a ready state since it is unnecessarily loading the first chunk. Is there anyway to interrupt this initial load so that I don't have to wait until I can seek to my desired location in the video? Or is there a better way to configure the player so that it loads the correct chunk from the get-go without loading the chunk at the start of the video? Not sure if version matters, but I'm currently using 3.1.1 Thanks in advance! Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can use MPD anchors, but you will have to check if this was already supported in dash.js 3.1.1: https://reference.dashif.org/dash.js/nightly/samples/advanced/mpd-anchors.html . I recommend to migrate to the latest version 4.3.0. |
Beta Was this translation helpful? Give feedback.
-
Thanks so much, I tried that and this does work in 3.1.1. |
Beta Was this translation helpful? Give feedback.
You can use MPD anchors, but you will have to check if this was already supported in dash.js 3.1.1: https://reference.dashif.org/dash.js/nightly/samples/advanced/mpd-anchors.html . I recommend to migrate to the latest version 4.3.0.