diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-08 09:12:52 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-04-08 09:12:52 +0200 |
commit | fd69c52f8477c44ce506f5a44bc5ee394cad0ef0 (patch) | |
tree | d9b1a704f8211d7ac2fb9187e7aca6c08e9408e5 /client/src | |
parent | 8c9e7875269a990ed3000e1d4995d808e4ff50f7 (diff) | |
download | PeerTube-fd69c52f8477c44ce506f5a44bc5ee394cad0ef0.tar.gz PeerTube-fd69c52f8477c44ce506f5a44bc5ee394cad0ef0.tar.zst PeerTube-fd69c52f8477c44ce506f5a44bc5ee394cad0ef0.zip |
Use hls.js light
Because we don't need subtitling and alternate-audio features
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/assets/player/p2p-media-loader/hls-plugin.ts | 2 | ||||
-rw-r--r-- | client/src/assets/player/p2p-media-loader/p2p-media-loader-plugin.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/client/src/assets/player/p2p-media-loader/hls-plugin.ts b/client/src/assets/player/p2p-media-loader/hls-plugin.ts index 5bfa39cfa..876ed7d9c 100644 --- a/client/src/assets/player/p2p-media-loader/hls-plugin.ts +++ b/client/src/assets/player/p2p-media-loader/hls-plugin.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | // Thanks https://github.com/streamroot/videojs-hlsjs-plugin | 1 | // Thanks https://github.com/streamroot/videojs-hlsjs-plugin |
2 | // We duplicated this plugin to choose the hls.js version we want, because streamroot only provide a bundled file | 2 | // We duplicated this plugin to choose the hls.js version we want, because streamroot only provide a bundled file |
3 | 3 | ||
4 | import * as Hlsjs from 'hls.js' | 4 | import * as Hlsjs from 'hls.js/dist/hls.light.js' |
5 | import videojs, { VideoJsPlayer } from 'video.js' | 5 | import videojs, { VideoJsPlayer } from 'video.js' |
6 | import { HlsjsConfigHandlerOptions, QualityLevelRepresentation, QualityLevels, VideoJSTechHLS } from '../peertube-videojs-typings' | 6 | import { HlsjsConfigHandlerOptions, QualityLevelRepresentation, QualityLevels, VideoJSTechHLS } from '../peertube-videojs-typings' |
7 | 7 | ||
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 e86900faa..ca205d899 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 | |||
@@ -4,7 +4,7 @@ import { Engine, initHlsJsPlayer, initVideoJsContribHlsJsPlayer } from 'p2p-medi | |||
4 | import { Events, Segment } from 'p2p-media-loader-core' | 4 | import { Events, Segment } from 'p2p-media-loader-core' |
5 | import { timeToInt } from '../utils' | 5 | import { timeToInt } from '../utils' |
6 | import { registerConfigPlugin, registerSourceHandler } from './hls-plugin' | 6 | import { registerConfigPlugin, registerSourceHandler } from './hls-plugin' |
7 | import * as Hlsjs from 'hls.js' | 7 | import * as Hlsjs from 'hls.js/dist/hls.light.js' |
8 | 8 | ||
9 | registerConfigPlugin(videojs) | 9 | registerConfigPlugin(videojs) |
10 | registerSourceHandler(videojs) | 10 | registerSourceHandler(videojs) |