From 6c70b2175b55b95bd6d9896bebd98114c2655432 Mon Sep 17 00:00:00 2001 From: Ceyhun Ozgoc Date: Wed, 18 Nov 2026 04:38:31 -0800 Subject: [PATCH] Conviva: do not report Paused state after the session has ended THEOplayer on iOS dispatches PAUSE right after ENDED. By then the connector has already called reportPlaybackEnded() and cleanup() on the Conviva video analytics, so the Paused state was reported on an ended session. Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-Authored-By: Ceyhun Ozgoc --- CHANGELOG.md | 5 +++++ .../Source/Base/Events/ConvivaHandlers/PlayerHandler.swift | 2 ++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7508ee2c..b3080a0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Fixed + +- Conviva + - Fixed an issue where the Paused player state was reported to Conviva after the session had ended. + ### Changed - New CocoaPods connector releases are now published exclusively to the [OptiView Player specs repository](https://github.com/THEOplayer/cocoapods-specs). Add `source 'https://github.com/THEOplayer/cocoapods-specs.git'` before `source 'https://cdn.cocoapods.org/'` in your Podfile to receive new releases. Keep the public source for third-party dependencies. diff --git a/Code/Conviva/Source/Base/Events/ConvivaHandlers/PlayerHandler.swift b/Code/Conviva/Source/Base/Events/ConvivaHandlers/PlayerHandler.swift index 2518ca5b..8072d357 100644 --- a/Code/Conviva/Source/Base/Events/ConvivaHandlers/PlayerHandler.swift +++ b/Code/Conviva/Source/Base/Events/ConvivaHandlers/PlayerHandler.swift @@ -149,6 +149,8 @@ class PlayerHandler { func pause(event: PauseEvent) { log("handling pause") self.playerState = .CONVIVA_PAUSED + // On iOS, PAUSE is dispatched right after ENDED, when the Conviva session has already been ended. + guard self.currentConvivaSession.started else { return } self.reportPlayerState() }