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
Post a Comment