I am using audio_service with just_audio and have constructed a minimal example repo using the tutorial code I found in the repo.
If the URL I use to initialize the AudioPlayerHandler is incorrect for any reason (hardcoded in the example code just for illustration purposes, see link below) I am unable to find a way to detect the error. There is an unhandled exception that messes up the state, and I can't figure out how to catch this and take appropriate steps in the app to let the user know there has been an error. Is there a callback or something I can listen to?
[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: (-1100) The requested URL was not found on this server.
#0 AudioPlayer._load (package:just_audio/just_audio.dart:785)
<asynchronous suspension>
#1 AudioPlayer._setPlatformActive.setPlatform (package:just_audio/just_audio.dart:1351)
<asynchronous suspension>