-import { PeerTubePlugin } from './peertube-plugin'
-import { WebTorrentPlugin } from './webtorrent/webtorrent-plugin'
+import { Config, Level } from 'hls.js'
+import videojs from 'video.js'
+import { VideoFile } from '@shared/models'
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 { Config, Level } from 'hls.js'
+import { PlayerMode } from './peertube-player-manager'
+import { PeerTubePlugin } from './peertube-plugin'
+import { EndCardOptions } from './upnext/end-card'
+import { WebTorrentPlugin } from './webtorrent/webtorrent-plugin'
declare module 'video.js' {
textTracks (): TextTrackList & {
on: Function
- tracks_: { kind: string, mode: string, language: string }[]
+ tracks_: (TextTrack & { id: string, label: string, src: string })[]
}
- audioTracks (): AudioTrackList
-
dock (options: { title: string, description: string }): void
+
+ upnext (options: Partial<EndCardOptions>): void
}
}