Verified Commit e028d983 authored by Chocobozzz's avatar Chocobozzz
Browse files

Fix start time on HLS videos

parent dfe4294a
......@@ -98,25 +98,10 @@ class P2pMediaLoaderPlugin extends Plugin {
this.runStats()
this.hlsjs.on('hlsLevelLoaded', () => {
console.log('hello1')
this.player.one('canplay', () => {
if (this.startTime) {
this.player.currentTime(this.startTime)
}
this.hlsjs.off('hlsLevelLoaded', this)
})
this.hlsjs.on('hlsFragParsed', () => {
console.log('hello2')
})
this.hlsjs.on('hlsFragBuffered', () => {
console.log('hello 3')
})
this.player.one('loadedmetadata', () => {
console.log('hello 4')
})
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment