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() }