camera.stopCapture
停止錄影或開放式間歇圖片拍攝,其取決於
captureMode
中的 [選項]。
如果對應的 startCapture
用於拍攝間隔相片,且已設定終止條件
(例如拍攝 10 張圖像後終止),然後stopCapture
不需要,但應視為有效的命令,
終止。這項指令已新增至 API 級別 2。
參數
結果
- fileUrls:包含影片檔案的絕對網址清單,
用於開放式間隔拍攝的圖片檔
錯誤
- disabledCommand:指令目前已停用。的
例如,擷取已停止。
- INVALIDParameterName:輸入參數名稱是
則無法辨識。
指令 I/O |
指令輸入 |
none |
指令輸出 |
{ "results": { "fileUrls":[ "url1", "url2", "url3", ... "urln" ] } } |
指令輸出 (錯誤) |
{ "error": { "code": "disabledCommand", "message": "Command is currently disabled." } } |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-21 (世界標準時間)。
[null,null,["上次更新時間:2024-08-21 (世界標準時間)。"],[[["Stops video or interval image capture, configurable via `captureMode`."],["Early termination is possible even if a termination condition is set."],["Returns URLs to captured video or image files upon successful execution."],["API level 2 or higher is required to use this command."],["Potential errors include disabled command and invalid parameter name."]]],["The `stopCapture` command halts video or open-ended interval image capture, introduced in API level 2. It requires no parameters. Successful execution returns a list of file URLs (`fileUrls`) for the captured video or images. While unnecessary for interval captures with set termination conditions, it enables early termination. Errors include `disabledCommand` (if the capture is already stopped) and `invalidParameterName`. The command input is empty, and the output provides either `fileUrls` or an error message.\n"]]