diff options
author | Chocobozzz <me@florianbigard.com> | 2019-12-05 17:06:18 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-12-05 17:06:18 +0100 |
commit | 3d9a63d3d824e753e95292b5e1343e1ebf9eaf71 (patch) | |
tree | f52c6da3c014c83e8687fb09ec8645ea845bbcdf /client/src/assets/player/peertube-player-manager.ts | |
parent | 0d3a9be9f13c2642cb6cf26fdebc5edf5217bbbc (diff) | |
download | PeerTube-3d9a63d3d824e753e95292b5e1343e1ebf9eaf71.tar.gz PeerTube-3d9a63d3d824e753e95292b5e1343e1ebf9eaf71.tar.zst PeerTube-3d9a63d3d824e753e95292b5e1343e1ebf9eaf71.zip |
Add hook to alter player build options
Diffstat (limited to 'client/src/assets/player/peertube-player-manager.ts')
-rw-r--r-- | client/src/assets/player/peertube-player-manager.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts index 7c7c9ad2a..4ddbaed82 100644 --- a/client/src/assets/player/peertube-player-manager.ts +++ b/client/src/assets/player/peertube-player-manager.ts | |||
@@ -63,7 +63,7 @@ export interface CommonOptions extends CustomizationOptions { | |||
63 | inactivityTimeout: number | 63 | inactivityTimeout: number |
64 | poster: string | 64 | poster: string |
65 | 65 | ||
66 | theaterMode: boolean | 66 | theaterButton: boolean |
67 | captions: boolean | 67 | captions: boolean |
68 | 68 | ||
69 | videoViewUrl: string | 69 | videoViewUrl: string |
@@ -311,7 +311,7 @@ export class PeertubePlayerManager { | |||
311 | children: this.getControlBarChildren(mode, { | 311 | children: this.getControlBarChildren(mode, { |
312 | captions: commonOptions.captions, | 312 | captions: commonOptions.captions, |
313 | peertubeLink: commonOptions.peertubeLink, | 313 | peertubeLink: commonOptions.peertubeLink, |
314 | theaterMode: commonOptions.theaterMode | 314 | theaterButton: commonOptions.theaterButton |
315 | }) | 315 | }) |
316 | } | 316 | } |
317 | } | 317 | } |
@@ -382,7 +382,7 @@ export class PeertubePlayerManager { | |||
382 | 382 | ||
383 | private static getControlBarChildren (mode: PlayerMode, options: { | 383 | private static getControlBarChildren (mode: PlayerMode, options: { |
384 | peertubeLink: boolean | 384 | peertubeLink: boolean |
385 | theaterMode: boolean, | 385 | theaterButton: boolean, |
386 | captions: boolean | 386 | captions: boolean |
387 | }) { | 387 | }) { |
388 | const settingEntries = [] | 388 | const settingEntries = [] |
@@ -432,7 +432,7 @@ export class PeertubePlayerManager { | |||
432 | }) | 432 | }) |
433 | } | 433 | } |
434 | 434 | ||
435 | if (options.theaterMode === true) { | 435 | if (options.theaterButton === true) { |
436 | Object.assign(children, { | 436 | Object.assign(children, { |
437 | 'theaterButton': {} | 437 | 'theaterButton': {} |
438 | }) | 438 | }) |