cordova-plugin-media
cordova-plugin-media copied to clipboard
Need to wait couple of minutes before playing sound again
Bug Report
Problem
Playing sound is working. Playing this sound again after some couple of seconds - not working and the sound is not getting played. Actually I don't how much time exactly is needed in order to play the sound on the second time, but its something like 3 minutes or so.
What is expected to happen?
It should be able to play sounds one by another without any issue.
What does actually happen?
Need to wait couple of minutes in order to play the second sound (even with different files).
Information
iOS only. On Android I don't know what is the path of the files therefore I use something else to play media in Android.
Command or Code
var path = "static/audio/notifications/order.mp3"
let media = new Media(path)
media.play({playAudioWhenScreenIsLocked: true})
media.setVolume('1.0')
Environment, Platform, Device
iOS - any version.
Version information
cordova -v 8.1.2 ([email protected])
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