我试图在VideoPlayback示例中支持外部电影。你(据说)可以通过查找EXAMPLE_CODE_REMOTE_FILE并更改bool来做到这一点,所以我做到了。
一切正常,直到我尝试播放视频。我可以看到它加载到播放器中但是当它出现时屏幕仍然是黑色 - 虽然我可以听到声音。
这伴随着日志中的这个输出块:
2014-10-14 09:12:50.904 MARL_Adhoc[578:145994] 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:0x191f08b0 H:|-(34)-[MPKnockoutButton:0x17a876b0](LTR) (Names: '|':_UIBackdropContentView:0x191d7180 )>",
"<NSLayoutConstraint:0x191f0920 H:[MPKnockoutButton:0x17a876b0]-(34)-[MPDetailSlider:0x17a8bc50](LTR)>",
"<NSLayoutConstraint:0x191f0950 H:[MPDetailSlider:0x17a8bc50]-(34)-[UIView:0x191d75d0](LTR)>",
"<NSLayoutConstraint:0x191f08e0 UIView:0x191d75d0.right == _UIBackdropView:0x191d6890.right - 34>",
"<NSLayoutConstraint:0x191d7bf0 H:|-(0)-[_UIBackdropView:0x191d6890] (Names: '|':MPVideoPlaybackOverlayView:0x191d6650 )>",
"<NSLayoutConstraint:0x191d7c60 H:[_UIBackdropView:0x191d6890]-(0)-| (Names: '|':MPVideoPlaybackOverlayView:0x191d6650 )>",
"<NSAutoresizingMaskLayoutConstraint:0x17a7eea0 h=-&- v=-&- _UIBackdropContentView:0x191d7180.midX == _UIBackdropView:0x191d6890.midX>",
"<NSAutoresizingMaskLayoutConstraint:0x17a7eed0 h=-&- v=-&- _UIBackdropContentView:0x191d7180.width == _UIBackdropView:0x191d6890.width>",
"<NSAutoresizingMaskLayoutConstraint:0x191ebfd0 h=-&- v=-&- MPSwipableView:0x17a90350.width == MPMovieView:0x1912deb0.width>",
"<NSLayoutConstraint:0x191ec300 'UIView-Encapsulated-Layout-Width' H:[MPMovieView:0x1912deb0(320)]>",
"<NSAutoresizingMaskLayoutConstraint:0x17a78ef0 h=-&- v=-&- MPVideoContainerView:0x1912cb30.width == MPSwipableView:0x17a90350.width - 320>",
"<NSAutoresizingMaskLayoutConstraint:0x191ea8b0 h=-&- v=-&- MPVideoPlaybackOverlayView:0x191d6650.width == MPVideoContainerView:0x1912cb30.width>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x191f0920 H:[MPKnockoutButton:0x17a876b0]-(34)-[MPDetailSlider:0x17a8bc50](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.
好的,太好了。问题是,UIViewAlertForUnsatisfiableConstraints并没有出现在我的代码中的任何地方,或者据我所知,Vuforia(应该吗?还是这说些别的?)。我无法在可见代码中的任何地方找到任何约束或布局方法。我也没有在界面构建器中看到任何内容。
有没有人在iOS7 / 8上进行全屏播放?
答案 0 :(得分:1)