cordova-plugin-nativeaudio
cordova-plugin-nativeaudio copied to clipboard
Test if asset has already been loaded
Is there any way to test if an asset has already been loaded on device before doing a preloadComplex?
Cordova on iOS/Android
Error: "A reference already exists for the specified audio id"
Thanks @AmitMY - just to confirm - to test if an asset has already been loaded I have to load the asset and just do nothing if i get that error?
Basically yes, if that error is thrown it means that the asset was already loaded, so imo, it should be a warning and not an error. @floatinghotpot thoughts?