diff options
author | Chocobozzz <me@florianbigard.com> | 2021-09-06 16:08:59 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-09-10 15:06:57 +0200 |
commit | e367da949bb97c3db8c2f9a28ea09eef93abb2f5 (patch) | |
tree | 49efec8135840525eedeee45fd914b77542534f9 /client/src/assets/player/p2p-media-loader/p2p-media-loader-plugin.ts | |
parent | 4d3e611dd2764d1d5d0a7e777312631e1e7005d4 (diff) | |
download | PeerTube-e367da949bb97c3db8c2f9a28ea09eef93abb2f5.tar.gz PeerTube-e367da949bb97c3db8c2f9a28ea09eef93abb2f5.tar.zst PeerTube-e367da949bb97c3db8c2f9a28ea09eef93abb2f5.zip |
Cleanup player quality change
Diffstat (limited to 'client/src/assets/player/p2p-media-loader/p2p-media-loader-plugin.ts')
-rw-r--r-- | client/src/assets/player/p2p-media-loader/p2p-media-loader-plugin.ts | 8 |
1 files changed, 0 insertions, 8 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 acd40636e..d917fda03 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 | |||
@@ -116,14 +116,6 @@ class P2pMediaLoaderPlugin extends Plugin { | |||
116 | const options = this.player.tech(true).options_ as any | 116 | const options = this.player.tech(true).options_ as any |
117 | this.p2pEngine = options.hlsjsConfig.loader.getEngine() | 117 | this.p2pEngine = options.hlsjsConfig.loader.getEngine() |
118 | 118 | ||
119 | this.hlsjs.on(Hlsjs.Events.LEVEL_SWITCHING, (_: any, data: any) => { | ||
120 | this.trigger('resolutionChange', { auto: this.hlsjs.autoLevelEnabled, resolutionId: data.height }) | ||
121 | }) | ||
122 | |||
123 | this.hlsjs.on(Hlsjs.Events.MANIFEST_LOADED, (_: any, data: any) => { | ||
124 | this.trigger('resolutionsLoaded') | ||
125 | }) | ||
126 | |||
127 | this.p2pEngine.on(Events.SegmentError, (segment: Segment, err) => { | 119 | this.p2pEngine.on(Events.SegmentError, (segment: Segment, err) => { |
128 | console.error('Segment error.', segment, err) | 120 | console.error('Segment error.', segment, err) |
129 | 121 | ||