https://github.com/movielala/VideoSplashKit
VideoSplashKit - UIViewController library for creating easy intro pages with background videos
https://github.com/movielala/VideoSplashKit
Last synced: 3 months ago
JSON representation
VideoSplashKit - UIViewController library for creating easy intro pages with background videos
- Host: GitHub
- URL: https://github.com/movielala/VideoSplashKit
- Owner: sahin
- License: mit
- Created: 2015-08-05T00:29:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-11-17T14:49:05.000Z (over 5 years ago)
- Last Synced: 2024-10-30T01:38:08.578Z (4 months ago)
- Language: Swift
- Homepage:
- Size: 4.34 MB
- Stars: 1,217
- Watchers: 52
- Forks: 137
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cocoa - VideoSplashKit
README
[](https://travis-ci.org/movielala/VideoSplashKit) 
[](https://gitter.im/movielala/VideoSplashKit?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[](https://img.shields.io/cocoapods/v/VideoSplashKit.svg)# VideoSplashKit - Video based UIViewController

## 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'
```
or if you are using Swift4```
pod 'VideoSplashKit', :git => 'https://github.com/svtek/VideoSplashKit/VideoSplashKit.git', :branch => 'swift4'
```Then, run the following command:
```$ pod install```
## Usage
```swift
import VideoSplashKitclass 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
}
}
```## Authors
| [](http://okaris.com) | [Omer Karisman](http://okaris.com)
Lead UI/UX @ [MojiLaLa](http://mojilala.com)
[![Twitter][1.1]][1] [![Dribble][2.1]][2] [![Github][3.1]][3]| [](https://twitter.com/sahinboydas) | [Sahin Boydas](https://twitter.com/sahinboydas)
Co-Founder @ [MojiLaLa](http://mojilala.com)
[![LinkedIn][4.1]][4]|
| - | :- | - | :- |[1.1]: http://i.imgur.com/wWzX9uB.png (twitter icon without padding)
[2.1]: http://i.imgur.com/Vvy3Kru.png (dribbble icon without padding)
[3.1]: http://i.imgur.com/9I6NRUm.png (github icon without padding)
[4.1]: https://www.kingsfund.org.uk/themes/custom/kingsfund/dist/img/svg/sprite-icon-linkedin.svg (linkedin icon)[1]: http://www.twitter.com/okarisman
[2]: http://dribbble.com/okaris
[3]: http://www.github.com/okaris
[4]: https://www.linkedin.com/in/sahinboydas