Hls.js: How to seek to live on a live stream?

Created on 22 Sep 2018  路  1Comment  路  Source: video-dev/hls.js

What do you want to do with Hls.js?
I'd like to add a button under the stream that is "Jump to Live", which immediately plays the most recently received fragment. There'll be warnings that say it'll probably buffer and lag, but I'd still like to provide the option.

How can this be done?

What have you tried so far?
Tried looking for seek options in the API docs

Also tried extracting the HTML5 Video element and changing video.currentTime, and that works, but I also need to know where the most up to date fragment time is.

Thanks in advance!

Most helpful comment

video.currentTime = video.duration - 1

>All comments

video.currentTime = video.duration - 1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jlacivita picture jlacivita  路  3Comments

osamay picture osamay  路  4Comments

eteubert picture eteubert  路  3Comments

krsvital picture krsvital  路  3Comments

shalommeoded picture shalommeoded  路  3Comments