diff options
Diffstat (limited to 'client/src/assets/player')
-rw-r--r-- | client/src/assets/player/p2p-media-loader/p2p-media-loader-plugin.ts | 17 |
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 | ||