@capgo/native-audio 5.0.2 → 5.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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) {
|