Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stop() to cause play() to return on iOS. #1339

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Conversation

ryanheise
Copy link
Owner

Fixes #1297

@ryanheise ryanheise merged commit 35a33da into minor Oct 4, 2024
@ryanheise ryanheise deleted the fix/ios_stopped_play branch October 4, 2024 13:43
@@ -1330,6 +1330,15 @@ - (void)dispose {
if (!_player) return;
if (_processingState != none) {
[_player pause];

[self updatePosition];
[self broadcastPlaybackEvent];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Facing this issue the app crashes when I close it. could it be because of this line change?
-[AudioPlayer broadcastPlaybackEvent]
NSInternalInconsistencyException - Sending a message before the FlutterEngine has been run.

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.

[IOS] play() not completing when stop() is called
2 participants