From 59a643aa5cf6775d27dfcc147b19c4537292d53c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 15 Nov 2022 11:57:49 +0100 Subject: Force autoplay when live starts Using the mute --- client/src/assets/player/types/manager-options.ts | 2 ++ client/src/assets/player/types/peertube-videojs-typings.ts | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'client/src/assets/player/types') diff --git a/client/src/assets/player/types/manager-options.ts b/client/src/assets/player/types/manager-options.ts index 9da8fedf8..3057a5adb 100644 --- a/client/src/assets/player/types/manager-options.ts +++ b/client/src/assets/player/types/manager-options.ts @@ -36,6 +36,8 @@ export interface CommonOptions extends CustomizationOptions { onPlayerElementChange: (element: HTMLVideoElement) => void autoplay: boolean + forceAutoplay: boolean + p2pEnabled: boolean nextVideo?: () => void diff --git a/client/src/assets/player/types/peertube-videojs-typings.ts b/client/src/assets/player/types/peertube-videojs-typings.ts index f02673a66..3d9d5270e 100644 --- a/client/src/assets/player/types/peertube-videojs-typings.ts +++ b/client/src/assets/player/types/peertube-videojs-typings.ts @@ -91,7 +91,7 @@ type VideoJSCaption = { type PeerTubePluginOptions = { mode: PlayerMode - autoplay: boolean + autoplay: videojs.Autoplay videoDuration: number videoViewUrl: string @@ -143,7 +143,7 @@ type PeerTubeP2PInfoButtonOptions = { type WebtorrentPluginOptions = { playerElement: HTMLVideoElement - autoplay: boolean + autoplay: videojs.Autoplay videoDuration: number videoFiles: VideoFile[] -- cgit v1.2.3