iphone - How can I make videos play sound even if the phone is on silent or vibrate? -


this question has answer here:

i'm using lbyoutubeview play youtube videos, , if phone on silent or vibrate, video not play sound. there way force play sound on video anyway?

i know can play audio file, described here.

you need use avaudiosession api configure audio playback. call like:

[[avaudiosession sharedinstance] setcategory:avaudiosessioncategoryplayback error:&error]; 

make call before call api's play audio. working me in app plays audio, not video, ymmv.

the possible values category described here.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -