GithubHelp home page GithubHelp logo

rocry / savideorangeslider Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrei200287/savideorangeslider

0.0 3.0 0.0 6.88 MB

iOS Video trim control

Home Page: https://github.com/andrei200287/SAVideoRangeSlider

License: MIT License

savideorangeslider's Introduction

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.

savideorangeslider's People

Contributors

andrei200287 avatar

Watchers

James Cloos avatar RoCry avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.