diff options
author | Chocobozzz <me@florianbigard.com> | 2022-11-15 11:57:49 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-11-15 11:57:49 +0100 |
commit | 59a643aa5cf6775d27dfcc147b19c4537292d53c (patch) | |
tree | 74bc87e2f0f5581306c8ea9dd1f8acf05833a74a /client/src/assets/player/types | |
parent | c2419476302b20e9fe3708d7a0a889ae18c95c1b (diff) | |
download | PeerTube-59a643aa5cf6775d27dfcc147b19c4537292d53c.tar.gz PeerTube-59a643aa5cf6775d27dfcc147b19c4537292d53c.tar.zst PeerTube-59a643aa5cf6775d27dfcc147b19c4537292d53c.zip |
Force autoplay when live starts
Using the mute
Diffstat (limited to 'client/src/assets/player/types')
-rw-r--r-- | client/src/assets/player/types/manager-options.ts | 2 | ||||
-rw-r--r-- | client/src/assets/player/types/peertube-videojs-typings.ts | 4 |
2 files changed, 4 insertions, 2 deletions
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 { | |||
36 | onPlayerElementChange: (element: HTMLVideoElement) => void | 36 | onPlayerElementChange: (element: HTMLVideoElement) => void |
37 | 37 | ||
38 | autoplay: boolean | 38 | autoplay: boolean |
39 | forceAutoplay: boolean | ||
40 | |||
39 | p2pEnabled: boolean | 41 | p2pEnabled: boolean |
40 | 42 | ||
41 | nextVideo?: () => void | 43 | 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 = { | |||
91 | type PeerTubePluginOptions = { | 91 | type PeerTubePluginOptions = { |
92 | mode: PlayerMode | 92 | mode: PlayerMode |
93 | 93 | ||
94 | autoplay: boolean | 94 | autoplay: videojs.Autoplay |
95 | videoDuration: number | 95 | videoDuration: number |
96 | 96 | ||
97 | videoViewUrl: string | 97 | videoViewUrl: string |
@@ -143,7 +143,7 @@ type PeerTubeP2PInfoButtonOptions = { | |||
143 | type WebtorrentPluginOptions = { | 143 | type WebtorrentPluginOptions = { |
144 | playerElement: HTMLVideoElement | 144 | playerElement: HTMLVideoElement |
145 | 145 | ||
146 | autoplay: boolean | 146 | autoplay: videojs.Autoplay |
147 | videoDuration: number | 147 | videoDuration: number |
148 | 148 | ||
149 | videoFiles: VideoFile[] | 149 | videoFiles: VideoFile[] |