Giter Club home page Giter Club logo

qfavplayer's Introduction

QFAVPlayer

1.添加变下变播功能 2.最简单的必不可少的逻辑代码 3.功能分类 123

一、使用方法

- (void)viewDidLoad {
[super viewDidLoad];
[self configAVPlayerWithURL:@"http://lavaweb-10015286.video.myqcloud.com/hong-song-mei-gui-mu-2.mp4"];
}
-(id)qf_playerView{
if (_qf_playerView == nil) {
_qf_playerView = [[QFAVPlayerView alloc]initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height)];
[self.view addSubview:_qf_playerView];
}
return _qf_playerView;
}
-(void)configAVPlayerWithURL:(NSString *)url{
NSString * cacheFilePath = [QFFileHandle cacheFileExistsWithURL:url];
if (cacheFilePath){
[self.qf_playerView qf_loadLocalWithURL:cacheFilePath];
}else{
[self.qf_playerView qf_loadNetWithURL:url];
}
}

二、部分截图

https://github.com/NotOnlyThat/QFAVPlayer <测试>

<测试>

三、运行结果

qfavplayer's People

Contributors

tliens avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.