Skip to content
プロジェクト

svhawks/VideoThumbnailViewKit

GitHubで見る

概要

Video Thumb ScrollView

デザイン・メディア

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

VideoThumbnailViewKit - Video Thumbnail View

Build Status License Dependencies Ready StackOverflow Join the chat at https://gitter.im/mobileplayer/mobileplayer-ios CocoaPods

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 "VideoThumbViewKit"

Then, run the following command:

$ pod install

##Usage

let videoURL = NSURL.fileURLWithPath(NSBundle.mainBundle().pathForResource("Video", ofType: "mp4")!)!
let rect = CGRect(x: 0.0, y: 70.0, width: self.view.frame.size.width, height: 100.0)
var trimView = VideoThumbView(frame: rect, videoURL: videoURL, thumbImageWidth: 100)
trimView.backgroundColor = UIColor.blackColor()
view.addSubview(trimView)

関連プロジェクトを探す

読み込み中…