Skip to content

Commit

Permalink
Merge pull request #30 from THEOplayer/conviva-average-bitrate
Browse files Browse the repository at this point in the history
Report average bitrate to Conviva
  • Loading branch information
MattiasBuelens authored Jul 10, 2024
2 parents 88f20e8 + 3ac1b32 commit bb88b80
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/long-dolphins-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@theoplayer/conviva-connector-web": patch
---

Report average bitrate to Conviva.
6 changes: 6 additions & 0 deletions conviva/src/integration/ConvivaHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ 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);
}
Expand Down

0 comments on commit bb88b80

Please sign in to comment.