Error Domain = NSOSStatusErrorDomain代码= 560030580“操作无法完成. (OSStatus错误560030580.)

编程入门 行业动态 更新时间:2024-10-28 08:28:25
本文介绍了Error Domain = NSOSStatusErrorDomain代码= 560030580“操作无法完成. (OSStatus错误560030580.)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用AVPlayer播放在线mp3流!当我暂停播放器

I was using AVPlayer to play online mp3 stream ! When I pause the player

[AVPlayer pause]; AVAudioSession *session = [AVAudioSession sharedInstance]; session.delegate = nil; NSError *error = nil; [session setActive:NO error:&error]; NSLog([error description]);

我遇到了错误,错误域= NSOSStatusErrorDomain代码= 560030580操作无法完成.(OSStatus错误560030580.)"

I met the error , Error Domain=NSOSStatusErrorDomain Code=560030580 "The operation couldn’t be completed. (OSStatus error 560030580.)"

有人可以告诉我为什么以及如何解决吗?

Can anyone tell me why and how to resolve it?

非常感谢您!

推荐答案

我也遇到了这个问题.我在Google上搜索了一次以上的信息.有人说,在论坛中,AVAudioSession.h可以找出错误代码.

I encounter this problem too. I googled and see this post more than one time. From the forum, someone said, the error code can be figured out by AVAudioSession.h.

就我而言,问题似乎是race condition问题.它永远不会在我的iPhone 5s上发生,但是通常会在其他设备上发生,例如:iPhone6 Plus.

In my case, the problem seems to be race condition problem. It never happens on my iPhone 5s, but happens on other devices generally, ex: iPhone6 Plus.

据我所知,错误代码560030580表示AVAudioSessionErrorCodeIsBusy.

As far as I know, the error code 560030580 means AVAudioSessionErrorCodeIsBusy.

在AVAudioSession.h中定义了以下内容.

typedef NS_ENUM(NSInteger, AVAudioSessionErrorCode) { AVAudioSessionErrorCodeNone = 0, AVAudioSessionErrorCodeMediaServicesFailed = 'msrv', /* 0x6D737276, 1836282486 */ AVAudioSessionErrorCodeIsBusy = '!act', /* 0x21616374, 560030580 */ AVAudioSessionErrorCodeIncompatibleCategory = '!cat', /* 0x21636174, 560161140 */ AVAudioSessionErrorCodeCannotInterruptOthers = '!int', /* 0x21696E74, 560557684 */ AVAudioSessionErrorCodeMissingEntitlement = 'ent?', /* 0x656E743F, 1701737535 */ AVAudioSessionErrorCodeSiriIsRecording = 'siri', /* 0x73697269, 1936290409 */ AVAudioSessionErrorCodeCannotStartPlaying = '!pla', /* 0x21706C61, 561015905 */ AVAudioSessionErrorCodeCannotStartRecording = '!rec', /* 0x21726563, 561145187 */ AVAudioSessionErrorCodeBadParam = -50, AVAudioSessionErrorInsufficientPriority = '!pri', /* 0x21707269, 561017449 */ AVAudioSessionErrorCodeResourceNotAvailable = '!res', /* 0x21726573, 561145203 */ AVAudioSessionErrorCodeUnspecified = 'what' /* 0x77686174, 2003329396 */ } NS_AVAILABLE_IOS(7_0);

更多推荐

Error Domain = NSOSStatusErrorDomain代码= 560030580“操作无法完成. (OSStatus错误560030580.)

本文发布于:2023-11-26 16:04:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1634339.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   操作   代码   Error   NSOSStatusErrorDomain

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!