Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed

- Fixed an issue on iOS where the onPlayerStateSync callback was not called from the main thread.

## [10.9.0] - 26-01-29

### Fixed
Expand Down
6 changes: 4 additions & 2 deletions ios/THEOplayerRCTView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,10 @@ public class THEOplayerRCTView: UIView {
}

public func syncPlayerState() {
if let forwardedPlayerStateSync = self.onNativePlayerStateSync {
forwardedPlayerStateSync(["state": self.collectPlayerStatePayload()])
DispatchQueue.main.async {
if let forwardedPlayerStateSync = self.onNativePlayerStateSync {
forwardedPlayerStateSync(["state": self.collectPlayerStatePayload()])
}
}

// trigger different feature managers to reflect the current state
Expand Down
Loading