VideoSplashKit 1.2.1

VideoSplashKit 1.2.1

测试已测试
语言语言 SwiftSwift
许可 MIT
发布最新发布2017年10月
SwiftSwift版本3.0
SPM支持SPM

Cem OlcayOmer Karisman维护。





VideoSplashKit - 基于视频的UIViewController

alt tag

简介

需要iOS 8或更高版本和Xcode 6.1或更高版本

Swift支持使用动态框架,因此仅支持iOS > 8。

安装

要使用CocoaPods安装,请将此行添加到您的Podfile中。

use_frameworks!

然后

pod 'VideoSplashKit'

然后,运行以下命令

$ pod install

用法

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
  }
}

作者

Omer Karisman

UI/UX负责人 @ MojiLaLa
Twitter Dribble Github
Sahin Boydas

联合创始人 @ MojiLaLa
LinkedIn