>
1、首先AVAudioSession激活时出错:errorDomainNSOSStatusError,AVAudioSession激活时出错:errorDomainNSOSStatusError你需要明确地通知AVAudioSessionAVAudioSession激活时出错:errorDomainNSOSStatusError你允许声音可以被输出到蓝牙设备,通过setCategory设置 AVAudioSession *session = AVAudioSession sharedInstance session setCategoryAVAudioSessionCategoryPlayAndRecord withOptionsAVAudioSessionCategoryOptionAllowBluetoothA2DP errorerror 通过。
2、NSError *errorNSURL *fileURL = NSURL fileURLWithPathfilePathplayer = AVAudioPlayer alloc initWithContentsOfURLfileURL errorerrorif player == nil NSLog@quotAudioPlayer did not load properly %@quot, error description else player play。
3、1步骤一在Infoplist中,添加quotRequired background modesquot键,value为App plays audio 步骤二 BOOLapplicationUIApplication *application didFinishLaunchingWithOptionsNSDictionary *launchOptions selfwindow = UIWindow alloc initWithFrameUIScreen mainScreen bounds。

4、首先,您需要配置您AVAudioSession激活时出错:errorDomainNSOSStatusError的应用程序允许蓝牙连接,支持音频的音频会话AVAudioSession激活时出错:errorDomainNSOSStatusError你能做到的例如,您的应用程序代表BOOL 应用程序UIApplication * 应用程序 didFinishLaunchingWithOptionsNSDictionary * launchOptions 方法请确保您 AVFoundation 框架联系起来,并将使用它的头中导入import ltAVFoundationAVFou。
5、首先,您需要配置您的应用程序允许蓝牙连接,支持音频的音频会话你能做到的例如,您的应用程序代表BOOL 应用程序UIApplication * 应用程序 didFinishLaunchingWithOptionsNSDictionary * launchOptions 方法请确保您 AVFoundation 框架联系起来,并将使用它的头中导入import ltAVFoundationAV。

相关标签 :
上一篇: 包含VR全景VR3603DoF的词条
微信医疗(登记+咨询+回访)预约管理系统
云约CRM微信小程序APP系统定制开发
云约CRM体检自定义出号预约管理系统
云约CRM云诊所系统,云门诊,医疗预约音视频在线问诊预约系统
云约CRM新版美容微信预约系统门店版_门店预约管理系统
云约CRM最新ThinkPHP6通用行业的预约小程序(诊所挂号)系统联系电话:18300931024
在线QQ客服:616139763
官方微信:18300931024
官方邮箱: 616139763@qq.com