Device control pauses photo preview and stops transmitting photo stream
Note: After receiving this command, the app must call the following event to reply the camera preview pause result when the camera preview is successfully or unsuccessfully paused
Flutter example:
/// Reply to camera preview pause result
replyDevicePauseCameraPreviewRequest(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_ble_to_app_pause_camera_preview)
/// Reply to camera preview pause result
libManager.send(evt: CmdEvtType.replyDevicePauseCameraPreviewRequest, json: jsonEncode(json));
JSON fields sent by App:
Field name | Field type | Field description |
---|---|---|
error_code | int | Error code 0x00: Success 0x01: Failure |
Example:
{
"error_code":0x00
}