在点击录像的时候,不报错,但是也不录像,是什么原因?
代码附上:DJIInspireCamera* inspireCamera = (DJIInspireCamera*)_camera;
if(self.isSubItem) { CameraWorkMode workMode = CameraWorkModeRecord; NSValue* itemValue = self.itemValue; [itemValue getValue:&workMode]; [inspireCamera setCameraWorkMode:workMode withResult:^(DJIError *error){ if (error.errorCode == ERR_Successed){ NSLog(@"Set Work Mode Success"); } else { NSLog(@"Set Work Mode Failed"); } }]; }else{ [inspireCamera getCameraWorkModeWithResult:^(CameraWorkMode workMode, DJIError *error) { if (error.errorCode == ERR_Successed) { int index = (int)workMode; PhotoRightView* item = [self.subSettings objectAtIndex:index]; [self setCheckmarkForItem:item]; // _selectedItem = item; } }]; } if (mCameraSystemState.workMode != CameraWorkModeRecord) { ShowResult(@"Camera work mode error, please switch to Record mode."); return; } if (mCameraSystemState.isRecording) { [_drone.camera stopRecord:^(DJIError *error) { ShowResult(@"Stop Recording:%@", error.errorDescription); }]; } else { [_drone.camera startRecord:^(DJIError *error) { ShowResult(@"Start Recording:%@", error.errorDescription); }]; }
|