X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fassets%2Fplayer%2Ftypes%2Fmanager-options.ts;h=3057a5adbdad0714aaf4b5af4b8c895e3fd79aec;hb=77239b425a8e00822a53c9907415832a473c3eb6;hp=b3ad7e337bbae8677846f02f1d55cdbc3998264b;hpb=57d6503286b114fee61b5e4725825e2490dcac29;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/assets/player/types/manager-options.ts b/client/src/assets/player/types/manager-options.ts index b3ad7e337..3057a5adb 100644 --- a/client/src/assets/player/types/manager-options.ts +++ b/client/src/assets/player/types/manager-options.ts @@ -1,6 +1,6 @@ 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' @@ -21,6 +21,8 @@ export interface CustomizationOptions { stopTime: number | string controls?: boolean + controlBar?: boolean + muted?: boolean loop?: boolean subtitle?: string @@ -34,6 +36,8 @@ export interface CommonOptions extends CustomizationOptions { onPlayerElementChange: (element: HTMLVideoElement) => void autoplay: boolean + forceAutoplay: boolean + p2pEnabled: boolean nextVideo?: () => void @@ -49,10 +53,16 @@ export interface CommonOptions extends CustomizationOptions { inactivityTimeout: number poster: string + instanceName: string + theaterButton: boolean captions: boolean videoViewUrl: string + authorizationHeader?: () => string + + metricsUrl: string + embedUrl: string embedTitle: string @@ -68,9 +78,9 @@ export interface CommonOptions extends CustomizationOptions { videoUUID: string videoShortUUID: string - userWatching?: UserWatching - serverUrl: string + requiresAuth: boolean + videoFileToken: () => string errorNotifier: (message: string) => void }