*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'An AVPlayerItem cannot be associated with more than one instance of AVPlayer'
遇到这个问题 找了些资料 无果 然后看到TED是在播放前先检查网络 于是 写了个检查网络的代码进行判断 搞定。mark下
附上检查网络的代码http://easymorse-iphone.googlecode.com/svn/trunk/iphone.network1/
本文解决了iOS开发中遇到的'NSInvalidArgumentException'异常问题,即一个AVPlayerItem实例被多个AVPlayer实例引用的情况。通过在网络状况不佳时进行检查并适当处理,避免了此异常的发生。
1509

被折叠的 条评论
为什么被折叠?



