一行代码实现视频播放器,加载网络视频,全屏,快进,实现基本视频播放,后面会不断更新,加入调音量,光线,缓存等功能
LTPlayerView *playerView = [[LTPlayerView alloc]initWithFrame:CGRectMake(0, 20, Video_W, Video_H) videoURL:@"https://183.63.170.167:9000/lms_data/lms/storage/media/fms/ruheyuxiashugoutong_57a2cbfdb8cc9215161964jchce9eitr.mp4"];
playerView.delegate = self;
[self.view addSubview:playerView];
- 加载结束回调
- (void)loadComplete:(LTPlayerView *)playerView;
- 播放结束回调
- (void)playComplete:(LTPlayerView *)playerView;
- 暂停播放
- (void)stopPlayVideo:(LTPlayerView *)playerView;
- 视频放大或缩小回调
- (void)zoomInAndZoomOut:(LTPlayerView *)playerView zoomType:(LTZoomInOrZoomOutType)zoomType;
- 点击返回按钮回调
- (void)clickReturnButton:(LTPlayerView *)playerView
如果在使用的过程有什么问题,或有想要增加的功能,你可以这样联系我 ↓:
- Email:[email protected]
- QQ:740712231