当某些音频会话参数设置迷你iPod控制禁用 [英] iPod mini controls disabled when certain audio session parameters are set

查看:124
本文介绍了当某些音频会话参数设置迷你iPod控制禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个音乐可视化工具为iPhone / iPad的,iOS的3下,你可以轻按两下Home键,让iPod的控制。随着4.1-4.2的最新版本这些控件现在变灰的时候,家里按钮pssed $ P $。我发现在 http://openradar.appspot.com/8696944 一个类似的投诉,但没有一个解决方案。

I'm working on a music visualizer for the iphone/ipad, under iOS 3 you could double tap the home button and get iPod controls. With the latest version 4.1-4.2 these controls are now grayed out when the home button is pressed. I found a similar complaint at http://openradar.appspot.com/8696944, although there wasn't a solution.

我有基本的声音类别设置为 kAudioSessionCategory_PlayAndRecord kAudioSessionProperty_OverrideCategoryMixWithOthers 设置为true。 (只是为了更多的乐趣添加到我使用的OpenAL一些声音效果的问题。)

I have the base sound category set to kAudioSessionCategory_PlayAndRecord, with kAudioSessionProperty_OverrideCategoryMixWithOthers set to true. (Just to add more fun to the problem I'm using OpenAl for some sound effects.)

我曾尝试在应用程序进入后台设置的类别到环境。但无论它发生过晚,或者是不够的。

I have tried setting the category back to ambient when the application goes into the background. but either it happens too late or it's not sufficient.

推荐答案

好吧,我已经放弃了..现在我基于该AddMusic例如code编码我自己的用户界面
<一href=\"http://developer.apple.com/library/ios/#sample$c$c/AddMusic/Introduction/Intro.html%23//apple_ref/doc/uid/DTS40008845-Intro-DontLinkElementID_2\" rel=\"nofollow\">http://developer.apple.com/library/ios/#sample$c$c/AddMusic/Introduction/Intro.html%23//apple_ref/doc/uid/DTS40008845-Intro-DontLinkElementID_2

Well I've given up.. I'm now coding my own UI based off of the AddMusic example code http://developer.apple.com/library/ios/#samplecode/AddMusic/Introduction/Intro.html%23//apple_ref/doc/uid/DTS40008845-Intro-DontLinkElementID_2

我很高兴向大家报告,播放和通过MPMusicPlayerController停止似乎并不与播放和录制会话设置冲突。并建立自己的播放/暂停/快似乎是相当简单

I'm happy to report that play and stop via the MPMusicPlayerController doesn't seem to conflict with the play and record session settings. And building your own play/pause/FF seems to be fairly straightforward

P.S。我也发现这个音乐可视化应用程序:的http:// itunes.apple.com/us/app/music-visualizer/id337651694?mt=8 是眼前这个addMusic样本上传,这家伙正在充电2块钱吧..它有可怕的评论..但它似乎仍然错了,它是在应用程序商店。

p.s. I've also discovered that this Music Visualizer app: http://itunes.apple.com/us/app/music-visualizer/id337651694?mt=8 is just this addMusic sample uploaded and this guy is charging 2 bucks for it.. It's got awful reviews.. but it still seems wrong that it's on the app store.

这篇关于当某些音频会话参数设置迷你iPod控制禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆