import { PluginsManager } from '@root-helpers/plugins-manager'
import { LiveVideoLatencyMode, VideoFile } from '@shared/models'
-import { PlaylistPluginOptions, UserWatching, VideoJSCaption } from './peertube-videojs-typings'
+import { PlaylistPluginOptions, VideoJSCaption } from './peertube-videojs-typings'
export type PlayerMode = 'webtorrent' | 'p2p-media-loader'
stopTime: number | string
controls?: boolean
+ controlBar?: boolean
+
muted?: boolean
loop?: boolean
subtitle?: string
resume?: string
peertubeLink: boolean
+
+ playbackRate?: number | string
}
export interface CommonOptions extends CustomizationOptions {
onPlayerElementChange: (element: HTMLVideoElement) => void
autoplay: boolean
+ forceAutoplay: boolean
+
p2pEnabled: boolean
nextVideo?: () => void
inactivityTimeout: number
poster: string
+ instanceName: string
+
theaterButton: boolean
captions: boolean
videoViewUrl: string
+ authorizationHeader?: () => string
+
+ metricsUrl: string
+
embedUrl: string
embedTitle: string
videoUUID: string
videoShortUUID: string
- userWatching?: UserWatching
-
serverUrl: string
+ requiresAuth: boolean
+ videoFileToken: () => string
errorNotifier: (message: string) => void
}