SAVideoRangeSlider
======
iOS UI Control Providing An iMovie Style Video Trim Control.
Screens
Youtube video
Requirements
- iOS 5+,
- ARC.
Installation
- Drop
SAVideoRangeSlider
files into your project. - Add
QuartzCore.framework
,AVFoundation.framework
,CoreMedia.framework
to your project. - Add
#import "SAVideoRangeSlider.h"
to use it in a class.
Example Usage
SAVideoRangeSlider *mySAVideoRangeSlider = [[SAVideoRangeSlider alloc] initWithFrame:CGRectMake(10, 200, self.view.frame.size.width-20, 70) videoUrl:videoFileUrl ];
[mySAVideoRangeSlider setPopoverBubbleSize:200 height:100];
mySAVideoRangeSlider.delegate = self;
mySAVideoRangeSlider.minGap = 10; // optional, seconds
mySAVideoRangeSlider.maxGap = 30; // optional, seconds
[self.view addSubview:mySAVideoRangeSlider];
Protocols
- (void)videoRange:(SAVideoRangeSlider *)videoRange didChangeLeftPosition:(CGFloat)leftPosition rightPosition:(CGFloat)rightPosition;
- (void)videoRange:(SAVideoRangeSlider *)videoRange didGestureStateEndedLeftPosition:(CGFloat)leftPosition rightPosition:(CGFloat)rightPosition;
Customization
Use PaintCode application to make left/right slider and resizible bubble (see examples in the PaintCodeFiles
directory).
Contact
Andrei Solovjev
License
SAVideoRangeSlider is available under the MIT license. See the LICENSE file for more info.