Skip to content

Commit

Permalink
Version 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanheise committed Jun 9, 2020
1 parent 284ddc4 commit 750558b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.10.0

* Replace androidStopOnRemoveTask with onTaskRemoved callback.
* Add onClose callback.
* Breaking change: new MediaButtonReceiver in AndroidManifest.xml.

## 0.9.0

* New state model: split into playing + processingState.
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ This plugin wraps around your existing audio code to allow it to run in the back
| album art |||
| Android Auto | (untested) | |

# Migrating to 0.10.0

`audio_service` 0.10.0 requires a different `AndroidManifest.xml` configuration for headset button clicks to continue to work on Android. Your previous broadcast receiver declaration should be replaced with the one below:

```xml
<receiver android:name="com.ryanheise.audioservice.MediaButtonReceiver" >
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>
</receiver>
```

# How does this plugin work?

`audio_service` creates a special container for your audio code to run in that can survive the absence or destruction of your app's UI. You will therefore need to write your code in such a way that your UI code is kept separate from your audio playing code.
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.9.0
version: 0.10.0
homepage: https://github.com/ryanheise/audio_service

environment:
Expand Down

0 comments on commit 750558b

Please sign in to comment.