0
votes

I am trying to run the just_audio sample project from their own repository here : https://github.com/ryanheise/just_audio/tree/master/just_audio/example

It is working fine on android but when I clone the project using a mac and run it on the simulator it throws this error :

[VERBOSE-2:ui_dart_state.cc(199)] Unhandled Exception: (-11800) The operation could not be completed 
    #0      AudioPlayer._load (package:just_audio/just_audio.dart:778:9)
    <asynchronous suspension>
    #1      AudioPlayer._setPlatformActive.<anonymous closure> (package:just_audio/just_audio.dart:1346:28)
    <asynchronous suspension>

And this error pops up while I'm trying to call the audio URL for streaming using setUrl() method

I have also tried Editing Transport security as the documentation recommends

   <key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict> 

Note

I have tried all the other packages available for ios for playing and streaming audio and none of them worked