aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-08-13 11:08:36 +0200
committerChocobozzz <me@florianbigard.com>2019-08-13 11:08:36 +0200
commite028d983727f7826f5aebfe84770c5c37a712b4d (patch)
tree75bf60217b441d72f71763042c0a0ca2eee33135 /client/src/assets
parentdfe4294a7249dc20b5a3625c446e642cdb0cd39d (diff)
downloadPeerTube-e028d983727f7826f5aebfe84770c5c37a712b4d.tar.gz
PeerTube-e028d983727f7826f5aebfe84770c5c37a712b4d.tar.zst
PeerTube-e028d983727f7826f5aebfe84770c5c37a712b4d.zip
Fix start time on HLS videos
Diffstat (limited to 'client/src/assets')
-rw-r--r--client/src/assets/player/p2p-media-loader/p2p-media-loader-plugin.ts17
1 files changed, 1 insertions, 16 deletions
diff --git a/client/src/assets/player/p2p-media-loader/p2p-media-loader-plugin.ts b/client/src/assets/player/p2p-media-loader/p2p-media-loader-plugin.ts
index 7a0af6e8a..8fb7ba2ea 100644
--- a/client/src/assets/player/p2p-media-loader/p2p-media-loader-plugin.ts
+++ b/client/src/assets/player/p2p-media-loader/p2p-media-loader-plugin.ts
@@ -98,25 +98,10 @@ class P2pMediaLoaderPlugin extends Plugin {
98 98
99 this.runStats() 99 this.runStats()
100 100
101 this.hlsjs.on('hlsLevelLoaded', () => { 101 this.player.one('canplay', () => {
102 console.log('hello1')
103 if (this.startTime) { 102 if (this.startTime) {
104 this.player.currentTime(this.startTime) 103 this.player.currentTime(this.startTime)
105 } 104 }
106
107 this.hlsjs.off('hlsLevelLoaded', this)
108 })
109
110 this.hlsjs.on('hlsFragParsed', () => {
111 console.log('hello2')
112 })
113
114 this.hlsjs.on('hlsFragBuffered', () => {
115 console.log('hello 3')
116 })
117
118 this.player.one('loadedmetadata', () => {
119 console.log('hello 4')
120 }) 105 })
121 } 106 }
122 107