SPAsyncVideoView
SPAsyncVideoView copied to clipboard
Smooth asynchronous video view. Perfect for autoplay & loop videos/GIFs in UITableView/UICollectionView.
SPAsyncVideoView
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Demo
Requirements
- iOS 8.0 or higher
Installation
SPAsyncVideoView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SPAsyncVideoView"
Usage Example
NSURL *url = [[NSBundle mainBundle] URLForResource:@"example" withExtension:@"mp4"];
SPAsyncVideoAsset *asset = [[SPAsyncVideoAsset alloc] initWithURL:url];
SPAsyncVideoView *view = [SPAsyncVideoView new];
view.asset = asset;
Current limitations
- No audio.
- No controls.
- Working only with local videos.
Author
Pimenov Sergey, [email protected]
License
SPAsyncVideoView is available under the MIT license. See the LICENSE file for more info.