Recently used video playback function: (Vitamio, note: In Build Setting inside the other Link Flag added-all_load)
IOS 8 screen Rotation comparison pit, use the following code to force rotation
-(BOOL) shouldautorotatetointerfaceorientation: (uiinterfaceorientation) interfaceorientation{return(interfaceorientation = = Uiinterfaceorientationlandscapeleft | | interfaceorientation = =uiinterfaceorientationlandscaperight);}-(BOOL) shouldautorotate{returnYES;}-(Nsuinteger) supportedinterfaceorientations{returnUiinterfaceorientationmaskall;}
Force Switch- (void) switchtolandspance{[[Uidevice Currentdevice] Setvalue:[nsnumber Numberwithinteger: Uideviceorientationportrait] Forkey:@"Orientation"];//this is to prevent manually first put the device as a horizontal screen, resulting in the following statement invalid.[[Uidevice Currentdevice] Setvalue:[nsnumber Numberwithinteger:uideviceorientationlandscapeleft] ForKey:@"Orientation"];}
Note: You need the project to support horizontal screen rotation (Device Orientation in Project Setting)
IOS 8 Force Horizontal screen