Skip to content

fix: deliver player listener calls in order on one event thread - #504

Merged
devopvoid merged 1 commit into
mainfrom
fix/player-listener-thread
Nov 1, 2026
Merged

devopvoid merged 1 commit into
mainfrom
fix/player-listener-thread

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

MediaPlayer reported PLAYING/PAUSED on the calling thread and ENDED/errors on the decode thread, so a listener could be called concurrently, against what the docs promise.

Every report is now queued together with its state change and delivered by a per-player event thread, one call at a time, CLOSED last before close() returns. Docs updated; new test checks order, thread and no overlap.

PLAYING and PAUSED were reported on the calling thread, ENDED and errors on the decode thread, so a listener could be called concurrently. Every report is now queued with its state change and delivered by a per-player event thread.
@devopvoid
devopvoid merged commit 3a062c1 into main Nov 1, 2026
24 of 25 checks passed
@devopvoid
devopvoid deleted the fix/player-listener-thread branch November 1, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant