Latest 1.0.9
Homepage https://github.com/toygar/VideoSplash
License MIT
Platforms ios 8.0, tvos 9.0, requires ARC
Authors

Build Status Gitter
Gitter
CocoaPods

VideoSplashKit – Video based UIViewController

alt tag

Introduction

Requires iOS 8 or later and Xcode 6.1+
Swift support uses dynamic frameworks and is therefore only supported on iOS > 8.

Installation

To install via CocoaPods add this line to your Podfile.

use_frameworks!

and

pod 'VideoSplashKit'

Then, run the following command:

$ pod install

Usage

import VideoSplashKit

class ViewController: VideoSplashViewController {

  override func viewDidLoad() {
    super.viewDidLoad()
    let url = NSURL.fileURLWithPath(NSBundle.mainBundle().pathForResource("test", ofType: "mp4")!)
    self.videoFrame = view.frame
    self.fillMode = .ResizeAspectFill
    self.alwaysRepeat = true
    self.sound = true
    self.startTime = 12.0
    self.duration = 4.0
    self.alpha = 0.7
    self.backgroundColor = UIColor.blackColor()
    self.contentURL = url
    self.restartForeground = true
  }
}

Latest podspec

{
    "name": "VideoSplash",
    "version": "1.0.9",
    "summary": "Video based UIViewController",
    "homepage": "https://github.com/toygar/VideoSplash",
    "license": "MIT",
    "authors": {
        "Toygar Du00fcndaralp": "[email protected]"
    },
    "social_media_url": "https://twitter.com/ToygarDndaralp",
    "source": {
        "git": "https://github.com/toygar/VideoSplash.git",
        "tag": "1.0.9"
    },
    "platforms": {
        "ios": "8.0",
        "tvos": "9.0"
    },
    "requires_arc": true,
    "source_files": "VideoSplash/Source/*.swift"
}

Pin It on Pinterest

Share This