Flutter-AssetsAudioPlayer icon indicating copy to clipboard operation
Flutter-AssetsAudioPlayer copied to clipboard

add audio.network `url_callback` and `headers_callback`

Open moshstudio opened this issue 2 years ago • 0 comments

I'm using Playlist(audio: network_audios) to open songs, but every song url is variable, i should get the right url before play it, so url_callback and headers_callback could be very helpful.

Audio audio1 = Audio.network(..., url_callback: xxx, headers_callback: xxx);
Audio audio2 = Audio.network(...);
audioPlayer.open(Playlist(audios: audios));

moshstudio avatar Jun 17 '23 08:06 moshstudio