]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix videojs subtitles
authorChocobozzz <me@florianbigard.com>
Wed, 8 Apr 2020 07:36:51 +0000 (09:36 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 8 Apr 2020 07:36:51 +0000 (09:36 +0200)
client/package.json
client/src/assets/player/peertube-player-manager.ts
client/tsconfig.json
client/yarn.lock

index 31d620b45acc7ca080ed2526db98cf97247d10cc..91be5eef5e4230ce58ebb4440f47c2053b8e978a 100644 (file)
     "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",
index 8e6a4f139c8f9cbedbdea91d8a2d0e0fa42e6727..6d9236a9da9deea36da764d65b917b9f5b7d2d72 100644 (file)
@@ -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'
 
index fbdeb6d5df5c0e2ba85e12602e188772822d42e9..3c671e579ce3e666512fa275062fddf8c6b6f74f 100644 (file)
@@ -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" ],
index 433c07d4f443a6728d450bbf57a38cbf4304d229..1ed95aaed4f7133ca5bb7a730bbbaabbed943538 100644 (file)
@@ -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"