【问题标题】:Only Ipad-Exception saying Movie player has wrong activation state只有 Ipad-Exception 说电影播放器​​的激活状态错误
【发布时间】:2015-05-06 13:49:36
【问题描述】:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'movie player <MPMoviePlayerControllerNew: 0x7ce3d230> has wrong activation state (1)'
*** First throw call stack:
(

4   MediaPlayer                         0x01968ef3 - [MPMoviePlayerControllerNew _moviePlayerDidBecomeActiveNotification:] + 239

5   Foundation                          0x03055c49 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke + 40

6   CoreFoundation                      0x03bef4a4 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20

7   CoreFoundation                      0x03add03b _CFXNotificationPost + 3051

8   Foundation                          0x03045246 -[NSNotificationCenter postNotificationName:object:userInfo:] + 98

tNotificationName:object:userInfo:] + 98
9   MediaPlayer                         0x0196bd96 -[MPMoviePlayerControllerNew _postNotificationName:object:userInfo:] + 133
10  MediaPlayer                         0x0196bd01 -        [MPMoviePlayerControllerNew _postNotificationName:object:] + 68

我不知道为什么这个问题只发生在 Ipad 而不是 iPhone? 如果他们可以提供任何帮助..我应该怎么做才能删除它??

【问题讨论】:

    标签: ios iphone


    【解决方案1】:

    我可以通过在每次用户请求播放歌曲时调用的方法中使用下面提到的代码来解决这个问题

    if ([MoviePlayer isPreparedToPlay]) {
                [MoviePlayer stop];
            }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-21
      相关资源
      最近更新 更多