sho

ShortMediaCache

A cache for short video while playing

Showing:

Popularity

Downloads/wk

0

GitHub Stars

100

Maintenance

Last Commit

3yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Categories

Readme

ShortMediaCache

A Cache Library based on AVPLayer for short video on ios, you can creat AVPlayerItem with it directly.

中文介绍

Main features

  • 1.Designed for short video, easy to access, does not encroach on business
  • 2.cache video while playing, Play directly after caching
  • 3.Support preloading, Play the next video in one second
  • 4.Automatic cache management

Installation

cocoapods

pod 'ShortMediaCache'

Usage

Normal

#import "ShortMediaResourceLoader.h"
ShortMediaResourceLoader _resourceLoader = [ShortMediaResourceLoader new];
AVPlayerItem _playerItem = [_resourceLoader playItemWithUrl:videoUrl]; 
AVPlayer _player = [AVPlayer playerWithPlayerItem:_playerItem];

tips: should hold the _resourceLoader object.

Preloading

[[ShortMediaManager shareManager] resetPreloadingWithMediaUrls:preloadUrls];

tips:'preloadUrls' is an array with video urls

More detail

The source code

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial