iOS Slow Motion Video Range Slider in Swift
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
func slomoRangeSliderLowerThumbValueChanged() {
print(self.sloMoRangeSlider.startTime.seconds)
}
func slomoRangeSliderUpperThumbValueChanged() {
print(self.sloMoRangeSlider.stopTime.seconds)
}
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 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"
- iOS 8.0+
- Xcode 7.3+
AMSloMoRangeSlider is released under the MIT license. See LICENSE for details.