Latest 1.0.0
Homepage https://github.com/iAmrMohamed/AMVideoRangeSlider
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

iOS Video Range Slider in Swift

amvideorangeslider

Code

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

Delegate Methods

func rangeSliderLowerThumbValueChanged() {
    print(self.videoRangeSlider.startTime.seconds)
}

func rangeSliderMiddleThumbValueChanged() {
    print(self.videoRangeSlider.currentTime.seconds)
}

func rangeSliderUpperThumbValueChanged() {
    print(self.videoRangeSlider.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 'AMVideoRangeSlider', :git => 'https://github.com/iAmrMohamed/AMVideoRangeSlider.git' 

Then, run the following command:

$ pod install

Requirements

  • iOS 8.0+
  • Xcode 7.3+

License

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

Latest podspec

{
    "name": "AMVideoRangeSlider",
    "version": "1.0.0",
    "summary": "iOS Video Range Slider in Swift",
    "homepage": "https://github.com/iAmrMohamed/AMVideoRangeSlider",
    "license": "MIT",
    "authors": {
        "Amr Mohamed": "[email protected]"
    },
    "social_media_url": "https://twitter.com/iAmrMohamed",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/iAmrMohamed/AMVideoRangeSlider.git",
        "tag": "1.0.0"
    },
    "source_files": "AMVideoRangeSlider/*.swift",
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This