mirror of https://github.com/Chocobozzz/PeerTube
Use hls.js light
Because we don't need subtitling and alternate-audio featurespull/2615/head
parent
8c9e787526
commit
fd69c52f84
|
@ -1,7 +1,7 @@
|
||||||
// Thanks https://github.com/streamroot/videojs-hlsjs-plugin
|
// 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
|
// 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 videojs, { VideoJsPlayer } from 'video.js'
|
||||||
import { HlsjsConfigHandlerOptions, QualityLevelRepresentation, QualityLevels, VideoJSTechHLS } from '../peertube-videojs-typings'
|
import { HlsjsConfigHandlerOptions, QualityLevelRepresentation, QualityLevels, VideoJSTechHLS } from '../peertube-videojs-typings'
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { Engine, initHlsJsPlayer, initVideoJsContribHlsJsPlayer } from 'p2p-medi
|
||||||
import { Events, Segment } from 'p2p-media-loader-core'
|
import { Events, Segment } from 'p2p-media-loader-core'
|
||||||
import { timeToInt } from '../utils'
|
import { timeToInt } from '../utils'
|
||||||
import { registerConfigPlugin, registerSourceHandler } from './hls-plugin'
|
import { registerConfigPlugin, registerSourceHandler } from './hls-plugin'
|
||||||
import * as Hlsjs from 'hls.js'
|
import * as Hlsjs from 'hls.js/dist/hls.light.js'
|
||||||
|
|
||||||
registerConfigPlugin(videojs)
|
registerConfigPlugin(videojs)
|
||||||
registerSourceHandler(videojs)
|
registerSourceHandler(videojs)
|
||||||
|
|
Loading…
Reference in New Issue