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

i can't play audio #390

Open
metalalchemist opened this issue Dec 19, 2023 · 0 comments
Open

i can't play audio #390

metalalchemist opened this issue Dec 19, 2023 · 0 comments

Comments

@metalalchemist
Copy link

Bug Report

no sound

Problem

when i tried play an audio i can't

What is expected to happen?

play an audio in a loop
for example my fil is located y www/sounds
musica = new Media("sounds/my_file.mp3", alert("succes!"), function(err) { alert("error "+err); }, function (status) { if (status === Media.MEDIA_STOPPED) musica.play({playAudioWhenScreenIsLocked: false});});

What does actually happen?

i don't know. when i execute succes an error function succes is executed but i can listen the music.

Information

ios 17.2 macos 14.1 and xcode 15.
using cordova 12.0.0 and node v 20 with ios platform v 7.0.0
using cordova-plugin-media v 7.0.0
i tested in my iPhone se 3rd generation with ios 16.6 and i have the same iswe

Command or Code

musica = new Media("sounds/my_file.mp3", alert("succes!"), function(err) { alert("error "+err); }, function (status) { if (status === Media.MEDIA_STOPPED) musica.play({playAudioWhenScreenIsLocked: false});});

Environment, Platform, Device

ios 17.2
note i tested in ios 16.6 fisical device and i have the same iswe

Version information

cordova 12.0.0
cordova-media-plugin 7.0
xcode 15
macos 14.1

Checklist

  • [ x] I searched for existing GitHub issues
  • [ x] I updated all Cordova tooling to most recent version
  • [ x] I included all the necessary information above
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

1 participant