cordova-plugin-media
cordova-plugin-media copied to clipboard
No sound
I have upgraded my apps to 5.0.2 Fetching plugin "cordova-plugin-media" via npm Installing "cordova-plugin-media" at "5.0.2" for android
Now play() no sound
config.xml
<plugin name="cordova-plugin-media">
<variable name="MICROPHONE_USAGE_DESCRIPTION" value=" "/>
</plugin>
is it necessary to make some other change?
Thanks in advance
I am having the same problem.. the status 2 (MEDIA_RUNNING) throw but no sound.
PS: I'm using Ionic 4
For me, the problem seems to be the last version (5.0.3). I installed the 5.0.2 version and it worked as expected!
I am using plugin v5.0.2 on ionic 3. Sound come out on android debug build, but no sound on production build. Anyone have this same case?
Is this reproducible in a new, plain Cordova app? A minimal reproduction repository would really help to debug and later fix this issue. More information on how to create one: https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md
Sorry, can't help with a minimal repro right now, but just to say I'm having the exact same issue on a Quasar / Cordova project for ios. Installing with cordova plugin add [email protected]
and audio plays fine (web streaming). Installing 5.0.3 results in the exact same log (success callback, stream enters state 2, I see the 'data' spinner in the phone status bar, etc.), but simply no sound.
I might have the same problem. Is anyone here trying to play a live stream? I've noticed that a static MP3 over http will play, but a live stream ("infinite duration") won't. @timbru31 I have created a Minimal Reproduction Repo: https://github.com/bikubi/cordova-plugin-media-mwe/
If this issue is not about live streams, I'm happy to open a new one. (Feel free to fork my MRR if it helps you to set up your own.)
BTW, a downgrade to 5.0.2 didn't help. Tested iOS 15.1 on iPad, 12.3.1 on an iPhone SE, and 15.0 in an iPhone 13 emulator.
EDIT: whoops, just noticed OP mentioned android. Never mind, I'll open a new issue tomorrow.