diff --git a/EUExVideo/EUExVideo/EUExVideo.m b/EUExVideo/EUExVideo/EUExVideo.m index fcc4bde..7262f9f 100644 --- a/EUExVideo/EUExVideo/EUExVideo.m +++ b/EUExVideo/EUExVideo/EUExVideo.m @@ -114,6 +114,9 @@ -(void)record:(NSMutableArray *)inArguments { if (fileType && [fileType.lowercaseString isEqual:@"mov"]) { recorder.fileType = uexVideoRecorderOutputFileTypeMOV; } + if (info[@"isCameraFront"]) { + recorder.isCameraFront = [info[@"isCameraFront"] boolValue]; + } } self.recorder = recorder; [recorder statRecord]; diff --git a/EUExVideo/EUExVideo/sourceCode/uexVideoRecorder.h b/EUExVideo/EUExVideo/sourceCode/uexVideoRecorder.h index 91803ff..978e394 100644 --- a/EUExVideo/EUExVideo/sourceCode/uexVideoRecorder.h +++ b/EUExVideo/EUExVideo/sourceCode/uexVideoRecorder.h @@ -48,7 +48,7 @@ typedef NS_ENUM(NSInteger,uexVideoRecorderOutputFileType) { @property (nonatomic,assign)uexVideoRecorderResolution resolution; @property (nonatomic,assign)uexVideoRecorderOutputFileType fileType; @property (nonatomic,assign)uexVideoRecorderBitRateLevel bitRateLevel; - +@property (nonatomic,assign)BOOL isCameraFront;//判断是否是前置摄像还是后置,默认为后置 - (instancetype)initWithEUExVideo:(EUExVideo *)euexObj; diff --git a/EUExVideo/EUExVideo/sourceCode/uexVideoRecorder.m b/EUExVideo/EUExVideo/sourceCode/uexVideoRecorder.m index 4cbbe99..1d45a95 100644 --- a/EUExVideo/EUExVideo/sourceCode/uexVideoRecorder.m +++ b/EUExVideo/EUExVideo/sourceCode/uexVideoRecorder.m @@ -33,6 +33,7 @@ @interface uexVideoRecorder() - - 6:新增本地视频openPicker接口 + + 7:新增摄像头开关字段,可设置前置或后置 + 6:新增本地视频openPicker接口 5:新增isAutoEndFullScreen参数 4:修正4.1引擎下的全屏问题 3:更新RAC依赖库