Skip to content

A video player that support both local and network resource.

License

Notifications You must be signed in to change notification settings

lewis180777/SSVideoPlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSVideoPlayer

Features

  • Support both local and remote video resource.
  • Adjust the volume. (Not support simulator)
  • Show buffer progress and play progress.
  • Set play progress manually.
  • Switch play list.
  • Switch display fill mode.

Requirements

  • iOS 6.0 or higher

Usage

NSMutableArray *videoList = [NSMutableArray array];
SSVideoModel *model1 = [[SSVideoModel alloc]init];
model1.name = @"video1";
model1.path = @"https://demo.cn/video1.mp4";
[videoList addObject:model1];
SSVideoModel *model2 = [[SSVideoModel alloc]init];
model2.name = @"video2";
model2.path = [[NSBundle mainBundle]pathForResource:@"video2" ofType:@"mp4"];
[videoList addObject:model2];
SSVideoPlayController *playController = [[SSVideoPlayController alloc]initWithVideoList:videoList];
SSVideoPlayContainer *playContainer = [[SSVideoPlayContainer alloc]initWithRootViewController:playController];
[self presentViewController:playContainer animated:NO completion:nil];

You can also play in your own custom view. See SSVideoPlayer.h for more information.

License

The project is available under the MIT license.

About

A video player that support both local and network resource.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published