Code Monkey home page Code Monkey logo

jpvideoplayer's Introduction

This library provides an video player with cache support in UITableView.

Features

  • Cache video data at playing
  • Handle play or stop video in main thread
  • Excellent performance!
  • Always play the video of the UITableViewCell in screen center when scrolling
  • A guarantee that the same URL won't be downloaded several times
  • A guarantee that main thread will never be blocked

Requirements

  • iOS 8.0 or later
  • Xcode 7.3 or later

Getting Started

Communication

  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

Installation

How To Use

Objective-C:

#import <JPVideoPlayer/JPVideoPlayer.h>
...
JPVideoPlayer *player = [JPVideoPlayer sharedInstance];
[player playWithUrl:[NSURL URLWithString:videoCell.videoPath] showView:videoCell.containerView];

Installation

There are two ways to use JPVideoPlayer in your project:

  • using CocoaPods
  • by cloning the project into your repository

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. See the Get Started section for more details.

Podfile

platform :ios, '8.0'
pod 'JPVideoPlayer', '~> 1.0.0'

Licenses

All source code is licensed under the MIT License.

如果你在天朝

特性

  • 视频播放边下边播
  • 主线程处理切换视频
  • 不阻塞线程,不卡顿,滑动如丝顺滑
  • 当滚屏时采取总是播放处在屏幕中心的那个cell的视频的策略
  • 保证同一个URL的视频不会重复下载
  • 保证不会阻塞线程

组件要求

  • iOS 8.0 +
  • Xcode 7.3 +

如何使用

联系

  • 如果你发现了bug, 请帮我提交issue
  • 如果你有好的建议, 请帮我提交issue
  • 如果你想贡献代码, 请提交请求

如何使用

Objective-C:

#import <JPVideoPlayer/JPVideoPlayer.h>
...
JPVideoPlayer *player = [JPVideoPlayer sharedInstance];
[player playWithUrl:[NSURL URLWithString:videoCell.videoPath] showView:videoCell.containerView];

如何安装

两种选择把框架集成到你的项目:

  • 使用 CocoaPods
  • 下载我的demo, 把'JPVideoPlayer'文件夹拽到你的项目中

使用 CocoaPods 安装

Podfile

platform :ios, '8.0'
pod 'JPVideoPlayer', '~> 1.0.0'

证书

MIT License

如果喜欢我的文章,请帮忙点个👍。

jpvideoplayer's People

Contributors

dito010 avatar smhjsw 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.