Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 736 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 736 Bytes

VideoSliderView and VideoTrimmer

codebeat badge

Usage

// VideoSliderView
let videoSlider: VideoSliderProtocol = VideoSliderView(frame: view.frame, videoPath: "path_to_video_file")
videoSlider.showInView(view)

//
// some of your code here ...
//

// Video Trimming
VideoTrimmer.trimFile(videoPath, 
                        outputFilePath: videoOutputPath,
                        startTime: videoSlider.leftPosition,
                        durationTime: CMTimeSubtract(videoSlider.rightPosition, videoSlider.leftPosition)) { (success) in
                        }