From 6659bb43d72869a15a0f19b824a3d6f84229c5a5 Mon Sep 17 00:00:00 2001 From: Joris Fluyt Date: Mon, 8 Jan 2024 15:42:32 +0100 Subject: [PATCH 1/3] Report average bitrate --- conviva/src/integration/ConvivaHandler.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conviva/src/integration/ConvivaHandler.ts b/conviva/src/integration/ConvivaHandler.ts index 53fd411a..47f1b46f 100644 --- a/conviva/src/integration/ConvivaHandler.ts +++ b/conviva/src/integration/ConvivaHandler.ts @@ -202,6 +202,9 @@ export class ConvivaHandler { Constants.Playback.BITRATE, activeQuality.bandwidth / 1000 ); + if (activeQuality.averageBandwidth) { + this.convivaVideoAnalytics!.reportPlaybackMetric(Constants.Playback.AVG_BITRATE, activeQuality.averageBandwidth / 1000) + } if (frameRate) { this.convivaVideoAnalytics!.reportPlaybackMetric(Constants.Playback.RENDERED_FRAMERATE, frameRate); } From 2e8aa468b5af2e93aff877ea5b6b138d1583061e Mon Sep 17 00:00:00 2001 From: Joris Fluyt Date: Mon, 8 Jan 2024 15:53:08 +0100 Subject: [PATCH 2/3] Run prettier --- conviva/src/integration/ConvivaHandler.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/conviva/src/integration/ConvivaHandler.ts b/conviva/src/integration/ConvivaHandler.ts index 47f1b46f..e0f67227 100644 --- a/conviva/src/integration/ConvivaHandler.ts +++ b/conviva/src/integration/ConvivaHandler.ts @@ -203,7 +203,10 @@ export class ConvivaHandler { activeQuality.bandwidth / 1000 ); if (activeQuality.averageBandwidth) { - this.convivaVideoAnalytics!.reportPlaybackMetric(Constants.Playback.AVG_BITRATE, activeQuality.averageBandwidth / 1000) + this.convivaVideoAnalytics!.reportPlaybackMetric( + Constants.Playback.AVG_BITRATE, + activeQuality.averageBandwidth / 1000 + ); } if (frameRate) { this.convivaVideoAnalytics!.reportPlaybackMetric(Constants.Playback.RENDERED_FRAMERATE, frameRate); From 3ac1b320ed0914b77380a7ecc34134f5455fef77 Mon Sep 17 00:00:00 2001 From: Mattias Buelens Date: Wed, 10 Jul 2024 15:29:46 +0200 Subject: [PATCH 3/3] Add changeset --- .changeset/long-dolphins-rest.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/long-dolphins-rest.md diff --git a/.changeset/long-dolphins-rest.md b/.changeset/long-dolphins-rest.md new file mode 100644 index 00000000..edf6175b --- /dev/null +++ b/.changeset/long-dolphins-rest.md @@ -0,0 +1,5 @@ +--- +"@theoplayer/conviva-connector-web": patch +--- + +Report average bitrate to Conviva.