Skip to content

Commit

Permalink
send the ad bitrate to the video analytics also
Browse files Browse the repository at this point in the history
  • Loading branch information
Yousif-CS committed Feb 26, 2025
1 parent 9d0abe2 commit eb03f19
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ struct AppEventConvivaReporter: AppEventProcessor {
}

func appGotBitrateChangeEvent(bitrate: Double, isPlayingAd: Bool) {
let endpoint = isPlayingAd ? self.adAnalytics : self.videoAnalytics
self.handleBitrateChange(bitrate: bitrate, endpoint: endpoint)
if (isPlayingAd) {
self.handleBitrateChange(bitrate: bitrate, endpoint: self.adAnalytics)
}
self.handleBitrateChange(bitrate: bitrate, endpoint: self.videoAnalytics)
}

private func handleBitrateChange(bitrate: Double, endpoint: CISStreamAnalyticsProtocol) {
Expand Down

0 comments on commit eb03f19

Please sign in to comment.