Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Commit

Permalink
Merge branch 'add-download-manager'
Browse files Browse the repository at this point in the history
  • Loading branch information
yringler committed Nov 11, 2020
2 parents 2c2f605 + 30ee897 commit fc98dc7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ To use `PositionManager`: you'd want to make sure to only have one instance per
To take advantage of the position streams, seek via the `seek` method, not directly with `AudioService` method.
Note that if you opt to save position, (For example, by using the `PositionedAudioTask.standard()` constructor, you can call seek on a media which isn't active, and playback for that media will start from the seeked-to position.

There is now also a `DownloadAudioTask`, which is used with `DownloadManager` on the client to download audio files for
offline playback. It is somewhat progressive - if audio is streaming and then downloaded, when the download is finished the
playback will switch to the offline file.

### Motivation
My initial audio BackgroundAudioTask quickly descended into a labyrinth of spaghetti code, inhabited by hosts of minotaur quick to consume any who hoped to maintain it.

Expand Down

0 comments on commit fc98dc7

Please sign in to comment.