美文网首页
视频播放

视频播放

作者: 八百标兵boomboom | 来源:发表于2018-10-25 18:42 被阅读0次

    import "ViewController.h"

    import "ZSPlayerView.h"

    @interface ViewController ()

    @property(nonatomic,strong)ZSPlayerView *player;

    @end

    @implementation ViewController

    • (void)viewDidLoad {
      [super viewDidLoad];
    UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 50, self.view.frame.size.width, 200)];
    

    // view.backgroundColor = [UIColor redColor];
    [self.view addSubview:view];

    //MARK:视频播放
    NSString *str = @"http://123.126.40.109:7003/asmr/upload/1518430953135.mp4";
    
    self.player = [[ZSPlayerView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 200) delegate:self url:str];
    [self.view addSubview:self.player];
    

    }

    相关文章

      网友评论

          本文标题:视频播放

          本文链接:https://www.haomeiwen.com/subject/rwbctqtx.html