native-audio
native-audio copied to clipboard
[Bug] Play remote sound
Describe the bug The remote sound does not play on iOS
To Reproduce Steps to reproduce the behavior:
import { Plugins } from "@capacitor/core";
const { NativeAudio } = Plugins;
NativeAudio.preloadSimple({
assetPath: "https://actions.google.com/sounds/v1/alarms/bugle_tune.ogg",
assetId: "bugle_tune",
});
NativeAudio.play({
assetId: "bugle_tune",
});
setTimeout(() =>
NativeAudio.unload({
assetId: "bugle_tune",
})
, 5000);
Expected behavior Remote sound is played
Actual behavior Remote sound is not played
ERROR MESSAGE: {"errorMessage":"","message":"Asset Path is missing"}
Smartphone:
- Device: iPhone SE simulator
- OS: iOS13.6/14
- Version 0.1.3
I don't think http
resources are supported (see #10). The docs are misleading.
I think it would be a significant feature to add
Same thing, it doesn't work for me for https:// source, so my workaround was just to use html audio tag:
<audio id="audioDev" src="https://mywebsite/myaudio.mp3"></audio>
<script>
function play() {
document.getElementById('audioDev').play()
}
function pause() {
document.getElementById('audioDev').pause()
}
</script>
#10 has been merged, so this should probably be closed?
On iOS http and https links doesn't work for me with current master version of this plugin.
@katche70 I think there is some confusion here. This plugin does not support http/https!
still no updates on this?
Hello, is there any plan to support remote stream url ?
Streaming a URL is a must in these days where you communicate with LLMs and play their sounds. I hope this gets implemented soon.