camera.getLivePreview

옵션previewFormat에서 지정한 해상도로 연속 동영상 스트림을 반환합니다. 이 명령어는 'Content-Type: multipart/x-mixed-replace; bounds="---osclivepreview---""를 반환해야 합니다. 이 명령어는 API 수준 2에 추가되었습니다.

매개변수

  • 이 명령어는 요청 본문에 매개변수가 없습니다.

결과

  • 경계 구분자로 구분된 프레임이 있는 연속 동영상 스트림입니다.

오류

  • disableCommand: 명령어가 현재 사용 중지되어 있습니다. 예를 들어 카메라가 동영상을 촬영하고 있습니다.
  • invalidParameterName: 입력 매개변수 이름을 인식할 수 없습니다.

명령어 I/O

명령어 입력
none
명령어 결과
Continuous video stream.
명령어 출력 (오류)
{
    "error": {
        "code": "disabledCommand",
        "message": "Command is currently disabled."
    }
}