Releases: erikas-taroza/simple_audio
Releases · erikas-taroza/simple_audio
v2.0.4
v2.0.3
- Fix missing symbol error when running on Android
v2.0.2
- Reset seek ts in decoder when opening new file.
- Update FRB to 2.7.0.
- Downgrade resampler dependency that caused unexpected results.
- Fixed clippy suggestions.
- Fix iOS build
v2.0.1
- Support Gradle 8
v2.0.0
Main changes:
- Removed media controllers
- Please check the example project to see how you can implement media controllers using other packages
- Decoupled Rust code from FlutterRustBridge.
- Allows for compatibility with other FlutterRustBridge packages that may have a different version from simple_audio. If you need this functionality, please check how
simple_audio_flutter
implements a Dart API.
- Allows for compatibility with other FlutterRustBridge packages that may have a different version from simple_audio. If you need this functionality, please check how
- API changes
How to migrate to V2 from v1.9.0:
SimpleAudio.init()
no longer takes any parameters.SimpleAudio()
constructor only takes one optional parameter:shouldNormalizeVolume
playbackStateStream
is renamed toplaybackState
progressStateStream
is renamed toprogressState
- Network errors are now handled by listening to the
networkError
stream - Decode errors are now handled by listening to the
decodeError
stream ProgressState
now represents time viaDuration
. To get the position in seconds, dostate.position.inSeconds
seek
now takes aDuration
. To seek to a given point in seconds, doseek(Duration(seconds: seconds)
setMetadata
andMetadata
are removed. Please use other packages as shown in the example to implement media controllers.
v1.9.0
- Improved gapless playback
- The preloaded file is automatically played when the current file is done playing.
clearPreload()
removes the preloaded file so that it doesn't automatically play.PreloadPlayed
playback state which is sent after the preload was automatically played.
v1.8.0
- Add
stop
event (thanks @dannyglover) - Add
uuid
dependency
v1.7.0
- Improved error handling. Custom errors are thrown in
open()
andpreload()
. TheonNetworkStreamError
andonDecodeError
callbacks now have a parameter for the error message. - Updated
flutter_rust_bridge
to1.82.1
- Removed useless comments in
pubspec.yaml
v1.6.6
- Specify explicit version of
flutter_rust_bridge
v1.6.5
- Increase device buffer size, compare buffer size to default instead of
1