Skip to content

i can't play audio #390

@metalalchemist

Description

@metalalchemist

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions