Code Monkey home page Code Monkey logo

ltplayer's Introduction

LTPlayer

一行代码实现视频播放器,加载网络视频,全屏,快进,实现基本视频播放,后面会不断更新,加入调音量,光线,缓存等功能

演示

image

使用方法

初始化传入视频地址,然后设置代理

LTPlayerView *playerView = [[LTPlayerView alloc]initWithFrame:CGRectMake(0, 20, Video_W, Video_H) videoURL:@"http://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

关于

如果在使用的过程有什么问题,或有想要增加的功能,你可以这样联系我 ↓:

ltplayer's People

Contributors

leecoding avatar

Watchers

 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.