v3.4 中videoPlayer 问题

Playing

2015-04-10 23:30:05.740 MyCppGame iOS cocos2d: surface size: 1334x750

2015-04-10 23:30:06.033 MyCppGame iOS cocos2d: surface size: 1334x750

2015-04-10 23:30:06.617 MyCppGame iOS Unable to simultaneously satisfy constraints.

Probably at least one of the constraints in the following list is one you don’t want. Try this: (1) look at each constraint and try to figure out which you don’t expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you’re seeing NSAutoresizingMaskLayoutConstraints that you don’t understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)

(

"<NSLayoutConstraint:0x7fec53552ca0 H:|-(34)-(LTR)   (Names: '|':_UIBackdropContentView:0x7fec53408ee0 )>",

"<NSLayoutConstraint:0x7fec53552cf0 H:-(34)-(LTR)>",

"<NSLayoutConstraint:0x7fec53554220 H:-(34)-(LTR)>",

"<NSLayoutConstraint:0x7fec53554270 UIView:0x7fec53409680.right == _UIBackdropView:0x7fec504d4510.right>",

"<NSLayoutConstraint:0x7fec5340b560 H:|-(0)-   (Names: '|':MPVideoPlaybackOverlayView:0x7fec53403a60 )>",

"<NSLayoutConstraint:0x7fec5340b5e0 H:-(0)-|   (Names: '|':MPVideoPlaybackOverlayView:0x7fec53403a60 )>",

"<NSLayoutConstraint:0x7fec53558930 H:>",

"<NSAutoresizingMaskLayoutConstraint:0x7fec5342b190 h=-&- v=-&- _UIBackdropContentView:0x7fec53408ee0.midX == _UIBackdropView:0x7fec504d4510.midX>",

"<NSAutoresizingMaskLayoutConstraint:0x7fec5341a1e0 h=-&- v=-&- _UIBackdropContentView:0x7fec53408ee0.width == _UIBackdropView:0x7fec504d4510.width>"

)

Will attempt to recover by breaking constraint

<NSLayoutConstraint:0x7fec53552cf0 H:-(34)-(LTR)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.

The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.

2015-04-10 23:30:06.691 MyCppGame iOS Unable to simultaneously satisfy constraints.

Probably at least one of the constraints in the following list is one you don’t want. Try this: (1) look at each constraint and try to figure out which you don’t expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you’re seeing NSAutoresizingMaskLayoutConstraints that you don’t understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)

(

"<NSLayoutConstraint:0x7fec53552ca0 H:|-(34)-(LTR)   (Names: '|':_UIBackdropContentView:0x7fec53408ee0 )>",

"<NSLayoutConstraint:0x7fec53552cf0 H:-(34)-(LTR)>",

"<NSLayoutConstraint:0x7fec53554220 H:-(34)-(LTR)>",

"<NSLayoutConstraint:0x7fec53554270 UIView:0x7fec53409680.right == _UIBackdropView:0x7fec504d4510.right - 34>",

"<NSLayoutConstraint:0x7fec5340b560 H:|-(0)-   (Names: '|':MPVideoPlaybackOverlayView:0x7fec53403a60 )>",

"<NSLayoutConstraint:0x7fec5340b5e0 H:-(0)-|   (Names: '|':MPVideoPlaybackOverlayView:0x7fec53403a60 )>",

"<NSAutoresizingMaskLayoutConstraint:0x7fec5342b190 h=-&- v=-&- _UIBackdropContentView:0x7fec53408ee0.midX == _UIBackdropView:0x7fec504d4510.midX>",

"<NSAutoresizingMaskLayoutConstraint:0x7fec5341a1e0 h=-&- v=-&- _UIBackdropContentView:0x7fec53408ee0.width == _UIBackdropView:0x7fec504d4510.width>",

"<NSAutoresizingMaskLayoutConstraint:0x7fec53794770 h=-&- v=-&- MPVideoContainerView:0x7fec504bf0b0.width == MPSwipableView:0x7fec504bfb30.width>",

"<NSAutoresizingMaskLayoutConstraint:0x7fec537e4a10 h=-&- v=-&- MPSwipableView:0x7fec504bfb30.width == MPMovieView:0x7fec504c3d80.width>",

"<NSAutoresizingMaskLayoutConstraint:0x7fec53726bb0 h=--& v=--& H:>",

"<NSAutoresizingMaskLayoutConstraint:0x7fec55170a10 h=-&- v=-&- MPVideoPlaybackOverlayView:0x7fec53403a60.width == MPVideoContainerView:0x7fec504bf0b0.width>"

)

Will attempt to recover by breaking constraint

<NSLayoutConstraint:0x7fec53552cf0 H:-(34)-(LTR)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.

The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.

2015-04-10 23:30:06.693 MyCppGame iOS cocos2d: surface size: 1334x750

2015-04-10 23:30:07.013 MyCppGame iOS 23:30:07.012 ERROR: 98: Error ‘!obj’ trying to fetch default input device’s sample rate

2015-04-10 23:30:07.013 MyCppGame iOS 23:30:07.013 ERROR: 100: Error getting audio input device sample rate: ‘!obj’

2015-04-10 23:30:07.013 MyCppGame iOS 23:30:07.013 WARNING: 230: The input device is 0x0; ‘(null)’

2015-04-10 23:30:07.013 MyCppGame iOS 23:30:07.013 WARNING: 234: The output device is 0x26; ‘AppleHDAEngineOutput:1B,0,1,2:0’

2015-04-10 23:30:07.014 MyCppGame iOS 23:30:07.014 ERROR: 404: error ‘!obj’

2015-04-10 23:30:07.014 MyCppGame iOS 23:30:07.014 ERROR: 113: * * * NULL AQIONode object

2015-04-10 23:30:07.014 MyCppGame iOS 23:30:07.014 ERROR: 404: error -66680

2015-04-10 23:30:07.014 MyCppGame iOS 23:30:07.014 ERROR: 404: error -66680

2015-04-10 23:30:07.014 MyCppGame iOS 23:30:07.014 ERROR: 404: error -66680

2015-04-10 23:30:07.014 MyCppGame iOS 23:30:07.014 ERROR: 703: Can’t make UISound Renderer

2015-04-10 23:30:07.015 MyCppGame iOS 23:30:07.015 ERROR: 404: error -66680

stop

stop

在Xcode中出现的这个问题。求大神帮忙看看是哪里错了。。。

没有设置setContentSize

好。我回去试试,设置一下。我用真机测试,只能听到声音看不到人,是不是也是这个问题引起来的呢?

谢谢啦,果然是没有设置setcontentsize,回去设置了一下,果然好了。:7::7:

我在使用MPMoviePlayerController退出全屏播放时遇到类似的问题,不知道这个contentsize是哪个控件的属性呢?

求大神解答 setContentSize 我设置了这个还是报这个错