Skip to content

Commit

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

* Add positionStream and runningStream.
* Add androidShowNotificationBadge option (@aleexbt).

## 0.15.2

* Process connect/disconnect/start requests in a queue.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class AudioPlayerTask extends BackgroundAudioTask {
}
```

The purpose of this class is to encapsulate all audio logic in your app so that it is completely self-contained, and can continue to run on its own even when the Flutter UI is not present. Every message that you send from your Flutter UI (`start`, `stop`, `play`, `pause`) has a corresponding callback that you can implement in your background audio task (`onStart`, `onStop`, `onPlay`, `onPause`) in addition to callbacks that respond only to events outside of your Flutter UI. For example, `onClick` responds to a click of a headset button, while `onClose` responds to the user swiping away the Android media notification.
The purpose of this class is to encapsulate all audio logic in your app so that it is completely self-contained, and can continue to run on its own even when the Flutter UI is not present. Every message that you send from your Flutter UI (`start`, `stop`, `play`, `pause`) has a corresponding callback that you can implement in your background audio task (`onStart`, `onStop`, `onPlay`, `onPause`). Additionally, there are callbacks that respond only to events outside of your Flutter UI, such as `onClick`, which responds to a click of a headset button, and `onClose` which responds to the user swiping away the Android media notification.

Most of these callbacks can be implemented by simply delegating to your audio player plugin:

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.15.2
version: 0.15.3
homepage: https://github.com/ryanheise/audio_service

environment:
Expand Down

0 comments on commit c4968ba

Please sign in to comment.