Jump to content

EXT-X-START:TIME-OFFSET


AntaresFR

Recommended Posts

AntaresFR

HI,

I'm trying to start an HLS from a specific point, but it seems I need the tag EXT-X-START:TIME-OFFSET in the m3u8.

Could it be possible to add it ? It looks like the ffmpeg command which generate the m3u8 list should contain -hls_start_time

I don't understand the main of StartTimeTicks in the API doc. I tried to add it to my playbackinfo request but it dont see it used.

Regards

Link to comment
Share on other sites

It's possible for the future, but in the meantime you can just do a seek client-side after it starts playing.

Link to comment
Share on other sites

AntaresFR

Yes that's what i tried but without success at the moment :)

It doesn't start the stream, but i can see it tries to load corresponding segments.

var video = $('#video');
var gototime = Math.floor(StartPositionTicks/10000000);

if(Hls.isSupported()) {
    var config = {}
    hls = new Hls(config);
    hls.loadSource(data);
    hls.attachMedia(video[0]);
    hls.on(Hls.Events.MANIFEST_PARSED,function()
    {
        video[0].play();
        video.on("loadeddata",function() {
            if (gototime!=0) video[0].currentTime = gototime;
        });
    });
}
Link to comment
Share on other sites

AntaresFR

HLS support is really bad on chrome, even with HLS.js it's shitty...

When i manually seek, sometimes it works, sometimes it fails...

On the emby web client, there are some videos i'm not able to play more than few minutes, then i got a buffer full fatal error in chrome...

I hate chrome :D

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...