Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions EUExVideo/EUExVideo/EUExVideo.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion EUExVideo/EUExVideo/sourceCode/uexVideoRecorder.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 8 additions & 0 deletions EUExVideo/EUExVideo/sourceCode/uexVideoRecorder.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ @interface uexVideoRecorder()<UIImagePickerControllerDelegate,UINavigationContro
@property (nonatomic,weak)EUExVideo *euexObj;
@property (nonatomic,strong)uexVideoAssetExporter *exporter;


@end;

@implementation uexVideoRecorder
Expand Down Expand Up @@ -101,6 +102,13 @@ - (void)statRecord{
picker.delegate = self;
picker.mediaTypes = @[(NSString *)kUTTypeMovie];
picker.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
//摄像头前后置判断
if (self.isCameraFront) {
picker.cameraDevice = UIImagePickerControllerCameraDeviceFront;
}else {
picker.cameraDevice = UIImagePickerControllerCameraDeviceRear;
}

switch (self.resolution) {
case uexVideoRecorderResolution640x480: {
picker.videoQuality = UIImagePickerControllerQualityType640x480;
Expand Down
5 changes: 3 additions & 2 deletions EUExVideo/uexVideo/info.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<uexplugins>
<plugin uexName="uexVideo" version="4.1.6" build="6">
<info>6:新增本地视频openPicker接口</info>
<plugin uexName="uexVideo" version="4.1.7" build="7">
<info>7:新增摄像头开关字段,可设置前置或后置</info>
<build>6:新增本地视频openPicker接口</build>
<build>5:新增isAutoEndFullScreen参数</build>
<build>4:修正4.1引擎下的全屏问题</build>
<build>3:更新RAC依赖库</build>
Expand Down