diff options
Diffstat (limited to 'client/src/assets/player/types')
-rw-r--r-- | client/src/assets/player/types/manager-options.ts | 6 | ||||
-rw-r--r-- | client/src/assets/player/types/peertube-videojs-typings.ts | 12 |
2 files changed, 7 insertions, 11 deletions
diff --git a/client/src/assets/player/types/manager-options.ts b/client/src/assets/player/types/manager-options.ts index b3ad7e337..456ef115e 100644 --- a/client/src/assets/player/types/manager-options.ts +++ b/client/src/assets/player/types/manager-options.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { PluginsManager } from '@root-helpers/plugins-manager' | 1 | import { PluginsManager } from '@root-helpers/plugins-manager' |
2 | import { LiveVideoLatencyMode, VideoFile } from '@shared/models' | 2 | import { LiveVideoLatencyMode, VideoFile } from '@shared/models' |
3 | import { PlaylistPluginOptions, UserWatching, VideoJSCaption } from './peertube-videojs-typings' | 3 | import { PlaylistPluginOptions, VideoJSCaption } from './peertube-videojs-typings' |
4 | 4 | ||
5 | export type PlayerMode = 'webtorrent' | 'p2p-media-loader' | 5 | export type PlayerMode = 'webtorrent' | 'p2p-media-loader' |
6 | 6 | ||
@@ -53,6 +53,8 @@ export interface CommonOptions extends CustomizationOptions { | |||
53 | captions: boolean | 53 | captions: boolean |
54 | 54 | ||
55 | videoViewUrl: string | 55 | videoViewUrl: string |
56 | authorizationHeader?: string | ||
57 | |||
56 | embedUrl: string | 58 | embedUrl: string |
57 | embedTitle: string | 59 | embedTitle: string |
58 | 60 | ||
@@ -68,8 +70,6 @@ export interface CommonOptions extends CustomizationOptions { | |||
68 | videoUUID: string | 70 | videoUUID: string |
69 | videoShortUUID: string | 71 | videoShortUUID: string |
70 | 72 | ||
71 | userWatching?: UserWatching | ||
72 | |||
73 | serverUrl: string | 73 | serverUrl: string |
74 | 74 | ||
75 | errorNotifier: (message: string) => void | 75 | errorNotifier: (message: string) => void |
diff --git a/client/src/assets/player/types/peertube-videojs-typings.ts b/client/src/assets/player/types/peertube-videojs-typings.ts index d9a388681..ad284a671 100644 --- a/client/src/assets/player/types/peertube-videojs-typings.ts +++ b/client/src/assets/player/types/peertube-videojs-typings.ts | |||
@@ -88,23 +88,20 @@ type VideoJSCaption = { | |||
88 | src: string | 88 | src: string |
89 | } | 89 | } |
90 | 90 | ||
91 | type UserWatching = { | ||
92 | url: string | ||
93 | authorizationHeader: string | ||
94 | } | ||
95 | |||
96 | type PeerTubePluginOptions = { | 91 | type PeerTubePluginOptions = { |
97 | mode: PlayerMode | 92 | mode: PlayerMode |
98 | 93 | ||
99 | autoplay: boolean | 94 | autoplay: boolean |
100 | videoViewUrl: string | ||
101 | videoDuration: number | 95 | videoDuration: number |
102 | 96 | ||
103 | userWatching?: UserWatching | 97 | videoViewUrl: string |
98 | authorizationHeader?: string | ||
99 | |||
104 | subtitle?: string | 100 | subtitle?: string |
105 | 101 | ||
106 | videoCaptions: VideoJSCaption[] | 102 | videoCaptions: VideoJSCaption[] |
107 | 103 | ||
104 | startTime: number | string | ||
108 | stopTime: number | string | 105 | stopTime: number | string |
109 | 106 | ||
110 | isLive: boolean | 107 | isLive: boolean |
@@ -230,7 +227,6 @@ export { | |||
230 | AutoResolutionUpdateData, | 227 | AutoResolutionUpdateData, |
231 | PlaylistPluginOptions, | 228 | PlaylistPluginOptions, |
232 | VideoJSCaption, | 229 | VideoJSCaption, |
233 | UserWatching, | ||
234 | PeerTubePluginOptions, | 230 | PeerTubePluginOptions, |
235 | WebtorrentPluginOptions, | 231 | WebtorrentPluginOptions, |
236 | P2PMediaLoaderPluginOptions, | 232 | P2PMediaLoaderPluginOptions, |