Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No sound when playing video in ionic app on an iPhone device

I have an ionic app that plays videos hosted on the internet. When testing the app on a web browser and in the iOS emulator the video plays with sound.

If I download the app onto my iPhone using X-Code the video plays but there is no sound!

Does anyone have an idea as to why the sound works on the emulator but not on the actual device? I have checked that youtube videos play ok with sound.

like image 319
Bill Noble Avatar asked Oct 23 '15 17:10

Bill Noble


2 Answers

Ok, so I am clearly an idiot! The mute slider on my iPhone was turned on. Not sure though why this didn't mute youtube videos but did mute my app videos.

like image 195
Bill Noble Avatar answered Sep 27 '22 23:09

Bill Noble


For those wondering why sound isn't working in the ionic view app for an iOS device, but it works in an iOS emulator like I was:

The ionic view app comes with a fixed set of cordova plugins. If your app needs a plugin which the ionic view app doesn't support thenyour app won't work in the ionic view app. The sound plugin I was using in my emulator wasn't supported in the ionic view app.

Edit: list of supported ionic view apps can be found here: http://docs.ionic.io/docs/view-usage

like image 21
Nick Brady Avatar answered Sep 28 '22 01:09

Nick Brady