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

[audioplayers] Update audioplayers to 6.1.0 #763

Merged
merged 5 commits into from
Nov 11, 2024

Conversation

JSUYA
Copy link
Member

@JSUYA JSUYA commented Nov 4, 2024

  • Update audioplayers to 6.1.0.
  • Update audioplayers_platform_interface to 7.0.0.
  • Changed to create a player when AudioPlayer created.
  • Remove 'audio.onCurrentPosition' method event.

#758

JSUYA added 5 commits November 4, 2024 16:59
Update audioplayers_platform_interface to 7.0.0.
Starting with audioplayers 6.1.0, PositionUpdater.stopAndUpdate() is now called when AudioPlayer.stop() is called.
Previously, since play() had to be called to create a player,
calling stop() first would throw an Exception when calling getPosition()(returned an invalid parameter).
Therefore, to prevent this, a player is also created when an AudioPlayer object is created.
Audioplayer's onPositionChanged no longer uses the 'audio.onCurrentPosition' event, so remove it.
…e in release mode

When stop() or pause() is called in AudioPlayer 6.1.0,
PositionUpdater's stopAndUpdate() is called. At this time,
getPosition() is called, but in ReleaseMode, the player is released after Stop(),
so an Exception is thrown. Since there are differences from the implementation
in the Frontend package, an Exception is not thrown in this case.
@JSUYA JSUYA merged commit 6f1d108 into flutter-tizen:master Nov 11, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants