Skip to content

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