CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | SwiftSwift |
| License | MIT |
| ReleasedLast Release | Nov 2017 |
| SwiftSwift Version | 4 |
| SPMSupports SPM | ✗ |
Maintained by Chris Jimenez.
A View Controller that shows a video in the background, like Spotify!
Get VideoBackgroundViewController on CocoaPods, just add pod 'VideoBackgroundViewController' to your Podfile and then run pod install.
Usage is pretty easy, just inherid your ViewController from VideoBackgroundViewController and set your initial video URL like:
import VideoBackgroundViewController
override func viewDidLoad() {
super.viewDidLoad()
let url = NSURL.fileURLWithPath(NSBundle.mainBundle().pathForResource("spotifyVideo", ofType: "mp4")!)
self.videoURL = url
}
You can also customize the default values like:
import VideoBackgroundViewController
override func viewDidLoad() {
super.viewDidLoad()
let url = NSURL.fileURLWithPath(NSBundle.mainBundle().pathForResource("spotifyVideo", ofType: "mp4")!)
self.videoURL = url
self.videoFrame = view.frame
self.videoShouldLoop = true
self.alpha = 0.5
self.playSound = true
self.videoScalingMode = .ResizeAspectFill
}
Chris Jimenez - http://chrisjimenez.net, @chrisjimeneznat
Some ideas where taken from https://github.com/allenwong/30DaysofSwift
If you want to buy me a beer, you can donate to my coin addresses below:
1BeGBew4CBdLgUSmvoyiU1LrM99GpkXgkj
0xa59a3793E3Cb5f3B1AdE6887783D225EDf67192d
Ld6FB3Tqjf6B8iz9Gn9sMr7BnowAjSUXaV
VideoBackgroundViewController is released under the MIT license. See LICENSE for details.