Skip to content
Projetos

andrei200287/SAVideoRangeSlider

Ver no GitHub

Sobre

Controle de corte de vídeo para iOS

Design e mídia

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
0
em 15 dias
0
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

SAVideoRangeSlider

======

iOS UI Control Providing An iMovie Style Video Trim Control.

Screens

SAVideoRangeSlider screen SAVideoRangeSlider screen SAVideoRangeSlider screen SAVideoRangeSlider screen SAVideoRangeSlider screen

SAVideoRangeSlider screen
SAVideoRangeSlider screen

SAVideoRangeSlider screen

SAVideoRangeSlider screen

Youtube video

SAVideoRangeSlider youtube

Requirements

  • iOS 5+,
  • ARC.

Installation

  1. Drop SAVideoRangeSlider files into your project.
  2. Add QuartzCore.framework, AVFoundation.framework, CoreMedia.framework to your project.
  3. 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.

Explore projetos relacionados

Carregando…