diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-12 16:41:29 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-16 10:33:27 +0200 |
commit | fd3c2e87051f5029cdec39d877b576a62f48e219 (patch) | |
tree | a3c657f178702a3363af680ed8ffb7cd038243b8 /client/src/assets/player/types/peertube-videojs-typings.ts | |
parent | 0e6cd1c00f71554fe7375a96db693a6983951ba6 (diff) | |
download | PeerTube-fd3c2e87051f5029cdec39d877b576a62f48e219.tar.gz PeerTube-fd3c2e87051f5029cdec39d877b576a62f48e219.tar.zst PeerTube-fd3c2e87051f5029cdec39d877b576a62f48e219.zip |
Add playback metric endpoint sent to OTEL
Diffstat (limited to 'client/src/assets/player/types/peertube-videojs-typings.ts')
-rw-r--r-- | client/src/assets/player/types/peertube-videojs-typings.ts | 10 |
1 files changed, 8 insertions, 2 deletions
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, |