-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
import './pause-bezel'
const Plugin = videojs.getPlugin('plugin')
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
function getPauseBezel () {
return `
// 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 = {
-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'
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'
-import videojs from 'video.js/dist/alt/video.core'
+import videojs from 'video.js'
import './videojs-components/settings-menu-button'
import {
PeerTubePluginOptions,
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' {
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
function getMainTemplate (options: any) {
return `
-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')
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
const Button = videojs.getComponent('Button')
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')
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 {
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
const Component = videojs.getComponent('Component')
-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'
-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')
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
const Component = videojs.getComponent('Component')
// 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'
// 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'
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
const Component = videojs.getComponent('Component')
-import videojs from 'video.js/dist/alt/video.core.js'
+import videojs from 'video.js'
const Component = videojs.getComponent('Component')
-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')
-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'
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 }
],
"baseUrl": "./",
"paths": {
+ "video.js": [ "node_modules/video.js/core" ],
"@app/*": [ "src/app/*" ],
"@shared/*": [ "../shared/*" ],
"fs": [ "src/shims/noop.ts" ],
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')
}
},