Skip to content
프로젝트

svhawks/VideoThumbnailViewKit

GitHub에서 보기

소개

Video Thumb ScrollView

디자인 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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)

관련 프로젝트 살펴보기

불러오는 중…