Description
I have Koel running on my local network. I have enabled ssl, but since it's only for my local network, I have self issued a certificate (which cannot be verified by the browser).
The app is running, but whenever I try to play a song, I get this error:
[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: Null check operator used on a null value
#0 AudioProvider.init. (package:app/providers/audio_provider.dart:37:40)
#1 _rootRunUnary (dart:async/zone.dart:1436:47)
#2 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
#3 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
#4 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#5 _DelayedData.perform (dart:async/stream_impl.dart:591:14)
#6 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:706:11)
#7 _PendingEvents.schedule. (dart:async/stream_impl.dart:663:7)
#8 _rootRun (dart:async/zone.dart:1420:47)
#9 _CustomZone.run (dart:async/zone.dart:1328:19)
#10 _CustomZone.runGuarded (dart:async/zone.dart:1236:7)
#11 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1276:23)
#12 _rootRun (dart:async/zone.dart:1428:13)
#13 _CustomZone.run (dar<…>
flutter: PlatformException(PLAY_ERROR, Cannot play https://zique.fr.local/play/30e58cc455e7d4f55c2bda3573123937?api_token=9%7CwQ8EfNXK93ZTPyvLBcZ2qStLH23MYa04jeM2zukA, The certificate for this server is invalid., null)
Is there a way to disable certificate validation when playing audio?
I tried to add these keys in Info.plist
, which made the app running, but seem to have no impact on audio playback restrictions:
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSAllowsArbitraryLoadsForMedia</key>
<true/>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
<key>NSAllowsLocalNetworking</key>
<true/>
Activity