{"action":"opened","issue":{"url":"https://api.github.com/repos/youtube/youtube-ios-player-helper/issues/118","labels_url":"https://api.github.com/repos/youtube/youtube-ios-player-helper/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/youtube/youtube-ios-player-helper/issues/118/comments","events_url":"https://api.github.com/repos/youtube/youtube-ios-player-helper/issues/118/events","html_url":"https://github.com/youtube/youtube-ios-player-helper/issues/118","id":87770244,"number":118,"title":"Landscape, resize and full screen = problem with constraints","user":{"login":"awedeebawe","id":8670596,"avatar_url":"https://avatars.githubusercontent.com/u/8670596?v=3","gravatar_id":"","url":"https://api.github.com/users/awedeebawe","html_url":"https://github.com/awedeebawe","followers_url":"https://api.github.com/users/awedeebawe/followers","following_url":"https://api.github.com/users/awedeebawe/following{/other_user}","gists_url":"https://api.github.com/users/awedeebawe/gists{/gist_id}","starred_url":"https://api.github.com/users/awedeebawe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awedeebawe/subscriptions","organizations_url":"https://api.github.com/users/awedeebawe/orgs","repos_url":"https://api.github.com/users/awedeebawe/repos","events_url":"https://api.github.com/users/awedeebawe/events{/privacy}","received_events_url":"https://api.github.com/users/awedeebawe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-12T15:55:33Z","updated_at":"2015-06-12T15:55:33Z","closed_at":null,"body":"Um, hi :)\r\nI am trying to implement YTPlayerView with my application. The default behaviour is when the user is in portrait mode to open the video in portrait mode. This way it still breaks the constraints, but without errors in the console.\r\nHere is the catch: when the user rotates the phone, the YTPlayerView resizes to a smaller frame in the bottom right corner. The youtube PLAY button is touchable, the video plays in full screen, but when I tap \"Done\", the layout is broken and I get this error in the console:\r\n```\r\n2015-06-12 18:50:27.492 Eatglobe[282:10698] Unable to simultaneously satisfy constraints.\r\n\tProbably 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) \r\n(\r\n    \"<NSLayoutConstraint:0x170096620 H:|-(0)-[UIView:0x170186180]   (Names: '|':UIView:0x1741822f0 )>\",\r\n    \"<NSLayoutConstraint:0x170096670 H:[UIView:0x170186180]-(0)-|   (Names: '|':UIView:0x1741822f0 )>\",\r\n    \"<NSLayoutConstraint:0x170095d60 H:|-(0)-[UIView:0x1741822f0]   (Names: '|':UIView:0x170186320 )>\",\r\n    \"<NSLayoutConstraint:0x170095db0 H:[UIView:0x1741822f0]-(0)-|   (Names: '|':UIView:0x170186320 )>\",\r\n    \"<NSLayoutConstraint:0x170096a30 'UIView-Encapsulated-Layout-Width' H:[UIView:0x170186320(80)]>\",\r\n    \"<NSLayoutConstraint:0x17009bb70 H:|-(0)-[UIView:0x174187c50]   (Names: '|':_UIBackdropContentView:0x174187ab0 )>\",\r\n    \"<NSLayoutConstraint:0x17009bbc0 H:[UIView:0x174187c50]-(0)-|   (Names: '|':_UIBackdropContentView:0x174187ab0 )>\",\r\n    \"<NSLayoutConstraint:0x17009b940 H:|-(0)-[_UIBackdropView:0x1009a9380]   (Names: '|':UIView:0x1741870f0 )>\",\r\n    \"<NSLayoutConstraint:0x17009b990 H:[_UIBackdropView:0x1009a9380]-(0)-|   (Names: '|':UIView:0x1741870f0 )>\",\r\n    \"<NSLayoutConstraint:0x17009b800 H:|-(0)-[UIView:0x1741870f0]   (Names: '|':AVAlphaUpdatingView:0x174187430 )>\",\r\n    \"<NSLayoutConstraint:0x17009b850 H:[UIView:0x1741870f0]-(0)-|   (Names: '|':AVAlphaUpdatingView:0x174187430 )>\",\r\n    \"<NSAutoresizingMaskLayoutConstraint:0x1740975c0 h=-&- v=-&- _UIBackdropContentView:0x174187ab0.width == _UIBackdropView:0x1009a9380.width>\",\r\n    \"<NSLayoutConstraint:0x174098330 H:|-(0)-[AVAlphaUpdatingView:0x174187430]   (Names: '|':UIView:0x170186180 )>\",\r\n    \"<NSLayoutConstraint:0x174098380 H:[AVAlphaUpdatingView:0x174187430]-(0)-|   (Names: '|':UIView:0x170186180 )>\",\r\n    \"<NSLayoutConstraint:0x170092f20 H:|-(14)-[AVButton:0x100a30a80'Done'](LTR)   (Names: '|':UIView:0x174187c50 )>\",\r\n    \"<NSLayoutConstraint:0x1700950e0 H:[AVButton:0x100a30a80'Done']-(0)-[UILabel:0x1009ab980'0:03'](LTR)>\",\r\n    \"<NSLayoutConstraint:0x1700929d0 H:[UILabel:0x1009ab980'0:03'(55)]>\",\r\n    \"<NSLayoutConstraint:0x170090860 H:[UILabel:0x1009ab980'0:03']-(6)-[AVScrubber:0x1009a1e10](LTR)>\",\r\n    \"<NSLayoutConstraint:0x170092ed0 AVScrubber:0x1009a1e10.right == UILabel:0x1009a95f0'\\U200e-31:58'.left - 6>\",\r\n    \"<NSLayoutConstraint:0x170097d40 UILabel:0x1009a95f0'\\U200e-31:58'.right == AVButton:0x100920ee0.left>\",\r\n    \"<NSLayoutConstraint:0x170097de0 H:[UILabel:0x1009a95f0'\\U200e-31:58'(59)]>\",\r\n    \"<NSLayoutConstraint:0x170097cf0 AVButton:0x100920ee0.right == UIView:0x174187c50.right - 15>\"\r\n)\r\n\r\nWill attempt to recover by breaking constraint \r\n<NSLayoutConstraint:0x17009bbc0 H:[UIView:0x174187c50]-(0)-|   (Names: '|':_UIBackdropContentView:0x174187ab0 )>\r\n\r\nMake a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.\r\nThe methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.\r\n2015-06-12 18:50:27.496 Eatglobe[282:10698] Unable to simultaneously satisfy constraints.\r\n\tProbably 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) \r\n(\r\n    \"<NSLayoutConstraint:0x170096620 H:|-(0)-[UIView:0x170186180]   (Names: '|':UIView:0x1741822f0 )>\",\r\n    \"<NSLayoutConstraint:0x170096670 H:[UIView:0x170186180]-(0)-|   (Names: '|':UIView:0x1741822f0 )>\",\r\n    \"<NSLayoutConstraint:0x170095d60 H:|-(0)-[UIView:0x1741822f0]   (Names: '|':UIView:0x170186320 )>\",\r\n    \"<NSLayoutConstraint:0x170095db0 H:[UIView:0x1741822f0]-(0)-|   (Names: '|':UIView:0x170186320 )>\",\r\n    \"<NSLayoutConstraint:0x170096a30 'UIView-Encapsulated-Layout-Width' H:[UIView:0x170186320(80)]>\",\r\n    \"<NSLayoutConstraint:0x17009c020 H:|-(0)-[_UIBackdropView:0x1009ab5d0]   (Names: '|':UIView:0x174187d20 )>\",\r\n    \"<NSLayoutConstraint:0x17009c070 H:[_UIBackdropView:0x1009ab5d0]-(0)-|   (Names: '|':UIView:0x174187d20 )>\",\r\n    \"<NSLayoutConstraint:0x17009be90 H:|-(0)-[UIView:0x174187d20]   (Names: '|':AVAlphaUpdatingView:0x174187430 )>\",\r\n    \"<NSLayoutConstraint:0x17009bee0 H:[UIView:0x174187d20]-(0)-|   (Names: '|':AVAlphaUpdatingView:0x174187430 )>\",\r\n    \"<NSAutoresizingMaskLayoutConstraint:0x1740978e0 h=-&- v=-&- _UIBackdropContentView:0x170186f50.width == _UIBackdropView:0x1009ab5d0.width>\",\r\n    \"<NSLayoutConstraint:0x174098330 H:|-(0)-[AVAlphaUpdatingView:0x174187430]   (Names: '|':UIView:0x170186180 )>\",\r\n    \"<NSLayoutConstraint:0x174098380 H:[AVAlphaUpdatingView:0x174187430]-(0)-|   (Names: '|':UIView:0x170186180 )>\",\r\n    \"<NSLayoutConstraint:0x170098010 H:|-(15)-[UIView:0x170186db0](LTR)   (Names: '|':_UIBackdropContentView:0x170186f50 )>\",\r\n    \"<NSLayoutConstraint:0x1700989c0 UIView:0x170187020.centerX == _UIBackdropContentView:0x170186f50.centerX>\",\r\n    \"<NSLayoutConstraint:0x170098c40 UIView:0x170186db0.right <= UIView:0x170187020.left - 55>\",\r\n    \"<NSLayoutConstraint:0x170098e20 H:|-(0)-[AVButton:0x1009a6980](LTR)   (Names: '|':UIView:0x170187020 )>\",\r\n    \"<NSLayoutConstraint:0x170098ec0 AVButton:0x1009a6b60.centerX == AVButton:0x1009a6980.right + 67>\",\r\n    \"<NSLayoutConstraint:0x170098f10 AVButton:0x1009a6b60.centerX == AVButton:0x1009abae0.left - 67>\",\r\n    \"<NSLayoutConstraint:0x170098fb0 AVButton:0x1009abae0.right == UIView:0x170187020.right>\"\r\n)\r\n\r\nWill attempt to recover by breaking constraint \r\n<NSLayoutConstraint:0x17009c070 H:[_UIBackdropView:0x1009ab5d0]-(0)-|   (Names: '|':UIView:0x174187d20 )>\r\n\r\nMake a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.\r\nThe methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.\r\n2015-06-12 18:50:27.500 Eatglobe[282:10698] Unable to simultaneously satisfy constraints.\r\n\tProbably 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) \r\n(\r\n    \"<NSLayoutConstraint:0x174090b30 UIView:0x1741860b0.centerY == AVExternalPlaybackIndicatorView:0x1741a5f60.centerY + 10>\",\r\n    \"<NSLayoutConstraint:0x1740909f0 V:[UIView:0x1741860b0]-(>=10)-|   (Names: '|':AVExternalPlaybackIndicatorView:0x1741a5f60 )>\",\r\n    \"<NSLayoutConstraint:0x174090cc0 V:|-(0)-[UIImageView:0x1741ebc00]   (Names: '|':UIView:0x1741860b0 )>\",\r\n    \"<NSLayoutConstraint:0x174090d10 V:[UIImageView:0x1741ebc00]-(20)-[UILabel:0x10099fed0]>\",\r\n    \"<NSLayoutConstraint:0x174090d60 V:[UILabel:0x10099fed0]-(0)-[UILabel:0x1009a0850]>\",\r\n    \"<NSLayoutConstraint:0x174090db0 V:[UILabel:0x1009a0850]-(0)-|   (Names: '|':UIView:0x1741860b0 )>\",\r\n    \"<NSLayoutConstraint:0x170096210 V:|-(0)-[AVExternalPlaybackIndicatorView:0x1741a5f60]   (Names: '|':UIView:0x1741822f0 )>\",\r\n    \"<NSLayoutConstraint:0x170096260 V:[AVExternalPlaybackIndicatorView:0x1741a5f60]-(0)-|   (Names: '|':UIView:0x1741822f0 )>\",\r\n    \"<NSLayoutConstraint:0x170096ad0 V:|-(0)-[UIView:0x1741822f0]   (Names: '|':UIView:0x170186320 )>\",\r\n    \"<NSLayoutConstraint:0x170096a80 V:[UIView:0x1741822f0]-(0)-|   (Names: '|':UIView:0x170186320 )>\",\r\n    \"<NSLayoutConstraint:0x1700969e0 'UIView-Encapsulated-Layout-Height' V:[UIView:0x170186320(50)]>\"\r\n)\r\n\r\nWill attempt to recover by breaking constraint \r\n<NSLayoutConstraint:0x174090d10 V:[UIImageView:0x1741ebc00]-(20)-[UILabel:0x10099fed0]>\r\n\r\nMake a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.\r\nThe methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.\r\n2015-06-12 18:50:27.962 Eatglobe[282:10698] Unable to simultaneously satisfy constraints.\r\n\tProbably 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) \r\n(\r\n    \"<NSLayoutConstraint:0x174090b30 UIView:0x1741860b0.centerY == AVExternalPlaybackIndicatorView:0x1741a5f60.centerY + 10>\",\r\n    \"<NSLayoutConstraint:0x1740909f0 V:[UIView:0x1741860b0]-(>=10)-|   (Names: '|':AVExternalPlaybackIndicatorView:0x1741a5f60 )>\",\r\n    \"<NSLayoutConstraint:0x174090cc0 V:|-(0)-[UIImageView:0x1741ebc00]   (Names: '|':UIView:0x1741860b0 )>\",\r\n    \"<NSLayoutConstraint:0x174090d10 V:[UIImageView:0x1741ebc00]-(20)-[UILabel:0x10099fed0]>\",\r\n    \"<NSLayoutConstraint:0x174090d60 V:[UILabel:0x10099fed0]-(0)-[UILabel:0x1009a0850]>\",\r\n    \"<NSLayoutConstraint:0x174090db0 V:[UILabel:0x1009a0850]-(0)-|   (Names: '|':UIView:0x1741860b0 )>\",\r\n    \"<NSLayoutConstraint:0x170096210 V:|-(0)-[AVExternalPlaybackIndicatorView:0x1741a5f60]   (Names: '|':UIView:0x1741822f0 )>\",\r\n    \"<NSLayoutConstraint:0x170096260 V:[AVExternalPlaybackIndicatorView:0x1741a5f60]-(0)-|   (Names: '|':UIView:0x1741822f0 )>\",\r\n    \"<NSLayoutConstraint:0x170097ac0 'UIView-Encapsulated-Layout-Height' V:[AVPlayerView:0x174185d70(50)]>\",\r\n    \"<NSLayoutConstraint:0x174092700 V:|-(0)-[UIView:0x1741822f0]   (Names: '|':AVPlayerView:0x174185d70 )>\",\r\n    \"<NSLayoutConstraint:0x1740926b0 V:[UIView:0x1741822f0]-(0)-|   (Names: '|':AVPlayerView:0x174185d70 )>\"\r\n)\r\n\r\nWill attempt to recover by breaking constraint \r\n<NSLayoutConstraint:0x174090d10 V:[UIImageView:0x1741ebc00]-(20)-[UILabel:0x10099fed0]>\r\n\r\nMake a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.\r\nThe methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.\r\n```\r\n\r\nAny ideas why? Are my constraints not correct, or?"}}