You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "metalalchemist (via GitHub)" <gi...@apache.org> on 2023/12/19 19:59:53 UTC
[I] i can't play audio [cordova-plugin-media]
metalalchemist opened a new issue, #390:
URL: https://github.com/apache/cordova-plugin-media/issues/390
# 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
<!-- Include all relevant information that might help understand and reproduce the problem -->
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
<!-- What command or code is needed to reproduce the problem? -->
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
<!-- In what environment, on what platform or on which device are you experiencing the issue? -->
ios 17.2
note i tested in ios 16.6 fisical device and i have the same iswe
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
cordova 12.0.0
cordova-media-plugin 7.0
xcode 15
macos 14.1
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [ 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
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org