camera.stopCapture
Stops video capture or open-ended interval image capture, determined by
captureMode
in Options.
If the corresponding startCapture
is for interval image capture and the termination condition is set
(e.g. it terminates after capturing 10 images), then stopCapture
is not needed, however, it should still be treated as a valid command for early
termination. This command was added in API level 2.
Parameters
- This command has no parameter in request body.
Results
- fileUrls: A list of absolute URLs, pointing to video files or
image files for open-ended interval capture.
Errors
- disabledCommand: Command is currently disabled; for
example, the capture has already been stopped.
- invalidParameterName: The input parameter name is
unrecognized.
Command I/O |
Command Input |
none |
Command Output |
{
"results": {
"fileUrls":[
"url1",
"url2",
"url3",
...
"urln"
]
}
} |
Command Output (Error) |
{
"error": {
"code": "disabledCommand",
"message": "Command is currently disabled."
}
} |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[null,null,["Last updated 2024-10-09 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"]]