Skip to content

PandaraWen/SBVideoCaptureDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SBVideoCaptureDemo


A custom UI video recording demo with AVFoundation.framework, recording multiple videos and finally merge them into a square video file.

一个用AVFoundation自定义界面的视频录制demo。 仿照“微视”,录制多段视频,然后合并成一个正方形的视频文件。

ScreenShots:


screenShot1

screenShot2

Usage:

  1. Import 4 framework
MediaPlayer.framework(if "PlayVeiwController is needed"), QuartzCore.framework, AVFoundation.framework, CoreGraphics.framework;
  1. Drag "SBVideoCapture" folder to your project;

  2. import the head file, and initalize the class SBVideoRecorder

- (void)initRecorder
{
    self.recorder = [[SBVideoRecorder alloc] init];
    _recorder.delegate = self;
    _recorder.preViewLayer.frame = CGRectMake(0, 0, DEVICE_SIZE.width, DEVICE_SIZE.width);
    [self.preview.layer addSublayer:_recorder.preViewLayer];
}

You can find more details in file "CaptureViewController.m"

License

This code is distributed under the terms and conditions of the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published