cordova-plugin-media icon indicating copy to clipboard operation
cordova-plugin-media copied to clipboard

No sound

Open aoreinoso opened this issue 5 years ago • 6 comments

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

aoreinoso avatar Jun 28 '19 12:06 aoreinoso

I am having the same problem.. the status 2 (MEDIA_RUNNING) throw but no sound.

PS: I'm using Ionic 4

pcsantana avatar Sep 12 '19 13:09 pcsantana

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!

pcsantana avatar Sep 13 '19 12:09 pcsantana

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?

sonicwong avatar Oct 19 '19 16:10 sonicwong

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

timbru31 avatar Apr 02 '20 17:04 timbru31

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.

dsl101 avatar Mar 08 '21 21:03 dsl101

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.

bikubi avatar Dec 10 '21 20:12 bikubi