Linuxmint
Linuxmint

Reputation: 4746

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 plugged in?

Upvotes: 0

Views: 4097

Answers (2)

tc.
tc.

Reputation: 33592

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.

Upvotes: 12

Radu
Radu

Reputation: 3494

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

Upvotes: -3

Related Questions