Skip to main content

camera management

class AutelBaseCamera

method setMediaModeListener

void setMediaModeListener(CallbackWithOneParam<MediaMode> callback);

Description: Sets the listener for the current media mode to monitor the real-time data.

Input parameters: callback:the listener will be cancelled when the callback is null.

Output parameter: no。

Related parameters: CallbackWithOneParam、 MediaMode

method setSDCardStateListener

void  setSDCardStateListener(CallbackWithOneParam<SDCardState> callback)

Description: Sets the listener for the SD card to monitor the real-time data.

Input parameters: callback: the listener will be cancelled when the callback is null.

Output parameter: no。

Related parameters: CallbackWithOneParam、 SDCardState

method setMediaStateListener

void setMediaStateListener(CallbackWithTwoParams<MediaStatus, String>
callback);

Description: Sets the listener for the camera shooting and recording to monitor the real-time data.

Input parameters: callback: the listener will be cancelled when the callback is null.

Output parameter: no

Related parameters: CallbackWithTwoParams、 MediaStatus

method  setMediaStateListener

void setMediaStateWithIdListener(CallbackWithThreeParams<MediaStatus,
String, String> callback);

Description: Sets the listener for the camera shooting and recording to monitor the real-time data.

Input parameters: callback:the listener will be cancelled when the callback is null.

Output parameter: no

Related parameters: CallbackWithThreeParams、 MediaStatus

method  formatSDCard

void formatSDCard(CallbackWithNoParam callback);

Description: Sends the format SD card command to the camera。Note: first, see if the camera is in idle condition. If yes, then this operation can be continued.

Input parameters:  callback:callback the callback when format the SD card。

Output parameter: no.

Related parameters: CallbackWithNoParam

method  resetDefaults

void resetDefaults(CallbackWithNoParam callback);

Description: Sends the camera reset command to the camera.

Input parameters:  callback:the callback when reset the camera.

Output parameter: no.

Related parameters: CallbackWithNoParam

method  getWorkState

void getWorkState(CallbackWithOneParam<WorkState> callback);

Description: Gets the current camera working state.

Input parameters: callback:the callback when get the current camera working state.

Output parameter: no.

Related parameters: CallbackWithOneParam、WorkState

method  getSDCardState

void getSDCardState(CallbackWithOneParam<SDCardState> callback);

Description: Gets the current SD card state.

Input parameters:  

callback: the callback when get the current SD card state.

Output parameter: no.

Related parameters: CallbackWithOneParam、SDCardState

method  getSDCardFreeSpace

void getSDCardFreeSpace(CallbackWithOneParam<Long> callback);

Description: Gets the free space of the SD card.Unit: Byte *

Input parameters:

callback: the callback when get the free space of the SD card.

Output parameter: no

Related parameters: CallbackWithOneParam

method  getProduct

CameraProduct getProduct();

Description: Gets the camera model.

Input parameters:  no.

Output parameter: CameraProduct

Related parameters: CallbackWithOneParam

method  getVersion

void getVersion(CallbackWithOneParam<String> callback);

Description: Gets the current version of the camera.

Input parameters:

callback: the callback when get the current version of the camera.

Output parameter: no.

Related parameters: CallbackWithOneParam

method  setMediaMode

void setMediaMode(MediaMode mediaMode, CallbackWithNoParam callback);

Description: Sets the camera media mode.

Input parameters:

mediaMode: mediaMode the media mode enum.

callback: the callback when set the camera media mode.

Output parameter: no

Related parameters: MediaMode、CallbackWithOneParam

method  getMediaMode

void getMediaMode(CallbackWithOneParam<MediaMode> callback);

Description: Gets the current camera media mode.

Input parameters:

callback: the callback when get the current camera media mode.

Output parameter: no

Related parameters: MediaMode、CallbackWithOneParam

method  startTakePhoto

void startTakePhoto(CallbackWithNoParam callback);

Description: Request the camera to take a photo.1. Firstly, see if the camera is in the photo shooting mode.2. See if the camera is idle in the current mode. 3.See if the SD card is in the available state (CARD_READY,LOW_SPEED_CARD are all available).

Input parameters:

callback: the callback when start taking photos.

Output parameter: no

Related parameters: CallbackWithOneParam

method  stopRecordVideo

void stopRecordVideo(CallbackWithNoParam callback);

Description: Request the camera to stop recording.See if the camera is recording now.

Input parameters:

callback: the callback when stop recording videos.

Output parameter: no.

Related parameters: CallbackWithOneParam

method  stopTakePhoto

void stopTakePhoto(CallbackWithNoParam callback);

Description: Request the camera to stop taking time lapse photos.

Input parameters: callback: the callback when stop taking time lapse photos.

Output parameter: no

Related parameters: CallbackWithOneParam

method  getCurrentRecordTime

void getCurrentRecordTime(CallbackWithOneParam<Integer> callback);

Description: get current record time

Input parameters:

callback: callback when get the current recording time.

Output parameter: no

Related parameters: CallbackWithOneParam

method  getStateInfo

void getStateInfo(CallbackWithOneParam<BaseStateInfo> callback);

Description: Gets the state information of the camera (returns R12StateInfo for R12, returns XB015StateInfo for XB015).

Input parameters:

callback: the callback when get the state information of the camera

Output parameter: no.

Related parameters: CallbackWithOneParam、BaseStateInfo

method  setCameraPattern

void setCameraPattern(CameraPattern cameraPattern, CallbackWithNoParam callback);

Description: Set interface mode after camera enters

Input parameters:

cameraPattern: camera Pattern

callback: the callback when set camera pattern 。

Output parameter: no.

Related parameters: CallbackWithOneParam、CameraPattern

method  lockGimbalWhenTakePhoto

void lockGimbalWhenTakePhoto(AutelSwitchState state, CallbackWithNoParam callback);

Description: Lock gimbal when taking photo

Input parameters:

state: gimbal lock state

callback: the callback when lock gimbal when taking photo。

Output parameter: no.

Related parameters: CallbackWithNoParam、AutelSwitchState

method setGpsCoordinateType

void setGpsCoordinateType(int type, CallbackWithNoParam callback);

Description: Set interface mode after camera enters

Input parameters:

type: GPS coordinate type.

callback: callback when set Set interface mode after camera enters.

Output parameter: no.

Related parameters: CallbackWithNoParam

method getGpsCoordinateType

void getGpsCoordinateType(CallbackWithOneParam<Integer> callback);

Description: get gps coordinate type

Input parameters:

callback: callback when get gps coordinate type.

Output parameter: no

Related parameters: CallbackWithOneParam

method getSDCardInfo

void getSDCardInfo(CallbackWithOneParam<SdCardInternal> callback);

Description: get sdcard info

Input parameters:

callback: callback when get sdcard info.

Output parameter: no

Related parameters: CallbackWithOneParam、SdCardInternal

method setCalibrationFormat

void setCalibrationFormat(int mode, CallbackWithNoParam callback);

Description: set calibration format

Input parameters:

callback: callback when set calibration format

Output parameter: no.

Related parameters: CallbackWithOneParam

method getCalibrationFormat

void getCalibrationFormat(CallbackWithOneParam<Integer> callback);

Description: get calibration format

Input parameters:

callback: callback when get calibration format.

Output parameter: no.

Related parameters: CallbackWithOneParam

method toRx

RxAutelBaseCamera toRx();

Description: convert to ReactiveX interface。

Input parameters: no

Output parameter: AutelBaseCamera的ReactiveX object。