开发者

Force play audio file through iPhone speakers?

Is it possible to force a audio file to play through the iPhone speakers even if headphones are p开发者_如何学Clugged in?


See Audio Session Cookbook: Redirecting Output Audio. Briefly,

  1. Set the category to kAudioSessionCategory_PlayAndRecord
  2. Set kAudioSessionProperty_OverrideAudioRoute to kAudioSessionOverrideAudioRoute_Speaker

If that doesn't work, then there probably isn't a way to do it.


Short answer No. Sorry. I tried to find something like this once but no luck. Apple is pretty vaige about this things.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜