Skip to content

irshadpc/AppendableVideoMaker

Repository files navigation

Summary

AppendableVideoMaker is a custom UIImagePickerController which offers Vine-like tap-and-hold stop-start video recording functionality.

How to use it

  1. Drag and drop `AppendableVideoMaker.m` and `AppendableVideoMaker.h` into your project
  2. Add the import statement:
``` #import "AppendableVideoMaker.h" ```
  1. Initialize AppendableVideoMaker and check if the device can record videos. If so, setup success/fail observers, then display the recorder:
``` AppendableVideoMaker videoMaker = [[AppendableVideoMaker alloc] init]; if ([videoMaker deviceCanRecordVideos]) { [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(videoMergeCompleteHandler:) name:@"AppendableVideoMaker_VideoMergeComplete" object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(videoMergeFailedHandler:) name:@"AppendableVideoMaker_VideoMergeFailed" object:nil]; [self presentViewController:videoMaker animated:YES completion:^{}]; } ```
  1. Videos are saved to the Documents directory. When you have finished creating a video, check if the video is ready and get the URL path to it.
``` if ([videoMaker videoIsReady]) { NSURL *videoURL = [videoMaker getVideoURL]; // do something with the video ... } ```

Features

  • Tap and hold video recording
  • Video merging

To do

  • Merge already recorded videos in background whilst recording others
  • Create a callback for when video is ready or fails to merge properly
  • Display a label to show current length of video
  • Add the ability to set a maximum video length
  • Display progress bar for maximum video length
  • Add a button to restart video from scratch
  • Tidy up interface to look nicer

Contributors

Aleks Beer

githalytics.com alpha

About

AppendableVideoMaker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published