Verified Commit 9cdeb806 authored by Chocobozzz's avatar Chocobozzz
Browse files

Fix videojs subtitles

parent fd69c52f
......@@ -126,7 +126,6 @@
"videojs-dock": "^2.0.2",
"videojs-hotkeys": "^0.2.21",
"videostream": "~3.2.1",
"vtt.js": "^0.13.0",
"webpack-bundle-analyzer": "^3.0.2",
"webpack-cli": "^3.0.8",
"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 { 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)
(videojs.getComponent('PlaybackRateMenuButton') as any).prototype.controlText_ = 'Speed'
......
......@@ -26,7 +26,7 @@
"paths": {
"@app/*": [ "src/app/*" ],
"@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" ],
"http": [ "src/shims/http" ],
"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"
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:
version "1.6.1"
resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.6.1.tgz#280da0a8718592174010c078c7585a74cd8cd0e2"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment