camera.getLivePreview
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Возвращает непрерывный видеопоток с разрешением, указанным в previewFormat
в Options . Эта команда должна вернуть «Content-Type: multipart/x-mixed-replace; border="---osclivepreview---"». Эта команда была добавлена на уровне API 2.
Параметры
- Эта команда не имеет параметров в теле запроса.
Результаты
- Непрерывный видеопоток с кадрами, разделенными граничным разделителем.
Ошибки
- DisabledCommand: Команда в настоящее время отключена; например, камера снимает видео.
- validParameterName: имя входного параметра не распознано.
Командный ввод/вывод |
---|
Ввод команды | none |
Вывод команды | Continuous video stream. | Вывод команды (ошибка) | {
"error": {
"code": "disabledCommand",
"message": "Command is currently disabled."
}
} |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-11-08 UTC.
[null,null,["Последнее обновление: 2024-11-08 UTC."],[[["\u003cp\u003eInitiates a continuous video stream with the resolution set in previewFormat.\u003c/p\u003e\n"],["\u003cp\u003eReturns a multipart video stream separated by boundary "---osclivepreview---".\u003c/p\u003e\n"],["\u003cp\u003eThis command is only available for API level 2 and above.\u003c/p\u003e\n"],["\u003cp\u003ePotential errors include disabledCommand if the camera is busy and invalidParameterName for incorrect input.\u003c/p\u003e\n"]]],["The command initiates a continuous video stream at the resolution defined by `previewFormat`. The stream is a multipart/x-mixed-replace type, using \"---osclivepreview---\" as a boundary separator. It accepts no parameters. The output is a continuous video stream with frames separated by the boundary. Errors include \"disabledCommand\" (e.g., when the camera is recording) and \"invalidParameterName\". This command was introduced in API level 2.\n"],null,["# camera.getLivePreview\n\nReturns a continuous video stream with the resolution specified by\n`previewFormat` in [Options](/streetview/open-spherical-camera/reference/options).\nThis command should return, \"Content-Type: multipart/x-mixed-replace; boundary=\"---osclivepreview---\"\".\n**This command was added in API level 2.**\n\nParameters\n----------\n\n- This command has no parameter in request body.\n\nResults\n-------\n\n- A continuous video stream with frames separated by the boundary separator.\n\nErrors\n------\n\n- **disabledCommand:** Command is currently disabled; for example, the camera is shooting a video.\n- **invalidParameterName:** The input parameter name is unrecognized.\n\n| Command I/O ----------- ||\n|----------------------------|-----------------------------------------------------------------------------------------------------|\n| **Command Input** | ```text none ``` |\n| **Command Output** | ```text Continuous video stream. ``` |\n| **Command Output (Error)** | ```text { \"error\": { \"code\": \"disabledCommand\", \"message\": \"Command is currently disabled.\" } } ``` |"]]