Skip to content

setSourceUrl broken since 5.2.0 #1669

@putnokiabel

Description

@putnokiabel

Checklist

  • I read the troubleshooting guide before raising this issue
  • I made sure that the issue I am raising doesn't already exist

Current bug behaviour

When calling audioPlayer.setSourceUrl(url), it throws an exception PlatformException(DarwinAudioError, Failed to set source. For troubleshooting, see https://github.com/bluefireteam/audioplayers/blob/main/troubleshooting.md, AVPlayerItem.Status.failed on setSourceUrl, null) on iOS (it throws a different error with the same description on Android as well).

Expected behaviour

audioPlayer.setSourceUrl(url) completes without throwing an error.

Code sample

Code sample
Future<void> main() async {
  final audioPlayer = AudioPlayer();
  await audioPlayer.setSourceUrl('https://firebasestorage.googleapis.com/v0/b/obedience-app.appspot.com/o/audio%2F5e31ff82-e6fc-4837-87e3-aadd4b238c08.mp4?alt=media&token=8b849da9-9a92-4378-88b8-19fea933ed44');
}

Affected platforms

Android, iOS

AudioPlayers Version

5.2.0

Build mode

debug, release

Audio Files/URLs/Sources

https://firebasestorage.googleapis.com/v0/b/obedience-app.appspot.com/o/audio%2F5e31ff82-e6fc-4837-87e3-aadd4b238c08.mp4?alt=media&token=8b849da9-9a92-4378-88b8-19fea933ed44

Related issues / more information

The exact same code and the same URL are working when I'm using version 5.1.0, the bug only occurs on 5.2.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions