Coder Social home page Coder Social logo

localvideo's Introduction

LocalVideo

基于photoKit的扫描本地视频分类 扫描本地视频,我抽取出了三个分类和一个需要获取视频资源属性的枚举值

需要填的枚举值
typedef NS_ENUM(NSInteger , TFVideoAssetType){
    
    TFVideoAssetTypeVideoImageSource, //视频缩略图
    TFVideoAssetTypeVideoTimeLength,  //视频时长
    TFVideoAssetTypeVideoName,        //视频名称
};

最主要的三个方法

/**
 *  获取相册的授权
 *  @return YES/NO
 */
- (BOOL)authStatus;
/**
 *  视频的搜索结果
 *
 *  @return 返回的是一个数组集合,里面是PHAsset
 */
- (PHFetchResult *)assetsFetchResults;
/**
 *  获取所需要的Video属性
 *
 *  @param type TFVideoAssetType
 *
 *  @return 资源数组
 */
- (NSArray *)getVideoRelatedAttributesArray:(TFVideoAssetType)type;

如何播放本地视频请参考demo

localvideo's People

Stargazers

 avatar  avatar LWide avatar rain1988 avatar 相对论 avatar depthlove avatar  avatar

Watchers

 avatar

Forkers

lynnlin2017

localvideo's Issues

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.