Use hls.js light
authorChocobozzz <me@florianbigard.com>
Wed, 8 Apr 2020 07:12:52 +0000 (09:12 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 8 Apr 2020 07:12:52 +0000 (09:12 +0200)
Because we don't need subtitling and alternate-audio features

client/src/assets/player/p2p-media-loader/hls-plugin.ts
client/src/assets/player/p2p-media-loader/p2p-media-loader-plugin.ts

index 5bfa39cfa547d7906e3791909b5f641b33e01e30..876ed7d9c89edf7918ae857aaad74959731d097e 100644 (file)
@@ -1,7 +1,7 @@
 // Thanks https://github.com/streamroot/videojs-hlsjs-plugin
 // We duplicated this plugin to choose the hls.js version we want, because streamroot only provide a bundled file
 
-import * as Hlsjs from 'hls.js'
+import * as Hlsjs from 'hls.js/dist/hls.light.js'
 import videojs, { VideoJsPlayer } from 'video.js'
 import { HlsjsConfigHandlerOptions, QualityLevelRepresentation, QualityLevels, VideoJSTechHLS } from '../peertube-videojs-typings'
 
index e86900faab957ffb09208247d5af00f17eb8c82f..ca205d899c9d241bdbe3b55b47d68a9b1855313d 100644 (file)
@@ -4,7 +4,7 @@ import { Engine, initHlsJsPlayer, initVideoJsContribHlsJsPlayer } from 'p2p-medi
 import { Events, Segment } from 'p2p-media-loader-core'
 import { timeToInt } from '../utils'
 import { registerConfigPlugin, registerSourceHandler } from './hls-plugin'
-import * as Hlsjs from 'hls.js'
+import * as Hlsjs from 'hls.js/dist/hls.light.js'
 
 registerConfigPlugin(videojs)
 registerSourceHandler(videojs)