iphone - Autorotating video played from HTML5 in UIWebView -


My app supports portrait orientation only, for some reason.
However, in some cases I need to display the video with a UIWebView (with the video tag) and it would be good that the user can see it in the picture or landscape.

The controller thus configured:

  - (BOOL) be Chahiaatorotettointrfesorianteshn: (Uaiantrfesorianteshn) Seintrfesorianteshn {return UIInterfaceOrientationIsPortrait (toInterfaceOrientation); }   

Result : Video is played only in image mode (okay enough is expected).

I tried:
- When a user starts a video - when the video stops, "to set it back to support all orientations Portrait"

  - is to be (BOOL) Chahiaatorotettointrfesorianteshn: (Uaiantifesorianteshn) Seintrfesorenteshn is {// AutorotationEnabled played a video when it is toggled on / off return Otoroteshn? Yes: UIInterfaceOrientationIsPortrait (toInterfaceOrientation); }   

results : Landscape mode is available (great!), But if the "while playing user scenario 'taps, you will see this visual landscape mode Once the player is dismissed (not too much)

Does anyone have an idea how to prevent controllers from appearing in the carribean mode? Players (personal pattern set by using no alternative Infrareoorianteshn UIDevice)

I have something very similar Have done

  - (BOOL) You should call your app when popping your controller. ShouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) Intrfesoriynteshn supported {// return orientation back so YES; }   

Parental Controls reject autorotate:

  - (bool) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation {// Return YES for supported orientations return (to InterfaceOrientation == UINFfaceAuthentication Portrait); }   

Create and
in UINavigationControllerDelegate assigned representatives, temporarily modify the UIView stacks controller pops or push :.

  - (minus) Navigation Controller: (UINavigationController *) Sun Hogashouwukantrolr: (UIViewController *) viewController animated: (BOOL) changed ads to view animated {// Force Picture autorotation force! If ([UIDevice currentDevice] .orientation = UIInterfaceOrientationPortrait!) {If ([ViewController isKindOfClass: [MovieWebViewController class]]!) {UIWindow * window = [[UIApplication sharedApplication] keyWindow]; UIView * View = [window.subviews ObjectAntIndex: 0]; [ViewFromSuperview]; [Insert windowviewviewview: visible: index: 0]; }}   

This is a dirty hack, but it works.

Comments