======
iOS UI Control Providing An iMovie Style Video Trim Control.
- iOS 5+,
- ARC.
- 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.
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];
- (void)videoRange:(SAVideoRangeSlider *)videoRange didChangeLeftPosition:(CGFloat)leftPosition rightPosition:(CGFloat)rightPosition;
- (void)videoRange:(SAVideoRangeSlider *)videoRange didGestureStateEndedLeftPosition:(CGFloat)leftPosition rightPosition:(CGFloat)rightPosition;
Use PaintCode application to make left/right slider and resizible bubble (see examples in the PaintCodeFiles
directory).
Andrei Solovjev
SAVideoRangeSlider is available under the MIT license. See the LICENSE file for more info.