Latest 0.1.2
Homepage https://github.com/yiplee/YPAVAssetResourceLoader
License MIT
Platforms ios 8.0
Frameworks AVFoundation
Authors

CI Status
Version
License
Platform

YPAVAssetResourceLoader A lightweight AVAssetResourceLoaderDelegate implementation for short streaming media.
It will cache all receiving data when playing and reuse the data next time.

  • [x] cache media data
  • [ ] seek support (todo)

Requirements

Xcode 9 & iOS 8

Installation

YPAVAssetResourceLoader is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'YPAVAssetResourceLoader'

Usage

#import <YPAVAssetResourceLoader/YPAVPlayerResourceLoader.h>

NSURL *url = [NSURL URLWithString:@"http://www.yiplee.com/example.mp4"];
AVAsset *asset = [AVURLAsset assetWithYPResourceURL:url];
AVPlayerItem *playerItem = [AVPlayerItem playerItemWithAsset:asset];

An YPAVPlayerResourceLoader instance is not designed to power mutiple asset URLs at the same time.

Always create new YPAVPlayerResourceLoader when needed.

License

YPAVAssetResourceLoader is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "YPAVAssetResourceLoader",
    "version": "0.1.2",
    "summary": "A lightweight AVAssetResourceLoaderDelegate implementation for short streaming media.",
    "description": "A lightweight AVAssetResourceLoaderDelegate implementation for short streaming media.nCache dowloaded file and reuse automatically!",
    "homepage": "https://github.com/yiplee/YPAVAssetResourceLoader",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "yiplee": "[email protected]"
    },
    "source": {
        "git": "https://github.com/yiplee/YPAVAssetResourceLoader.git",
        "tag": "0.1.2"
    },
    "social_media_url": "https://twitter.com/yipleeyin",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "YPAVAssetResourceLoader/Classes/**/*",
    "frameworks": "AVFoundation"
}

Pin It on Pinterest

Share This