- Allow setting seek position in play function (thanks @rob-patchett)
- Get duration from the underlaying asset instead of from AVPlayerItem (thanks @andressade)
- Adding player state (thanks @renancaraujo)
- Set the audio session to active (thanks @benwicks)
- Delay seek operations on Android until player is ready (thanks @jeffmikels)
- Fix bug regarding name clash with other plugins (thanks @imtaehyun)
- Fix bug when using nested files with audio cache (thanks @hotstu for reporting and @eclewlow for fixing)
- Fix the nefarious bug of 'sound only playing through headphones' (thanks so much, @tsun424)
- Fix SDK constraint for Dart 2.1 (thanks @snoofer and @sroddy)
- Some more fixes to work without errors with Dart 2 stronger types
- Support Android SDK 16-20 (thanks, @sroddy)
- Avoid restarting a looping player if is stopped (thanks, @sroddy)
- Bug fixes for iOS
- Formatting
- Improved lifecycle handling for android
- Big performance boots
- Allows for finer control of releasing (with setReleaseMode, setUrl, resume, release)
- Allows for setting the volume at any time (with setVolume)
- Added LOOP as a ReleaseMode options, making it significantly faster
- Some other refactorings
- Major Refactoring!
- Renaming everything to audioplayers (mind the s)
- Better logging
- Added AudioCache (imported from Flame)
- Adding tests!
- Adding better example
- Greatly improving README
- Lots of other minor tweaks
- don't call the onClomplete hook when you manually stop the audio
- fix for dart 2 (thanks to @efortuna)
- improves Android performance by not calling
prepare
on the main thread
- fix
seek
for iOS
- volume controls
- working on iOS (thanks @feroult <3)
- adding disable log option
- support for multiple audios simultaneously
- support for local files
- update to the current Plugin API
- move to https://github.com/rxlabz/audioplayer
Separated handlers for position, duration, completion and errors
-
setDurationHandler(TimeChangeHandler handler)
-
setPositionHandler(TimeChangeHandler handler)
-
setCompletionHandler(VoidCallback callback)
-
setErrorHandler(ErrorHandler handler)
-
new typedef
typedef void TimeChangeHandler(Duration duration);
typedef void ErrorHandler(String message);
- first POC :
- methods : play, pause, stop
- a globalHandler for position, duration, completion and errors