justintv / Twitch-API

A home for details about our API
www.twitch.tv
1.72k stars 381 forks source link

Disable resume timestamp with the VOD. #654

Open rex5207 opened 7 years ago

rex5207 commented 7 years ago

When I use the embed-video and use following code to initial twitch player

var player = new Twitch.Player("{PLAYER_DIV_ID}", options);

It will auto resume the timestamp to where I paused this VOD before

How should I disable this function?

Thanks a lot .

jwmalara commented 7 years ago

Have you tried seeking to 0 on READY or PLAY? I was looking for a solution to this a while back, but unfortunately wasn't able to find a way of disabling it.

rex5207 commented 7 years ago

Yes, I try to seek to 0 on READY or PLAY. But it will still move the timestamp to where I paused before.

jwmalara commented 7 years ago

Yeah, can confirm I'm seeing the same behavior. It would be nice if we had the option to disable resuming or at least an event that's emitted after the player seeks to the resumed position.