Google 會運用 AI 技術將內容翻譯成您偏好的語言,但可能會出錯。
camera.getLivePreview
透過集合功能整理內容
您可以依據偏好儲存及分類內容。
以指定的解析度傳回連續的影片串流
previewFormat 中的 [選項]。
這個指令應會傳回「Content-Type: multipart/x-mixed-replace;」(內容類型:多部分/x 混合取代;boundary="---osclivepreview---"".
這項指令已新增至 API 級別 2。
參數
結果
錯誤
- disabledCommand:指令目前已停用。
例如相機正在錄影
- INVALIDParameterName:輸入參數名稱是
則無法辨識。
指令 I/O |
| 指令輸入 |
none |
| 指令輸出 |
Continuous video stream. |
| 指令輸出 (錯誤) |
{
"error": {
"code": "disabledCommand",
"message": "Command is currently disabled."
}
} |
[null,null,["上次更新時間:2026-02-07 (世界標準時間)。"],[],["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"]]