开发者

How do I stop MPMoviePlayerController from showing my app's icon on the iPod controls in iOS4.0+?

I use an MPMoviePlayerController to play a movie inside my application.

When the movie is playing, if I double-press the home button and scroll to the left (where the iPod icon usually is as well as the "lock orientation" button), I see my app's icon.

The play controls control the movie inside my app, even if I had navigated to a different view controller inside my application.

I'd like to turn this "feature" off. Any ideas?

As a side note I am controlling the audio session manually, and the session is AVAudioSessionPlayback at that point.

I've poked around the MPMoviePlayerController class reference for awhile to see if I could find anything, but it seems to make no reference of this behavior.

When I put my app into the background, it does wha开发者_Python百科t you would expect - returns the iPod icon to the bar.


Although I don't know why you would want that, setting your Audio Session to AVAudioSessionCategorySoloAmbient should disable that feature (but also disables the ability to play in the background).

Also make sure that useApplicationAudioSession on your MPMoviePlayerController is set to YES.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜