Hello,
First thanks for your hard work the player is really useful !
I'm using the brand new seekbar and trying to start an HLS live stream at the first segment but currentTime() doesn't seem to work even with negative integers.
componentDidMount() {
// instantiate Video.js
this.player = videojs(this.videoNode, this.props, function onPlayerReady() {
this.player_.currentTime(0)
});
}
I'm probably doing something wrong, thanks a lot !
馃憢 Thanks for opening your first issue here! 馃憢
If you're reporting a 馃悶 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
Seeking on loadedmetadata is probably more reliable and safer. Additionally, you probably should be seeking to the beginning of the seekable range rather than 0. Something like:
```js
player.on('loadedmetadata', function() {
player.currentTime(player.seekable().start(0));
});
Thanks a lot, it works as intended !
Most helpful comment
Thanks a lot, it works as intended !