Skip to content

基于AVPlayer封装的轻量级播放器,可以播放本地网络视频,易于定制

Notifications You must be signed in to change notification settings

henusjj/SBPlayer

Repository files navigation

SBPlayer

####基于AVPlayer封装的轻量级播放器,可以播放本地网络视频,易于定制 #####SBPlayer结构简单,可以横屏竖屏,支持M3u8、mp4等格式视频本地播放或者网络播放,通过masonry约束,适配各种尺寸iPhone。 1 2 3


####使用方法: #####*导入#import "SBPlayer",使用如下,方便简单

{
    [super viewDidLoad];
    self.player=[[SBPlayer alloc]initWithUrl:[self url]];
    //设置视频标题
    [self.player setTitle:@"这是一个标题"];
    [self.view addSubview:self.player];
    [self.player mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.left.mas_equalTo(self.view);
        make.height.mas_equalTo(@250);
        make.center.mas_equalTo(self.view);
    }];
}
  • 邮件(956035125#qq.com, 把#换成@)
  • QQ: 956035125
  • github: github

About

基于AVPlayer封装的轻量级播放器,可以播放本地网络视频,易于定制

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published