New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop Loading Video Stream #6368
Comments
Playback is controlled with the HTMLMediaElement, not HLS.js.
See the API docs for the list of configuration options: https://github.com/video-dev/hls.js/blob/master/docs/API.md
Can you describe in more detail what you would like to do? |
Is this information enough? |
Hi @SpeakWind, The screenshots and comments above look like a sort of snapshot of what you've tried, but I am having a hard time translating it all into functional requirements that I can help you with. Really what I wanted was for you to clarify what you meant by "limit the playback time" in plain terms we could both understand.
Are you trying to simply pause() playback after it reaches a certain point, or are you looking to override duration so that playback stops when it reaches a point earlier than the duration of the HLS asset you are streaming with HLS.js? |
Yes. I need override duration. Playback should stop naturally when it reaches the end of the fragment. Visually, it should look as if the entire video fragment has played and there is nothing left to watch. |
That is not a feature of HLS.js. However, it could be achieved by manipulating the LevelDetails on LEVEL_UPDATED (modify |
What do you want to do with Hls.js?
How can I limit the playback time of a video stream?
Perhaps I could not figure out the library settings and this can be done at the time of creating an instance of the class. If not, then I will further describe what I have already tried to do to solve my issue and why these solutions are not entirely suitable.
The text was updated successfully, but these errors were encountered: