Fix videojs subtitles
This commit is contained in:
parent
fd69c52f84
commit
9cdeb80650
4 changed files with 1 additions and 10 deletions
|
@ -126,7 +126,6 @@
|
||||||
"videojs-dock": "^2.0.2",
|
"videojs-dock": "^2.0.2",
|
||||||
"videojs-hotkeys": "^0.2.21",
|
"videojs-hotkeys": "^0.2.21",
|
||||||
"videostream": "~3.2.1",
|
"videostream": "~3.2.1",
|
||||||
"vtt.js": "^0.13.0",
|
|
||||||
"webpack-bundle-analyzer": "^3.0.2",
|
"webpack-bundle-analyzer": "^3.0.2",
|
||||||
"webpack-cli": "^3.0.8",
|
"webpack-cli": "^3.0.8",
|
||||||
"webtorrent": "^0.108.1",
|
"webtorrent": "^0.108.1",
|
||||||
|
|
|
@ -29,9 +29,6 @@ import { RedundancyUrlManager } from './p2p-media-loader/redundancy-url-manager'
|
||||||
import { getStoredP2PEnabled } from './peertube-player-local-storage'
|
import { getStoredP2PEnabled } from './peertube-player-local-storage'
|
||||||
import { TranslationsManager } from './translations-manager'
|
import { TranslationsManager } from './translations-manager'
|
||||||
|
|
||||||
// For VideoJS
|
|
||||||
(window as any).WebVTT = require('vtt.js/lib/vtt.js').WebVTT;
|
|
||||||
|
|
||||||
// Change 'Playback Rate' to 'Speed' (smaller for our settings menu)
|
// Change 'Playback Rate' to 'Speed' (smaller for our settings menu)
|
||||||
(videojs.getComponent('PlaybackRateMenuButton') as any).prototype.controlText_ = 'Speed'
|
(videojs.getComponent('PlaybackRateMenuButton') as any).prototype.controlText_ = 'Speed'
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
"paths": {
|
"paths": {
|
||||||
"@app/*": [ "src/app/*" ],
|
"@app/*": [ "src/app/*" ],
|
||||||
"@shared/*": [ "../shared/*" ],
|
"@shared/*": [ "../shared/*" ],
|
||||||
"video.js": [ "node_modules/video.js/dist/alt/video.core.novtt" ],
|
"video.js": [ "node_modules/video.js/dist/alt/video.core" ],
|
||||||
"fs": [ "src/shims/noop" ],
|
"fs": [ "src/shims/noop" ],
|
||||||
"http": [ "src/shims/http" ],
|
"http": [ "src/shims/http" ],
|
||||||
"https": [ "src/shims/https" ],
|
"https": [ "src/shims/https" ],
|
||||||
|
|
|
@ -11505,11 +11505,6 @@ void-elements@^2.0.0:
|
||||||
resolved "https://registry.yarnpkg.com/void-elements/-/void-elements-2.0.1.tgz#c066afb582bb1cb4128d60ea92392e94d5e9dbec"
|
resolved "https://registry.yarnpkg.com/void-elements/-/void-elements-2.0.1.tgz#c066afb582bb1cb4128d60ea92392e94d5e9dbec"
|
||||||
integrity sha1-wGavtYK7HLQSjWDqkjkulNXp2+w=
|
integrity sha1-wGavtYK7HLQSjWDqkjkulNXp2+w=
|
||||||
|
|
||||||
vtt.js@^0.13.0:
|
|
||||||
version "0.13.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/vtt.js/-/vtt.js-0.13.0.tgz#955c667b34d5325b2012cb9e8ba9bad6e0b11ff8"
|
|
||||||
integrity sha1-lVxmezTVMlsgEsuei6m61uCxH/g=
|
|
||||||
|
|
||||||
watchpack@^1.6.0:
|
watchpack@^1.6.0:
|
||||||
version "1.6.1"
|
version "1.6.1"
|
||||||
resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.6.1.tgz#280da0a8718592174010c078c7585a74cd8cd0e2"
|
resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.6.1.tgz#280da0a8718592174010c078c7585a74cd8cd0e2"
|
||||||
|
|
Loading…
Reference in a new issue