diff options
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 | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/client/src/assets/player/types/manager-options.ts b/client/src/assets/player/types/manager-options.ts index cadce739d..b4d9374c3 100644 --- a/client/src/assets/player/types/manager-options.ts +++ b/client/src/assets/player/types/manager-options.ts | |||
@@ -59,6 +59,8 @@ export interface CommonOptions extends CustomizationOptions { | |||
59 | videoViewUrl: string | 59 | videoViewUrl: string |
60 | authorizationHeader?: string | 60 | authorizationHeader?: string |
61 | 61 | ||
62 | metricsUrl: string | ||
63 | |||
62 | embedUrl: string | 64 | embedUrl: string |
63 | embedTitle: string | 65 | embedTitle: string |
64 | 66 | ||
diff --git a/client/src/assets/player/types/peertube-videojs-typings.ts b/client/src/assets/player/types/peertube-videojs-typings.ts index 115afb614..6df94992c 100644 --- a/client/src/assets/player/types/peertube-videojs-typings.ts +++ b/client/src/assets/player/types/peertube-videojs-typings.ts | |||
@@ -109,6 +109,12 @@ type PeerTubePluginOptions = { | |||
109 | videoUUID: string | 109 | videoUUID: string |
110 | } | 110 | } |
111 | 111 | ||
112 | type MetricsPluginOptions = { | ||
113 | mode: PlayerMode | ||
114 | metricsUrl: string | ||
115 | videoUUID: string | ||
116 | } | ||
117 | |||
112 | type PlaylistPluginOptions = { | 118 | type PlaylistPluginOptions = { |
113 | elements: VideoPlaylistElement[] | 119 | elements: VideoPlaylistElement[] |
114 | 120 | ||
@@ -165,6 +171,7 @@ type VideoJSPluginOptions = { | |||
165 | playlist?: PlaylistPluginOptions | 171 | playlist?: PlaylistPluginOptions |
166 | 172 | ||
167 | peertube: PeerTubePluginOptions | 173 | peertube: PeerTubePluginOptions |
174 | metrics: MetricsPluginOptions | ||
168 | 175 | ||
169 | webtorrent?: WebtorrentPluginOptions | 176 | webtorrent?: WebtorrentPluginOptions |
170 | 177 | ||
@@ -197,9 +204,7 @@ type PlayerNetworkInfo = { | |||
197 | 204 | ||
198 | http: { | 205 | http: { |
199 | downloadSpeed: number | 206 | downloadSpeed: number |
200 | uploadSpeed: number | ||
201 | downloaded: number | 207 | downloaded: number |
202 | uploaded: number | ||
203 | } | 208 | } |
204 | 209 | ||
205 | p2p: { | 210 | p2p: { |
@@ -227,6 +232,7 @@ export { | |||
227 | ResolutionUpdateData, | 232 | ResolutionUpdateData, |
228 | AutoResolutionUpdateData, | 233 | AutoResolutionUpdateData, |
229 | PlaylistPluginOptions, | 234 | PlaylistPluginOptions, |
235 | MetricsPluginOptions, | ||
230 | VideoJSCaption, | 236 | VideoJSCaption, |
231 | PeerTubePluginOptions, | 237 | PeerTubePluginOptions, |
232 | WebtorrentPluginOptions, | 238 | WebtorrentPluginOptions, |