/AMSloMoRangeSlider

iOS Slow Motion Video Range Slider in Swift

Primary LanguageSwiftMIT LicenseMIT

AMSloMoRangeSlider

iOS Slow Motion Video Range Slider in Swift

amslomorangeslider

Code

let sloMoRangeSlider = AMSloMoRangeSlider(frame: CGRectMake(16, 16, 300, 20))
let url = NSBundle.mainBundle().URLForResource("video", withExtension: "mp4")
sloMoRangeSlider.videoAsset = AVAsset(URL: url!)
sloMoRangeSlider.delegate = self

Delegate Methods

func slomoRangeSliderLowerThumbValueChanged() {
    print(self.sloMoRangeSlider.startTime.seconds)
}

func slomoRangeSliderUpperThumbValueChanged() {
    print(self.sloMoRangeSlider.stopTime.seconds)
}

Installation

CocoaPods

You can install the latest release version of CocoaPods with the following command:

$ gem install cocoapods

CocoaPods v0.36 or later required

Simply add the following line to your Podfile:

platform :ios, '8.0' 
use_frameworks!

pod 'AMSloMoRangeSlider', :git => 'https://github.com/iAmrMohamed/AMSloMoRangeSlider.git' 

Then, run the following command:

$ pod install

Carthage

Carthage is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate AMSloMoRangeSlider into your Xcode project using Carthage, specify it in your Cartfile:

github "iAmrMohamed/AMSloMoRangeSlider"

Requirements

  • iOS 8.0+
  • Xcode 7.3+

License

AMSloMoRangeSlider is released under the MIT license. See LICENSE for details.