Camera.stopCapture
หยุดจับภาพวิดีโอหรือจับภาพตามช่วงเวลาแบบปลายเปิด
captureMode
ในตัวเลือก
หาก startCapture
ที่เกี่ยวข้อง
มีไว้สำหรับจับภาพช่วงเวลาและมีการตั้งค่าเงื่อนไขการสิ้นสุด
(เช่น ภาพจะสิ้นสุดหลังจากจับภาพ 10 ภาพ) จากนั้นstopCapture
ไม่จำเป็น แต่ควรถือเป็นคำสั่งที่ถูกต้องตั้งแต่เนิ่นๆ
การสิ้นสุดข้อตกลง เพิ่มคำสั่งนี้ใน API ระดับ 2
พารามิเตอร์
- คำสั่งนี้ไม่มีพารามิเตอร์ในเนื้อหาคำขอ
ผลลัพธ์
- fileUrls: รายการ URL แบบสัมบูรณ์ ที่ชี้ไปยังไฟล์วิดีโอ หรือ
ไฟล์ภาพสำหรับการจับภาพตามช่วงเวลาแบบปลายเปิด
ข้อผิดพลาด
- disableCommand: ปิดใช้คำสั่งอยู่ในขณะนี้ สำหรับ
เช่น การจับภาพหยุดแล้ว
- invalidParametersName: ชื่อพารามิเตอร์อินพุตคือ
ไม่รู้จัก
Command I/O |
อินพุตคำสั่ง |
none |
เอาต์พุตคำสั่ง |
{ "results": { "fileUrls":[ "url1", "url2", "url3", ... "urln" ] } } |
เอาต์พุตคำสั่ง (ข้อผิดพลาด) |
{ "error": { "code": "disabledCommand", "message": "Command is currently disabled." } } |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-21 UTC
[null,null,["อัปเดตล่าสุด 2024-08-21 UTC"],[[["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"]]