YI Open API SDK  0.5
Public Member Functions | List of all members
com.xiaoyi.action.ActionCamera Class Reference

Present an YI action camera. More...

Inherits com.xiaoyi.action.AsyncSocketListener.

Public Member Functions

 ActionCamera (ActionCameraListener listener, DispatchQueue workThreadQueue)
 Constructor of ActionCamera. More...
 
void connect (final String connectionString)
 Connect to a YI action camera. More...
 
void disconnect ()
 Disconnect from YI action camera. More...
 
ActionCamera setDateTime (Date datetime, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set datetime to camera. More...
 
ActionCamera startRecording (ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Start recording immediately. More...
 
ActionCamera startRecording (int hour, int minute, int second, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Start recording at specific time. More...
 
ActionCamera stopRecording (ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Stop recording on camera. More...
 
ActionCamera capturePhoto (ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Capture a photo on camera. More...
 
ActionCamera getSettings (ActionCameraCommandCallback1< ActionCameraSettings > success, ActionCameraCommandCallback1< Error > fail)
 Get camera settings. More...
 
ActionCamera setSystemMode (SystemMode mode, final ActionCameraCommandCallback success, final ActionCameraCommandCallback1< Error > fail)
 Set camera system mode. More...
 
ActionCamera getStatus (ActionCameraCommandCallback1< CameraStatus > success, ActionCameraCommandCallback1< Error > fail)
 Get camera current status. More...
 
ActionCamera getVideoResolution (ActionCameraCommandCallback1< VideoResolution > success, ActionCameraCommandCallback1< Error > fail)
 Get camera current video resolution. More...
 
ActionCamera setVideoResolution (VideoResolution resolution, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set camera video resolution. More...
 
ActionCamera getPhotoResolution (ActionCameraCommandCallback1< PhotoResolution > success, ActionCameraCommandCallback1< Error > fail)
 Get camera current photo resolution. More...
 
ActionCamera setPhotoResolution (PhotoResolution photoResolution, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set camera photo resolution. More...
 
ActionCamera getPhotoWhiteBalance (ActionCameraCommandCallback1< WhiteBalance > success, ActionCameraCommandCallback1< Error > fail)
 Get camera photo white balance setting. More...
 
ActionCamera setPhotoWhiteBalance (WhiteBalance whiteBalance, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set camera photo white balance. More...
 
ActionCamera getVideoWhiteBalance (ActionCameraCommandCallback1< WhiteBalance > success, ActionCameraCommandCallback1< Error > fail)
 Get camera video white balance setting. More...
 
ActionCamera setVideoWhiteBalance (WhiteBalance whiteBalance, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set camera video white balance. More...
 
ActionCamera getPhotoISO (ActionCameraCommandCallback1< ISO > success, ActionCameraCommandCallback1< Error > fail)
 Get camera photo iso. More...
 
ActionCamera setPhotoISO (ISO iso, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set camera photo iso. More...
 
ActionCamera getVideoISO (ActionCameraCommandCallback1< ISO > success, ActionCameraCommandCallback1< Error > fail)
 Get camera video iso. More...
 
ActionCamera setVideoISO (ISO iso, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set camera video iso. More...
 
ActionCamera getPhotoExposureValue (ActionCameraCommandCallback1< ExposureValue > success, ActionCameraCommandCallback1< Error > fail)
 Get camera photo exposure value. More...
 
ActionCamera setPhotoExposureValue (ExposureValue ev, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set camera photo exposure value. More...
 
ActionCamera getVideoExposureValue (ActionCameraCommandCallback1< ExposureValue > success, ActionCameraCommandCallback1< Error > fail)
 Get camera video exposure value. More...
 
ActionCamera setVideoExposureValue (ExposureValue ev, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set camera video exposure value. More...
 
ActionCamera getPhotoShutterTime (ActionCameraCommandCallback1< ShutterTime > success, ActionCameraCommandCallback1< Error > fail)
 Get camera photo shutter time. More...
 
ActionCamera setPhotoShutterTime (ShutterTime shutterTime, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set camera photo shutter time. More...
 
ActionCamera getVideoSharpness (ActionCameraCommandCallback1< Sharpness > success, ActionCameraCommandCallback1< Error > fail)
 Get video sharpness. More...
 
ActionCamera setVideoSharpness (Sharpness sharpness, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set video sharpness. More...
 
ActionCamera getPhotoSharpness (ActionCameraCommandCallback1< Sharpness > success, ActionCameraCommandCallback1< Error > fail)
 Get photo sharpness. More...
 
ActionCamera setPhotoSharpness (Sharpness sharpness, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set photo sharpness. More...
 
ActionCamera getRecordMode (final ActionCameraCommandCallback1< RecordMode > success, ActionCameraCommandCallback1< Error > fail)
 Get record mode. More...
 
ActionCamera setRecordMode (RecordMode recordMode, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set record mode. More...
 
ActionCamera getCaptureMode (final ActionCameraCommandCallback1< CaptureMode > success, ActionCameraCommandCallback1< Error > fail)
 Get capture mode. More...
 
ActionCamera setCaptureMode (CaptureMode captureMode, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set capture mode. More...
 
ActionCamera getFileList (ActionCameraCommandCallback1< File[]> success, ActionCameraCommandCallback1< Error > fail)
 Get camera file list. More...
 
ActionCamera deleteFile (String fileName, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Delete file from camera. More...
 
ActionCamera downloadFile (final String fileName, final String destFilePath, final ActionCameraCommandCallback1< DownloadTask > success, final ActionCameraCommandCallback1< Error > fail)
 Download file from camera. More...
 
ActionCamera cancelDownload ()
 Cancel current download task.
 
int[] buildLiveVideoQRCode (String ssid, String password, LiveVideoResolution resolution, LiveVideoBitrate bitrate, int duration, String rtmpUrl, int size) throws WriterException
 Build QR code for doing live video. More...
 
ActionCamera getVideoFieldOfView (ActionCameraCommandCallback1< FieldOfView > success, ActionCameraCommandCallback1< Error > fail)
 Get video field of view. More...
 
ActionCamera setVideoFieldOfView (FieldOfView fieldOfView, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set video field of view. More...
 
ActionCamera getMeteringMode (final ActionCameraCommandCallback1< MeteringMode > success, ActionCameraCommandCallback1< Error > fail)
 Get metering mode. More...
 
ActionCamera setMeteringMode (MeteringMode meteringMode, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set metering mode. More...
 
ActionCamera getVideoQuality (final ActionCameraCommandCallback1< Quality > success, ActionCameraCommandCallback1< Error > fail)
 Get video quality. More...
 
ActionCamera setVideoQuality (Quality quality, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set video quality. More...
 
ActionCamera getVideoColorMode (final ActionCameraCommandCallback1< ColorMode > success, ActionCameraCommandCallback1< Error > fail)
 Get video color mode. More...
 
ActionCamera setVideoColorMode (ColorMode colorMode, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set video color mode. More...
 
ActionCamera getPhotoColorMode (final ActionCameraCommandCallback1< ColorMode > success, ActionCameraCommandCallback1< Error > fail)
 
ActionCamera setPhotoColorMode (ColorMode colorMode, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set photo color mode. More...
 
ActionCamera getElectronicImageStabilizationState (final ActionCameraCommandCallback1< ToggleState > success, ActionCameraCommandCallback1< Error > fail)
 Get electronic image stabilization state. More...
 
ActionCamera setElectronicImageStabilizationState (ToggleState state, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set electronic image stabilization state. More...
 
ActionCamera getVideoMuteState (final ActionCameraCommandCallback1< ToggleState > success, ActionCameraCommandCallback1< Error > fail)
 Get video mute state. More...
 
ActionCamera setVideoMuteState (ToggleState state, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set video mute state. More...
 
ActionCamera getVideoTimestamp (final ActionCameraCommandCallback1< Timestamp > success, ActionCameraCommandCallback1< Error > fail)
 Get video timestamp. More...
 
ActionCamera setVideoTimestamp (Timestamp timestamp, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set video timestamp. More...
 
ActionCamera getPhotoTimestamp (final ActionCameraCommandCallback1< Timestamp > success, ActionCameraCommandCallback1< Error > fail)
 Get photo timestamp. More...
 
ActionCamera setPhotoTimestamp (Timestamp timestamp, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set photo timestamp. More...
 
ActionCamera getLEDMode (final ActionCameraCommandCallback1< LEDMode > success, ActionCameraCommandCallback1< Error > fail)
 Get LED mode. More...
 
ActionCamera setLEDMode (LEDMode ledMode, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set LED mode. More...
 
ActionCamera getVideoStandard (final ActionCameraCommandCallback1< VideoStandard > success, ActionCameraCommandCallback1< Error > fail)
 Get video standard. More...
 
ActionCamera setVideoStandard (VideoStandard videoStandard, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set video standard. More...
 
ActionCamera getTimeLapseVideoInterval (final ActionCameraCommandCallback1< TimeLapseVideoInterval > success, ActionCameraCommandCallback1< Error > fail)
 Get time lapse video interval. More...
 
ActionCamera setTimeLapseVideoInterval (TimeLapseVideoInterval interval, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set time lapse video interval. More...
 
ActionCamera getTimeLapsePhotoInterval (final ActionCameraCommandCallback1< TimeLapsePhotoInterval > success, ActionCameraCommandCallback1< Error > fail)
 Get time lapse photo interval. More...
 
ActionCamera setTimeLapsePhotoInterval (TimeLapsePhotoInterval interval, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set time lapse photo interval. More...
 
ActionCamera getTimeLapseVideoDuration (final ActionCameraCommandCallback1< TimeLapseVideoDuration > success, ActionCameraCommandCallback1< Error > fail)
 Set time lapse video duration. More...
 
ActionCamera setTimeLapseVideoDuration (TimeLapseVideoDuration interval, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set time lapse video duration. More...
 
ActionCamera getScreenAutoLock (final ActionCameraCommandCallback1< ScreenAutoLock > success, ActionCameraCommandCallback1< Error > fail)
 Get screen auto lock. More...
 
ActionCamera setScreenAutoLock (ScreenAutoLock screenAutoLock, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set screen auto lock. More...
 
ActionCamera getAutoPowerOff (final ActionCameraCommandCallback1< AutoPowerOff > success, ActionCameraCommandCallback1< Error > fail)
 Get auto power off. More...
 
ActionCamera setAutoPowerOff (AutoPowerOff autoPowerOff, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set screen auto lock. More...
 
ActionCamera getVideoRotateMode (final ActionCameraCommandCallback1< VideoRotateMode > success, ActionCameraCommandCallback1< Error > fail)
 Get video rotate mode. More...
 
ActionCamera setVideoRotateMode (VideoRotateMode mode, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set video rotate mode. More...
 
ActionCamera getBuzzerVolume (final ActionCameraCommandCallback1< BuzzerVolume > success, ActionCameraCommandCallback1< Error > fail)
 Get buzzer volume. More...
 
ActionCamera setBuzzerVolume (BuzzerVolume buzzerVolume, ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Set buzzer volume. More...
 
ActionCamera startViewFinder (ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Start view finder. More...
 
ActionCamera stopViewFinder (ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Stop view finder. More...
 
String getRtspURL ()
 Get rtsp url.
 
ActionCamera formatSDCard (ActionCameraCommandCallback success, ActionCameraCommandCallback1< Error > fail)
 Format sd card. More...
 

Detailed Description

Present an YI action camera.

This class presents an YI action camera. App can invoke its functions to control the camera. Like start recording, stop recording, capture photo, read settings, set settings, etc. Before operating an camera, App need invoke connect() to connect to the camera. After connect success (ActionCameraListener.onConnect() will be invoked), app can invoke other functions. Whenever app wants to disconnect from the camera, app can invoke disconnect().

Any success or fail callback in commands are optional parameter. If you don't care command execution result, you can pass null.

Constructor & Destructor Documentation

com.xiaoyi.action.ActionCamera.ActionCamera ( ActionCameraListener  listener,
DispatchQueue  workThreadQueue 
)

Constructor of ActionCamera.

When app creates an ActionCamera object, app need specify a listener which will receive the camera notifications and a message queue which will be used to dispatch the notification. Recommend app uses the same message queue as UI thread using. So that all notifications will be passed in UI thread and app can update UI directly in the callback of notifications.

Parameters
listenerThe listener will be used to receive notification from the camera.
workThreadQueueThe message queue will be used to dispatch camera notifications.

Member Function Documentation

int [] com.xiaoyi.action.ActionCamera.buildLiveVideoQRCode ( String  ssid,
String  password,
LiveVideoResolution  resolution,
LiveVideoBitrate  bitrate,
int  duration,
String  rtmpUrl,
int  size 
) throws WriterException

Build QR code for doing live video.

Parameters
ssidThe SSID of the WIFI.
passwordThe password of the WIFI.
resolutionThe resolution of live broadcast.
bitrateThe bitrate of live broadcast.
durationThe duration of live broadcast (unit is second). 0 means forever.
rtmpUrlThe rtmp url of live broadcast. Should be started with "rtmp://".
sizeThe size of the QRCode.
Returns
Return value is an pixel array of QRCode. Length is size * size.
ActionCamera com.xiaoyi.action.ActionCamera.capturePhoto ( ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Capture a photo on camera.

Parameters
successIf command executes success, this callback will be invoked.
failIf command executes fail, this callback will be invoked.
void com.xiaoyi.action.ActionCamera.connect ( final String  connectionString)

Connect to a YI action camera.

Invoke this function to connect to a YI action camera. Param connectionString represents the address of the remote camera. Format is:

tcp:<ip address>:<port>

If the camera has been connected or the previous connect operation hasn't been finished. Nothing will happen. Otherwise connect operation will be executed asynchronously. If success, ActionCameraListener.onConnected() callback will be invoked. If fail, ActionCameraListener.onClosed() callback will be invoked and parameter Error will be set.

ActionCamera com.xiaoyi.action.ActionCamera.deleteFile ( String  fileName,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Delete file from camera.

Parameters
fileNameFilename you want to delete from camera.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
void com.xiaoyi.action.ActionCamera.disconnect ( )

Disconnect from YI action camera.

Invoke this function to disconnect from a YI action camera. This function will return immediately and the disconnect operation will be executed asynchronously. All pending commands will be cancelled (the fail() callback of the command will be invoked and the code of error parameter will be set to ErrorCode.Cancelled). At the end, ActionCameraListener.onClosed() callback will be invoked and error parameter will be set to null.

ActionCamera com.xiaoyi.action.ActionCamera.downloadFile ( final String  fileName,
final String  destFilePath,
final ActionCameraCommandCallback1< DownloadTask success,
final ActionCameraCommandCallback1< Error fail 
)

Download file from camera.

Parameters
fileNameThe file you want to download from camera.
destFilePathThe file destination file path. Need to be a full path.
successThis callback will be invoked multiple times to notify the progress.
failThis callback will be invoked if download failed.
ActionCamera com.xiaoyi.action.ActionCamera.formatSDCard ( ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Format sd card.

Parameters
successIf command executes success, this callback will be invoked.
failIf command executes fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getAutoPowerOff ( final ActionCameraCommandCallback1< AutoPowerOff success,
ActionCameraCommandCallback1< Error fail 
)

Get auto power off.

Parameters
successIf command executes success, this callback will be invoked.
failIf command executes fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getBuzzerVolume ( final ActionCameraCommandCallback1< BuzzerVolume success,
ActionCameraCommandCallback1< Error fail 
)

Get buzzer volume.

Parameters
successIf command executes success, this callback will be invoked.
failIf command executes fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getCaptureMode ( final ActionCameraCommandCallback1< CaptureMode success,
ActionCameraCommandCallback1< Error fail 
)

Get capture mode.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getElectronicImageStabilizationState ( final ActionCameraCommandCallback1< ToggleState success,
ActionCameraCommandCallback1< Error fail 
)

Get electronic image stabilization state.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getFileList ( ActionCameraCommandCallback1< File[]>  success,
ActionCameraCommandCallback1< Error fail 
)

Get camera file list.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getLEDMode ( final ActionCameraCommandCallback1< LEDMode success,
ActionCameraCommandCallback1< Error fail 
)

Get LED mode.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getMeteringMode ( final ActionCameraCommandCallback1< MeteringMode success,
ActionCameraCommandCallback1< Error fail 
)

Get metering mode.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getPhotoColorMode ( final ActionCameraCommandCallback1< ColorMode success,
ActionCameraCommandCallback1< Error fail 
)

Get photo color mode.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getPhotoExposureValue ( ActionCameraCommandCallback1< ExposureValue success,
ActionCameraCommandCallback1< Error fail 
)

Get camera photo exposure value.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getPhotoISO ( ActionCameraCommandCallback1< ISO success,
ActionCameraCommandCallback1< Error fail 
)

Get camera photo iso.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getPhotoResolution ( ActionCameraCommandCallback1< PhotoResolution success,
ActionCameraCommandCallback1< Error fail 
)

Get camera current photo resolution.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getPhotoSharpness ( ActionCameraCommandCallback1< Sharpness success,
ActionCameraCommandCallback1< Error fail 
)

Get photo sharpness.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getPhotoShutterTime ( ActionCameraCommandCallback1< ShutterTime success,
ActionCameraCommandCallback1< Error fail 
)

Get camera photo shutter time.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getPhotoTimestamp ( final ActionCameraCommandCallback1< Timestamp success,
ActionCameraCommandCallback1< Error fail 
)

Get photo timestamp.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getPhotoWhiteBalance ( ActionCameraCommandCallback1< WhiteBalance success,
ActionCameraCommandCallback1< Error fail 
)

Get camera photo white balance setting.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getRecordMode ( final ActionCameraCommandCallback1< RecordMode success,
ActionCameraCommandCallback1< Error fail 
)

Get record mode.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getScreenAutoLock ( final ActionCameraCommandCallback1< ScreenAutoLock success,
ActionCameraCommandCallback1< Error fail 
)

Get screen auto lock.

Parameters
successIf command executes success, this callback will be invoked.
failIf command executes fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getSettings ( ActionCameraCommandCallback1< ActionCameraSettings success,
ActionCameraCommandCallback1< Error fail 
)

Get camera settings.

Parameters
successIf command executes success, this callback will be invoked and parameter is the settings of camera.
failIf command executes fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getStatus ( ActionCameraCommandCallback1< CameraStatus success,
ActionCameraCommandCallback1< Error fail 
)

Get camera current status.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getTimeLapsePhotoInterval ( final ActionCameraCommandCallback1< TimeLapsePhotoInterval success,
ActionCameraCommandCallback1< Error fail 
)

Get time lapse photo interval.

Parameters
successIf command executes success, this callback will be invoked.
failIf command executes fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getTimeLapseVideoDuration ( final ActionCameraCommandCallback1< TimeLapseVideoDuration success,
ActionCameraCommandCallback1< Error fail 
)

Set time lapse video duration.

Parameters
successIf command executes success, this callback will be invoked.
failIf command executes fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getTimeLapseVideoInterval ( final ActionCameraCommandCallback1< TimeLapseVideoInterval success,
ActionCameraCommandCallback1< Error fail 
)

Get time lapse video interval.

Parameters
successIf command executes success, this callback will be invoked.
failIf command executes fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getVideoColorMode ( final ActionCameraCommandCallback1< ColorMode success,
ActionCameraCommandCallback1< Error fail 
)

Get video color mode.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getVideoExposureValue ( ActionCameraCommandCallback1< ExposureValue success,
ActionCameraCommandCallback1< Error fail 
)

Get camera video exposure value.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getVideoFieldOfView ( ActionCameraCommandCallback1< FieldOfView success,
ActionCameraCommandCallback1< Error fail 
)

Get video field of view.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getVideoISO ( ActionCameraCommandCallback1< ISO success,
ActionCameraCommandCallback1< Error fail 
)

Get camera video iso.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getVideoMuteState ( final ActionCameraCommandCallback1< ToggleState success,
ActionCameraCommandCallback1< Error fail 
)

Get video mute state.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getVideoQuality ( final ActionCameraCommandCallback1< Quality success,
ActionCameraCommandCallback1< Error fail 
)

Get video quality.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getVideoResolution ( ActionCameraCommandCallback1< VideoResolution success,
ActionCameraCommandCallback1< Error fail 
)

Get camera current video resolution.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getVideoRotateMode ( final ActionCameraCommandCallback1< VideoRotateMode success,
ActionCameraCommandCallback1< Error fail 
)

Get video rotate mode.

Parameters
successIf command executes success, this callback will be invoked.
failIf command executes fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getVideoSharpness ( ActionCameraCommandCallback1< Sharpness success,
ActionCameraCommandCallback1< Error fail 
)

Get video sharpness.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getVideoStandard ( final ActionCameraCommandCallback1< VideoStandard success,
ActionCameraCommandCallback1< Error fail 
)

Get video standard.

Parameters
successIf command executes success, this callback will be invoked.
failIf command executes fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getVideoTimestamp ( final ActionCameraCommandCallback1< Timestamp success,
ActionCameraCommandCallback1< Error fail 
)

Get video timestamp.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.getVideoWhiteBalance ( ActionCameraCommandCallback1< WhiteBalance success,
ActionCameraCommandCallback1< Error fail 
)

Get camera video white balance setting.

Parameters
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setAutoPowerOff ( AutoPowerOff  autoPowerOff,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set screen auto lock.

Parameters
autoPowerOffPower offer mode want to set.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setBuzzerVolume ( BuzzerVolume  buzzerVolume,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set buzzer volume.

Parameters
buzzerVolumeBuzzer volume want to set.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setCaptureMode ( CaptureMode  captureMode,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set capture mode.

Parameters
captureModeRecord mode supported by YI action camera.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setDateTime ( Date  datetime,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set datetime to camera.

Parameters
datetimeThe datetime you want to set to camera.
successIf command executes success, this callback will be invoked.
failIf command executes fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setElectronicImageStabilizationState ( ToggleState  state,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set electronic image stabilization state.

Parameters
stateEnable or disable electronic image stabilization.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setLEDMode ( LEDMode  ledMode,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set LED mode.

Parameters
ledModeLED mode want to set.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setMeteringMode ( MeteringMode  meteringMode,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set metering mode.

Parameters
meteringModeMetering mode you want to delete from camera.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setPhotoColorMode ( ColorMode  colorMode,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set photo color mode.

Parameters
colorModeColor mode you want to set.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setPhotoExposureValue ( ExposureValue  ev,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set camera photo exposure value.

Parameters
evExposure value supported by YI action camera.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setPhotoISO ( ISO  iso,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set camera photo iso.

Parameters
isoISO supported by YI action camera.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setPhotoResolution ( PhotoResolution  photoResolution,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set camera photo resolution.

Parameters
photoResolutionPhoto resolution supported by YI action camera.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setPhotoSharpness ( Sharpness  sharpness,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set photo sharpness.

Parameters
sharpnessSharpness value supported by YI action camera.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setPhotoShutterTime ( ShutterTime  shutterTime,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set camera photo shutter time.

Parameters
shutterTimeShutterTime value supported by YI action camera.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setPhotoTimestamp ( Timestamp  timestamp,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set photo timestamp.

Parameters
timestampTimestamp you want to set.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setPhotoWhiteBalance ( WhiteBalance  whiteBalance,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set camera photo white balance.

Parameters
whiteBalanceWhite balance supported by YI action camera.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setRecordMode ( RecordMode  recordMode,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set record mode.

Parameters
recordModeRecord mode supported by YI action camera.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setScreenAutoLock ( ScreenAutoLock  screenAutoLock,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set screen auto lock.

Parameters
screenAutoLockScreen auto lock mode want to set.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setSystemMode ( SystemMode  mode,
final ActionCameraCommandCallback  success,
final ActionCameraCommandCallback1< Error fail 
)

Set camera system mode.

Parameters
modeSystem mode supported by YI action camera.
successIf command executes success, this callback will be invoked.
failIf command executes fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setTimeLapsePhotoInterval ( TimeLapsePhotoInterval  interval,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set time lapse photo interval.

Parameters
intervalTime lapse photo interval.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setTimeLapseVideoDuration ( TimeLapseVideoDuration  interval,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set time lapse video duration.

Parameters
intervalTime lapse photo interval.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setTimeLapseVideoInterval ( TimeLapseVideoInterval  interval,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set time lapse video interval.

Parameters
intervalTime lapse video interval.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setVideoColorMode ( ColorMode  colorMode,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set video color mode.

Parameters
colorModeColor mode you want to set.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setVideoExposureValue ( ExposureValue  ev,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set camera video exposure value.

Parameters
evExposure value supported by YI action camera.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setVideoFieldOfView ( FieldOfView  fieldOfView,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set video field of view.

Parameters
fieldOfViewField of view you want to delete from camera.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setVideoISO ( ISO  iso,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set camera video iso.

Parameters
isoISO supported by YI action camera.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setVideoMuteState ( ToggleState  state,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set video mute state.

Parameters
stateEnable or disable video mute.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setVideoQuality ( Quality  quality,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set video quality.

Parameters
qualityQuality you want to delete from camera.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setVideoResolution ( VideoResolution  resolution,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set camera video resolution.

Parameters
resolutionVideo resolution supported by YI action camera.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setVideoRotateMode ( VideoRotateMode  mode,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set video rotate mode.

Parameters
modeVideo rotate mode want to set.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setVideoSharpness ( Sharpness  sharpness,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set video sharpness.

Parameters
sharpnessSharpness value supported by YI action camera.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setVideoStandard ( VideoStandard  videoStandard,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set video standard.

Parameters
videoStandardVideo standard want to set.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setVideoTimestamp ( Timestamp  timestamp,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set video timestamp.

Parameters
timestampTimestamp you want to set.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.setVideoWhiteBalance ( WhiteBalance  whiteBalance,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Set camera video white balance.

Parameters
whiteBalanceWhite balance supported by YI action camera.
successIf command execute success, this callback will be invoked.
failIf command execute fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.startRecording ( ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Start recording immediately.

Parameters
successIf command executes success, this callback will be invoked.
failIf command executes fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.startRecording ( int  hour,
int  minute,
int  second,
ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Start recording at specific time.

Parameters
hourStart recording at this hour.
minuteStart recording at this minute.
secondStart recording at this second.
successIf command executes success, this callback will be invoked.
failIf command executes fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.startViewFinder ( ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Start view finder.

After this command executes success, the rtsp server will be started. You can view video stream via rtsp protocol.

Parameters
successIf command executes success, this callback will be invoked.
failIf command executes fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.stopRecording ( ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Stop recording on camera.

Parameters
successIf command executes success, this callback wil be invoked.
failIf command executes fail, this callback will be invoked.
ActionCamera com.xiaoyi.action.ActionCamera.stopViewFinder ( ActionCameraCommandCallback  success,
ActionCameraCommandCallback1< Error fail 
)

Stop view finder.

Parameters
successIf command executes success, this callback will be invoked.
failIf command executes fail, this callback will be invoked.

The documentation for this class was generated from the following file:

www.yitechnology.com © 2016