1.播放页面设置横屏
- (BOOL)shouldAutorotate
{
return YES;
}
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskLandscapeRight|UIInterfaceOrientationMaskLandscapeLeft;
}
2.在屏上调节亮度
[lightSlider setSliderProgress:[[UIScreen mainScreen] brightness]];
3.在屏上调节音量
volumeController = [MPMusicPlayerController applicationMusicPlayer];
[voiceSlider setSliderProgress:volumeController.volume];
4.设置vitamio 屏幕尺寸:拉伸……
[self.player setVideoFillMode:VMVideoFillModeFit];// 拉伸
其他typedef enum emVMVideoFillMode {
VMVideoFillModeUnknown, /// Not use.
VMVideoFillModeFit, /// Fit to playback view(carrier view).
VMVideoFillMode100, /// Use the video original size.
VMVideoFillModeCrop, /// Crop video picture to fill with playback view(carrier view).
VMVideoFillModeStretch, /// Stretch video picture to fill with playback view(carrier view).
} emVMVideoFillMode;
5 .隐藏状态栏
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide];