Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Play remote sound #16

Open
yacut opened this issue Sep 19, 2020 · 7 comments
Open

[Bug] Play remote sound #16

yacut opened this issue Sep 19, 2020 · 7 comments

Comments

@yacut
Copy link

yacut commented Sep 19, 2020

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
@jsmith
Copy link

jsmith commented Sep 21, 2020

I don't think http resources are supported (see #10). The docs are misleading.

@claudiomerli
Copy link

I think it would be a significant feature to add

@AEiosApp
Copy link

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>

@kevnk
Copy link

kevnk commented Jun 10, 2022

#10 has been merged, so this should probably be closed?

@katche70
Copy link

katche70 commented Jul 6, 2022

On iOS http and https links doesn't work for me with current master version of this plugin.

@jsmith
Copy link

jsmith commented Jul 9, 2022

@katche70 I think there is some confusion here. This plugin does not support http/https!

@Gonzalo-Bruna
Copy link

still no updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants