From fd3c2e87051f5029cdec39d877b576a62f48e219 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 12 Aug 2022 16:41:29 +0200 Subject: Add playback metric endpoint sent to OTEL --- client/src/assets/player/types/peertube-videojs-typings.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'client/src/assets/player/types/peertube-videojs-typings.ts') 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 = { videoUUID: string } +type MetricsPluginOptions = { + mode: PlayerMode + metricsUrl: string + videoUUID: string +} + type PlaylistPluginOptions = { elements: VideoPlaylistElement[] @@ -165,6 +171,7 @@ type VideoJSPluginOptions = { playlist?: PlaylistPluginOptions peertube: PeerTubePluginOptions + metrics: MetricsPluginOptions webtorrent?: WebtorrentPluginOptions @@ -197,9 +204,7 @@ type PlayerNetworkInfo = { http: { downloadSpeed: number - uploadSpeed: number downloaded: number - uploaded: number } p2p: { @@ -227,6 +232,7 @@ export { ResolutionUpdateData, AutoResolutionUpdateData, PlaylistPluginOptions, + MetricsPluginOptions, VideoJSCaption, PeerTubePluginOptions, WebtorrentPluginOptions, -- cgit v1.2.3