Latest 1.1.0
Homepage https://github.com/liaujianjie/VideoLoopView
License MIT
Platforms ios 9.0
Authors

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

Carthage

github "liaujianjie/VideoLoopView" ~> 1.1

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.

Latest podspec

{
    "name": "VideoLoopView",
    "version": "1.1.0",
    "summary": "a simple UIView subclass that continuously loops a video",
    "description": "A simple UIView subclass that loops a video written in Swift, useful for videos on onboarding implementations. Start using with only one or two lines of code!",
    "homepage": "https://github.com/liaujianjie/VideoLoopView",
    "license": {
        "type": "MIT",
        "file": "license.md"
    },
    "authors": {
        "Liau Jian Jie": "[email protected]"
    },
    "social_media_url": "https://twitter.com/jianjie_",
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/liaujianjie/VideoLoopView.git",
        "tag": "1.1.0"
    },
    "source_files": "VideoLoopView",
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This