Open malikhamza88 opened 2 years ago
Yep, same here. Could someone give some hints? On android is going through 3 processing states: paused, loading and then paused. And the track is ready to go on iOS - paused, loading and stays there
Still facing this problem
Eventually I'm planning to do an update on the tutorial and at that time I'll look at this issue. Recently I've been pretty busy, though. If anyone else finds the root cause first please post your answer here.
Eventually I'm planning to do an update on the tutorial and at that time I'll look at this issue. Recently I've been pretty busy, though. If anyone else finds the root cause first please post your answer here.
After a lot of hours bumping my head - the problem is in the audio_handler class, where you set the playlist. If you define it everything is fine, but if you need to load it dynamically and to have it empty on the initialisation it return non-stopping loading state
final _playlist = ConcatenatingAudioSource(children: [
ClippingAudioSource(
start: Duration(seconds: 60),
end: Duration(seconds: 90),
child: AudioSource.uri(Uri.parse("https://s3.amazonaws.com/scifri-episodes/scifri20181123-episode.mp3")),
tag: MediaItem(
id: 'https://s3.amazonaws.com/scifri-episodes/scifri20181123-episode.mp3',
album: "Science Friday",
title: "A Salute To Head-Scratching Science (30 seconds)",
artUri: Uri.parse("https://media.wnyc.org/i/1400/1400/l/80/1/ScienceFriday_WNYCStudios_1400.jpg"),
),
),
AudioSource.uri(
Uri.parse("https://s3.amazonaws.com/scifri-episodes/scifri20181123-episode.mp3"),
tag: MediaItem(
id: 'https://s3.amazonaws.com/scifri-episodes/scifri20181123-episode.mp3',
album: "Science Friday",
title: "A Salute To Head-Scratching Science",
artUri: Uri.parse("https://media.wnyc.org/i/1400/1400/l/80/1/ScienceFriday_WNYCStudios_1400.jpg"),
),
),
AudioSource.uri(
Uri.parse("https://s3.amazonaws.com/scifri-segments/scifri201711241.mp3"),
tag: MediaItem(
id: 'https://s3.amazonaws.com/scifri-episodes/scifri20181123-episode.mp3',
album: "Science Friday",
title: "From Cat Rheology To Operatic Incompetence",
artUri: Uri.parse("https://media.wnyc.org/i/1400/1400/l/80/1/ScienceFriday_WNYCStudios_1400.jpg"),
),
),
]);
Same thing happening with me.
Eventually I'm planning to do an update on the tutorial and at that time I'll look at this issue. Recently I've been pretty busy, though. If anyone else finds the root cause first please post your answer here.
After a lot of hours bumping my head - the problem is in the audio_handler class, where you set the playlist. If you define it everything is fine, but if you need to load it dynamically and to have it empty on the initialisation it return non-stopping loading state
final _playlist = ConcatenatingAudioSource(children: [ ClippingAudioSource( start: Duration(seconds: 60), end: Duration(seconds: 90), child: AudioSource.uri(Uri.parse("https://s3.amazonaws.com/scifri-episodes/scifri20181123-episode.mp3")), tag: MediaItem( id: 'https://s3.amazonaws.com/scifri-episodes/scifri20181123-episode.mp3', album: "Science Friday", title: "A Salute To Head-Scratching Science (30 seconds)", artUri: Uri.parse("https://media.wnyc.org/i/1400/1400/l/80/1/ScienceFriday_WNYCStudios_1400.jpg"), ), ), AudioSource.uri( Uri.parse("https://s3.amazonaws.com/scifri-episodes/scifri20181123-episode.mp3"), tag: MediaItem( id: 'https://s3.amazonaws.com/scifri-episodes/scifri20181123-episode.mp3', album: "Science Friday", title: "A Salute To Head-Scratching Science", artUri: Uri.parse("https://media.wnyc.org/i/1400/1400/l/80/1/ScienceFriday_WNYCStudios_1400.jpg"), ), ), AudioSource.uri( Uri.parse("https://s3.amazonaws.com/scifri-segments/scifri201711241.mp3"), tag: MediaItem( id: 'https://s3.amazonaws.com/scifri-episodes/scifri20181123-episode.mp3', album: "Science Friday", title: "From Cat Rheology To Operatic Incompetence", artUri: Uri.parse("https://media.wnyc.org/i/1400/1400/l/80/1/ScienceFriday_WNYCStudios_1400.jpg"), ), ), ]);
Same thing happening with me.
Did anyone got solution?
I have same issue.
Same issue, i got platform exception when play stream on ios, on android is it working fine.
I've updated the tutorial with the updated versions of the plugins. Is anyone still getting this issue?
if anyone knows the solution then please let me know. I didn't change any code. Thank you.