CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

VideoLoopView 1.1.0

VideoLoopView 1.1.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Feb 2016
SPMSupports SPM

Maintained by Liau Jian Jie.



VideoLoopView

A simple UIView subclass that loops a video written in Swift, useful for videos on onboarding implementations. Start using with only two or three lines of code!

Installation

CocoaPods

pod 'VideoLoopView', '~> 1.1'

Usage

Example 1: Using Storyboards

Swift

self.videoView.videoUrl = NSBundle.mainBundle().URLForResource("samplevideo.mov", withExtension: nil)

Objective-C

self.videoView.videoUrl = [[NSBundle mainBundle] URLForResource:@"samplevideo.mov" withExtension:nil];

Example 2: Create with Code

Swift

let videoUrl = NSBundle.mainBundle().URLForResource("samplevideo.mov", withExtension: nil)
var videoView = VideoLoopView.init(videoUrl: videoUrl!)

Objective-C

NSURL *videoUrl = [[NSBundle mainBundle] URLForResource:@"samplevideo.mov" withExtension:nil];
VideoLoopView *videoView = [[VideoLoopView alloc] initWithVideoUrl:videoUrl];

Other properties

Author

Written by Liau Jian Jie.