1 将 OEPopVideo 文件夹拖入到你的工程
2 执行pod install 添加GPUImage库
3 导入头文件 #import "OEPopVideoController.h"
4 使用:
-(IBAction)openVideoController:(id)sender {
//创建 OEPopVideoController 对象
OEPopVideoController *videoController = [[OEPopVideoController alloc] init];
//设置 进度条时间 默认无限制
videoController.videoMaxTime = 4;
//设置代理得到视频数据
videoController.delegate = self;
//弹出
[videoController presentPopupControllerAnimated:YES];
}
#pragma mark - OEPopVideoControllerDelegate
//打包好的视频连接
-(void)popVideoControllerDidSave:(NSString *)url{
[self savePhoneLibrary:url];
}
//原始数据 做自定义处理
-(void)popVideoControllerWillOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer {
}

