AndreasVerhoeven / VideoTrimmerControl

A VideoTrimmer Control for iOS
MIT License
93 stars 15 forks source link

VideoTrimmerControl

A VideoTrimmer Control for iOS that supports trimming & scrubbing

This VideoTrimmer Control for iOS allows the user to define how a video should be trimmed by dragging the side handles. When the user is trimming, pausing for a brief moment zooms in on the timeline to allow for greater precision. The timeline shows thumbnails of the video frames, based on AVAsset. Besides trimming, the control also optionallu allows the user to scrub through the video by tapping on the timeline.

Screenshots

The control when not interacting:

VideoTrimmer Screenshot when not interacting

The control when the user trimmed the leading and trailing parts:

VideoTrimmer Screenshot when trimmed

The control when the user is trimming the leading part:

VideoTrimmer Screenshot when trimming the leading part

The control when the user has zoomed in on the timeline:

VideoTrimmer Screenshot when zoomed in on the timeline

Animated GIF of the Control in Action

Animated GIF of the control in action

Configuration

State Properties:

Gesture Recognizers

You can configure the following gesture recognizers to require failure of, for example, a UITableView's panGestureRecognizer:

Events: