Skip to content

Commit

Permalink
现在可以设置直接全屏播放
Browse files Browse the repository at this point in the history
  • Loading branch information
changsanjiang committed Feb 23, 2018
1 parent 8e97b9f commit 03f6171
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Binary file not shown.
4 changes: 4 additions & 0 deletions Project/Project/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ - (void)viewDidLoad {

_videoPlayer.placeholder = [UIImage imageNamed:@"placeholder"];

_videoPlayer.assetURL = [[NSBundle mainBundle] URLForResource:@"sample" withExtension:@"mp4"];

// 设置全屏播放
_videoPlayer.rotateOrientation = SJRotateViewOrientation_LandscapeLeft;

// 设置支持的旋转方向
_videoPlayer.supportedRotateViewOrientation = SJSupportedRotateViewOrientation_LandscapeLeft | SJSupportedRotateViewOrientation_LandscapeRight;

// Do any additional setup after loading the view, typically from a nib.
Expand Down

0 comments on commit 03f6171

Please sign in to comment.