@capgo/native-audio 5.0.3 → 5.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -436,6 +436,7 @@ public class NativeAudio extends Plugin implements AudioManager.OnAudioFocusChan
|
|
436
436
|
AudioAsset asset = audioAssetList.get(audioId);
|
437
437
|
if (LOOP.equals(action) && asset != null) {
|
438
438
|
asset.loop();
|
439
|
+
call.resolve();
|
439
440
|
} else if (asset != null) {
|
440
441
|
asset.play(
|
441
442
|
time,
|
@@ -448,6 +449,8 @@ public class NativeAudio extends Plugin implements AudioManager.OnAudioFocusChan
|
|
448
449
|
}
|
449
450
|
}
|
450
451
|
);
|
452
|
+
} else {
|
453
|
+
call.reject("Error with asset");
|
451
454
|
}
|
452
455
|
}
|
453
456
|
} catch (Exception ex) {
|