https://github.com/svhawks/VideoThumbnailViewKit
Video Thumb ScrollView
https://github.com/svhawks/VideoThumbnailViewKit
Last synced: 6 months ago
JSON representation
Video Thumb ScrollView
- Host: GitHub
- URL: https://github.com/svhawks/VideoThumbnailViewKit
- Owner: svhawks
- License: mit
- Created: 2015-09-29T20:02:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-11T12:37:56.000Z (over 8 years ago)
- Last Synced: 2024-04-25T03:23:51.928Z (about 1 year ago)
- Language: Swift
- Size: 4.24 MB
- Stars: 359
- Watchers: 22
- Forks: 32
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# VideoThumbnailViewKit - Video Thumbnail View
[](https://travis-ci.org/movielala/VideoThumbnailViewKit)

[](https://github.com/mobileplayer/mobileplayer-ios)
[](https://waffle.io/movielala/VideoThumbnailViewKit)
[](http://stackoverflow.com/questions/ask?tags=VideoThumbnailViewKit+ios+swift)
[](https://gitter.im/movielala/VideoThumbnailViewKit)
[](https://img.shields.io/cocoapods/v/VideoThumbnailViewKit.svg)
##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
```swift
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)
```