Canardoux / flutter_sound

Flutter plugin for sound. Audio recorder and player.
Mozilla Public License 2.0
872 stars 569 forks source link

Add option to inform header when playing audio from network #864

Open Alvarocda opened 2 years ago

Alvarocda commented 2 years ago

To access some audio files over the internet, I need to provide an authorization token in the request header.

It would be interesting if FlutterSound had an option to inform headers when trying to play audio over the internet.

Currently, I need to download the audio files and then play them with the player.

I will try to implement and submit a PR with this improvement.

Larpoux commented 2 years ago

@Alvarocda,

Hi my friend. As you already know, playback from an internet URL is not very good, specially with Android : the download is synchronous and freeze the main thread. You did some very good improvements for that on the TauSound branch. Unfortunately, as you know, this branch is dead and your improvements are lost. 👎

If you want to redo a pull request, of course I will do a merge into Flutter Sound master branch.

Take care my friend.

github-actions[bot] commented 10 months ago

This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.