Skip to content

Bugfix/cached player#222

Open
theLee3 wants to merge 3 commits into
developfrom
bugfix/cached-player
Open

Bugfix/cached player#222
theLee3 wants to merge 3 commits into
developfrom
bugfix/cached-player

Conversation

@theLee3
Copy link
Copy Markdown
Collaborator

@theLee3 theLee3 commented Apr 29, 2026

Recent updates to Flutter, focusing on asynchronous performance improvements, led to an issue with our approach to broadcasting the cached PlayerData object. The issue stems from the player data now being added to the stream before the listener is attached, leaving the listener waiting endlessly without receiving data once attached.

This update corrects the issue by implementing a new approach, using a StreamView wrapper, in which the act of listening to the stream ensures that the cached player data is always emitted after the listener is attached.

@theLee3
Copy link
Copy Markdown
Collaborator Author

theLee3 commented Apr 29, 2026

Fixes #221

@theLee3 theLee3 requested a review from Abedalkareem April 29, 2026 17:35
@theLee3 theLee3 added the critical This is high priority label May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

critical This is high priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant