HBRecorder 是一个具有暂停/开始功能以及美丽视频段之间动画的视频录制工具。 HBRecorder 基于 SCRecorder 构建。
简而言之,以下是您可以完成的一些有趣事物的简短列表
#import <HBRecorder/HBRecorder.h>
//get HBRecorder.storyboard reference
NSBundle *bundle = [NSBundle bundleForClass:HBRecorder.class];
UIStoryboard *sb = [UIStoryboard storyboardWithName:@"HBRecorder.bundle/HBRecorder" bundle:bundle];
//get HBRecorder controller reference
HBRecorder *recorder = [sb instantiateViewControllerWithIdentifier:@"HBRecorder"];
recorder.delegate = self;
//Set top tile over video
recorder.topTitle = @"Top title";
//Set bottom tile over video
recorder.bottomTitle = @"HilalB - ©";
//Set recorder max recording duration
recorder.maxRecordDuration = 60 * 3;
//Set segment max recording duration
recorder.maxSegmentDuration = 10;
//Set recorded movie name
recorder.movieName = @"MyAnimatedMovie";
//push recorder on navigation controller
recorder.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self.navigationController pushViewController:recorder animated:YES];
<HBRecorderProtocol>
- (void)recorder:( HBRecorder * )recorder didFinishPickingMediaWithUrl:(NSURL * )videoUrl;
- (void)recorderDidCancel:( HBRecorder * )recorder;
您必须在 info.plist 中添加此以下密钥。
Privacy - Camera usage description
HBRecorder 当前版本要求
#使用HBRecorder的应用
如果您在应用中使用HBRecorder,或知晓使用该库的应用,请将其添加到此列表。