From f730d7c67e8ba832b72357979e7af9c73ff9057e Mon Sep 17 00:00:00 2001 From: songxingjie <1771344212@qq.com> Date: Tue, 2 Apr 2019 16:25:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=91=84=E5=83=8F=E5=A4=B4?= =?UTF-8?q?=E5=BC=80=E5=85=B3=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EUExVideo/EUExVideo/EUExVideo.m | 3 +++ EUExVideo/EUExVideo/sourceCode/uexVideoRecorder.h | 2 +- EUExVideo/EUExVideo/sourceCode/uexVideoRecorder.m | 8 ++++++++ EUExVideo/uexVideo/info.xml | 5 +++-- 4 files changed, 15 insertions(+), 3 deletions(-) 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依赖库