Latest 0.4
Homepage https://github.com/vitoziv/VIMediaCache
License MIT
Platforms ios 9.0, requires ARC
Frameworks MobileCoreServices, AVFoundation
Authors

中文说明

Cache media file while play media using AVPlayerr.

VIMediaCache use AVAssetResourceLoader to control AVPlayer download media data.

CocoaPods

pod 'VIMediaCache'

Usage

NSURL *url = [NSURL URLWithString:@"https://mvvideo5.meitudata.com/571090934cea5517.mp4"];

VIResourceLoaderManager *resourceLoaderManager = [VIResourceLoaderManager new];
self.resourceLoaderManager = resourceLoaderManager;

AVPlayerItem *playerItem = [resourceLoaderManager playerItemWithURL:url];
AVPlayer *player = [AVPlayer playerWithPlayerItem:playerItem];

Contact

[email protected]

License

MIT

Latest podspec

{
    "name": "VIMediaCache",
    "version": "0.4",
    "license": "MIT",
    "summary": "VIMediaCache is a tool to cache media file while play media using AVPlayer",
    "homepage": "https://github.com/vitoziv/VIMediaCache",
    "authors": {
        "Vito": "[email protected]"
    },
    "source": {
        "git": "https://github.com/vitoziv/VIMediaCache.git",
        "tag": "0.4"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": [
        "VIMediaCache/*.{h,m}",
        "VIMediaCache/**/*.{h,m}"
    ],
    "frameworks": [
        "MobileCoreServices",
        "AVFoundation"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This