Fix videojs
authorChocobozzz <me@florianbigard.com>
Tue, 21 Apr 2020 09:02:28 +0000 (11:02 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 21 Apr 2020 09:02:28 +0000 (11:02 +0200)
25 files changed:
client/src/assets/player/bezels/bezels-plugin.ts
client/src/assets/player/bezels/pause-bezel.ts
client/src/assets/player/p2p-media-loader/hls-plugin.ts
client/src/assets/player/p2p-media-loader/p2p-media-loader-plugin.ts
client/src/assets/player/peertube-player-manager.ts
client/src/assets/player/peertube-plugin.ts
client/src/assets/player/peertube-videojs-typings.ts
client/src/assets/player/upnext/end-card.ts
client/src/assets/player/upnext/upnext-plugin.ts
client/src/assets/player/videojs-components/next-video-button.ts
client/src/assets/player/videojs-components/p2p-info-button.ts
client/src/assets/player/videojs-components/peertube-link-button.ts
client/src/assets/player/videojs-components/peertube-load-progress-bar.ts
client/src/assets/player/videojs-components/resolution-menu-button.ts
client/src/assets/player/videojs-components/resolution-menu-item.ts
client/src/assets/player/videojs-components/settings-dialog.ts
client/src/assets/player/videojs-components/settings-menu-button.ts
client/src/assets/player/videojs-components/settings-menu-item.ts
client/src/assets/player/videojs-components/settings-panel-child.ts
client/src/assets/player/videojs-components/settings-panel.ts
client/src/assets/player/videojs-components/theater-button.ts
client/src/assets/player/webtorrent/webtorrent-plugin.ts
client/src/standalone/videos/embed.ts
client/tsconfig.json
client/webpack/webpack.video-embed.js

index ad8bfa70370ffebca898ec6deaef425fe23c67e4..ca88bc1f9f24e4ac6664cf2f2e3be5ae2783e627 100644 (file)
@@ -1,4 +1,4 @@
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 import './pause-bezel'
 
 const Plugin = videojs.getPlugin('plugin')
index d9ef9a390ba3bb1d8bb465f0aeeb8fe5751bba2a..886574380924f48a1eeed98458d33f75f0c659cd 100644 (file)
@@ -1,4 +1,4 @@
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 
 function getPauseBezel () {
   return `
index 6937d147ab4cab5215baa2d4109642d8e07eda8d..9e2ac1aa49b3f48d0df87571a6c5dbf3c9acf2dc 100644 (file)
@@ -2,7 +2,7 @@
 // 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/dist/hls.light.js'
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 import { HlsjsConfigHandlerOptions, QualityLevelRepresentation, QualityLevels, VideoJSTechHLS } from '../peertube-videojs-typings'
 
 type ErrorCounts = {
index 161c92b5e300ed6110b458f1d7014e4e888880fb..46c6bbaf2861b58c2fd2c00cd4810fff03b37172 100644 (file)
@@ -1,4 +1,4 @@
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 import { P2PMediaLoaderPluginOptions, PlayerNetworkInfo } from '../peertube-videojs-typings'
 import { Engine, initHlsJsPlayer, initVideoJsContribHlsJsPlayer } from 'p2p-media-loader-hlsjs'
 import { Events, Segment } from 'p2p-media-loader-core'
index 50701eefe4f7b7ad848d066e088caca7c9b05b21..12e460f03b37f131f35fc5e17244a81a565e1216 100644 (file)
@@ -1,6 +1,6 @@
 import { VideoFile } from '../../../../shared/models/videos'
-import videojs from 'video.js/dist/alt/video.core.js'
-import 'videojs-hotkeys'
+import videojs from 'video.js'
+import 'videojs-hotkeys/videojs.hotkeys'
 import 'videojs-dock'
 import 'videojs-contextmenu-ui'
 import 'videojs-contrib-quality-levels'
index afd8d678b8258325da96bf86ea796b0c7a4d8864..5085f7f86b758832ea9b19e371cceb0ebf055b77 100644 (file)
@@ -1,4 +1,4 @@
-import videojs from 'video.js/dist/alt/video.core'
+import videojs from 'video.js'
 import './videojs-components/settings-menu-button'
 import {
   PeerTubePluginOptions,
index 9616dd326e85118109aac802b5fa456c65593ea5..a4e4c580c12c4eb5e7153b0846886ceefc3eb985 100644 (file)
@@ -4,7 +4,7 @@ import { P2pMediaLoaderPlugin } from './p2p-media-loader/p2p-media-loader-plugin
 import { PlayerMode } from './peertube-player-manager'
 import { RedundancyUrlManager } from './p2p-media-loader/redundancy-url-manager'
 import { VideoFile } from '@shared/models'
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 import { Config, Level } from 'hls.js'
 
 declare module 'video.js' {
index c39a9c91349ec143a0ec9efd01e574948e7f71f2..8fabfc3fdfd03de2e21f9a663922496690c0b3f2 100644 (file)
@@ -1,4 +1,4 @@
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 
 function getMainTemplate (options: any) {
   return `
index ac7699e9ae827edb0cf1aa593949bd9ecca25ae1..db969024deb7bbdb324c87d9cf2b0305d37f2fc9 100644 (file)
@@ -1,4 +1,4 @@
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 import { EndCardOptions } from './end-card'
 
 const Plugin = videojs.getPlugin('plugin')
index c97ecdda679f19ec86c90fd4b0e96b5b74cc157c..22b32f06b93516993d6f4feb7e19f80723af68b2 100644 (file)
@@ -1,4 +1,4 @@
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 
 const Button = videojs.getComponent('Button')
 
index e340337ede03681bf4fd6c1bf58a6bbfd189d63a..db6806fed121d9605c53647b6f5598164187666d 100644 (file)
@@ -1,5 +1,5 @@
 import { PlayerNetworkInfo } from '../peertube-videojs-typings'
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 import { bytes } from '../utils'
 
 const Button = videojs.getComponent('Button')
index 4151758d4e76820c1c5a6a430f6c2f46fad923ed..63e92eb77575592fca41c5d250d6c45ae6587a72 100644 (file)
@@ -1,5 +1,5 @@
 import { buildVideoLink } from '../utils'
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 
 const Button = videojs.getComponent('Button')
 class PeerTubeLinkButton extends Button {
index 395720c5378376f581051975c14e32de6217d719..7869b56ce989473ee95da348f01cb7385366902f 100644 (file)
@@ -1,4 +1,4 @@
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 
 const Component = videojs.getComponent('Component')
 
index d49ca02300d8217a05fef67bf68ccbcfd7cbefe5..98e7f56fcc65db9b5701388a0594410b9bf95719 100644 (file)
@@ -1,4 +1,4 @@
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 
 import { LoadedQualityData } from '../peertube-videojs-typings'
 import { ResolutionMenuItem } from './resolution-menu-item'
index cb0d219ad92d757c81a8d0b72e9cdb6ce7178e77..73ad47d2b623addd18abfbe943d0f9ca298df248 100644 (file)
@@ -1,4 +1,4 @@
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 import { AutoResolutionUpdateData, ResolutionUpdateData } from '../peertube-videojs-typings'
 
 const MenuItem = videojs.getComponent('MenuItem')
index 8fd5ad96c01d1a48fa1b7c3edca4726a15d7bcb4..41911e7e8109c61115423029adfac9289214dacd 100644 (file)
@@ -1,4 +1,4 @@
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 
 const Component = videojs.getComponent('Component')
 
index 749128bdce77c5630a2150dde76379788dd7bedc..011323267848428d5e40548d880eca0fe29052b5 100644 (file)
@@ -1,7 +1,7 @@
 // Thanks to Yanko Shterev: https://github.com/yshterev/videojs-settings-menu
 import { SettingsMenuItem } from './settings-menu-item'
 import { toTitleCase } from '../utils'
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 
 import { SettingsDialog } from './settings-dialog'
 import { SettingsPanel } from './settings-panel'
index 8d364591bd4e5fe38d72ce95b0c44e07b7959c7f..f1342f1792ed5a2da9f4835df5a37d6cf81d1002 100644 (file)
@@ -1,6 +1,6 @@
 // Thanks to Yanko Shterev: https://github.com/yshterev/videojs-settings-menu
 import { toTitleCase } from '../utils'
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 import { SettingsButton } from './settings-menu-button'
 import { SettingsDialog } from './settings-dialog'
 import { SettingsPanel } from './settings-panel'
index 6dee6d7dfa05f3ee0e1664451fce8e78aa7cc373..d1582412c6e49006a35c35aba0eb613d62027fb6 100644 (file)
@@ -1,4 +1,4 @@
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 
 const Component = videojs.getComponent('Component')
 
index 833ee2f2114bf9ecccb1d1c66a2d5a858af78d15..1ad8bb1fc1de76a03aeeb1d2a86c7facaaf408b1 100644 (file)
@@ -1,4 +1,4 @@
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 
 const Component = videojs.getComponent('Component')
 
index 41875af7152d13d8cb137ec4ad79a0b1725dbeb3..f862ee2242ed02ec4f738c2d42667203f2f4dc3e 100644 (file)
@@ -1,4 +1,4 @@
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 import { saveTheaterInStore, getStoredTheater } from '../peertube-player-local-storage'
 
 const Button = videojs.getComponent('Button')
index 26fb5a2451d9dd7876303d29b33aac52b5b12002..cb3deacc6f6074684ad84a672afa21f57450d1c6 100644 (file)
@@ -1,4 +1,4 @@
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 import * as WebTorrent from 'webtorrent'
 import { renderVideo } from './video-renderer'
 import { LoadedQualityData, PlayerNetworkInfo, WebtorrentPluginOptions } from '../peertube-videojs-typings'
index 6616fab48708549120463506c24d561529b9aaa4..286757e5e0022bb9958017a547d520ef16987bbf 100644 (file)
@@ -15,7 +15,7 @@ import {
 import { VideoStreamingPlaylistType } from '../../../../shared/models/videos/video-streaming-playlist.type'
 import { PeerTubeEmbedApi } from './embed-api'
 import { TranslationsManager } from '../../assets/player/translations-manager'
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
 import { VideoJSCaption } from '../../assets/player/peertube-videojs-typings'
 
 type Translations = { [ id: string ]: string }
index d9e798f91ac053363ef367599a17fac75273fc7f..ce83a4f11c41685d0fb5a779d23de37c836d368b 100644 (file)
@@ -24,6 +24,7 @@
     ],
     "baseUrl": "./",
     "paths": {
+      "video.js": [ "node_modules/video.js/core" ],
       "@app/*": [ "src/app/*" ],
       "@shared/*": [ "../shared/*" ],
       "fs": [ "src/shims/noop.ts" ],
index 84ab83669fe97d86b62bb98331d8a90074b161fa..252040bb7df7a888e7472120e9d930c3bc13639f 100644 (file)
@@ -27,7 +27,7 @@ module.exports = function () {
       modules: [ helpers.root('src'), helpers.root('node_modules') ],
 
       alias: {
-        'video.js$': path.resolve('node_modules/video.js/dist/alt/video.core.novtt.js')
+        'video.js$': path.resolve('node_modules/video.js/core.js')
       }
     },