Skip to content

Commit

Permalink
Version 0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanheise committed Aug 9, 2020
1 parent 39b66c8 commit e6c54aa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.13.0

* All BackgroundAudioTask callbacks are now async.
* Add default implementation of onSkipToNext/onSkipToPrevious.
* Bug fixes.

## 0.12.0

* Add setRepeatMode/setShuffleMode.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ You can implement these callbacks to play any sort of audio that is appropriate

If you'd like to help with any missing features, please join us on the [GitHub issues page](https://github.com/ryanheise/audio_service/issues).

## Migrating to 0.11.0
## Migrating to 0.13.0

Prior to 0.11.0, the background audio task would terminate as soon as `onStart` completes. From 0.11.0, the background audio task terminates as soon as `onStop` completes. If you override `onStop`, you must end your implementation with a call to `await super.onStop()`.
As of 0.13.0, all callbacks in `AudioBackgroundTask` are asynchronous. This allows the main isolate to await their completion and better synchronise with the background audio task.

## Migrating to 0.10.0
As of 0.11.0, the background audio task terminates when `onStop` completes rather than when `onStart` completes.

`audio_service` 0.10.0 requires a different `AndroidManifest.xml` configuration for notification and headset button clicks to continue to work on Android. Your previous broadcast receiver declaration should be replaced with the one below:
As of 0.10.0, your broadcast receiver in `AndroidManifest.xml` should be replaced with the one below to ensure that headset and notification clicks continue to work:

```xml
<receiver android:name="com.ryanheise.audioservice.MediaButtonReceiver" >
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: audio_service
description: Flutter plugin to play audio in the background while the screen is off.
version: 0.12.0
version: 0.13.0
homepage: https://github.com/ryanheise/audio_service

environment:
Expand Down

0 comments on commit e6c54aa

Please sign in to comment.