Sound not working on Cordova

HI,

If I have a video (eg embedded Youtube or VImeo) on page it works on desktop and on mobile browser (eg Safari /iOS).However in the Cordova app, there’s no sound when playing the video (eg Youtube) The video plays fine.

I tried installing the media Plugin, however it did not seem to help. http://plugins.cordova.io/#/package/org.apache.cordova.media

Not sure if there is some magic App.setPreference I need to do to enable this or perhaps some setting on my phone.

An example of the iFrame is here:

<iframe style="position: absolute;" width="100%" height="100%" src="https://www.youtube.com/embed/RCMCIv60_Rk?feature=oembed" frameborder="0" allowfullscreen></iframe>

Any ideas , pls?

1 Like

Some additional info… this only seems to be happening on my iPhone… ie sound working on others. I use this phone to test my apps, wondering if I have set something up incorrectly. Ie I have some how enabled some “sound setting” on my iPhone for my specific app. I have checked Settings->Sounds and Settings->MyApp but I can’t see anything

Could anything with the Xcode/meteor build process wipe the sound out? I have tried deleting and re-adding the app, same issue.

Any ideas, welcome :smile:

1 Like

I think I have the same problem. I use a basic html5 video player but I don’t have the sound suddenly.

<video controls >
          <source src="url" type="video/mp4">
</video>

I’m looking for help too!
Best.
Vigile

Did either of you find a solution? It might have been that iOS web views require user input to play media (eg a click).