camera.stopCapture
Dừng quay video hoặc chụp ảnh theo khoảng thời gian mở, được xác định bằng giá trị
captureMode
trong mục Tuỳ chọn.
Nếu startCapture
tương ứng
là để chụp ảnh theo khoảng thời gian và điều kiện kết thúc được đặt
(ví dụ: hoạt động chấm dứt sau khi chụp 10 ảnh), sau đó stopCapture
không cần thiết, tuy nhiên, nó vẫn nên được coi là một lệnh hợp lệ cho
chấm dứt tài khoản. Lệnh này đã được thêm vào từ API cấp 2.
Tham số
- Lệnh này không có tham số trong nội dung yêu cầu.
Kết quả
- fileUrls: Danh sách các URL tuyệt đối, trỏ đến tệp video hoặc
tệp ảnh để chụp khoảng thời gian mở.
Lỗi
- disabledCommand: Lệnh hiện đang tắt; với
ví dụ: quá trình chụp đã bị dừng.
- không hợp lệ Tham số: Tên của tham số đầu vào là
không nhận dạng được.
Lệnh I/O |
Nhập lệnh |
none |
Kết quả lệnh |
{ "results": { "fileUrls":[ "url1", "url2", "url3", ... "urln" ] } } |
Ra lệnh (Lỗi) |
{ "error": { "code": "disabledCommand", "message": "Command is currently disabled." } } |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-08-21 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]