aparat.stop_zapis
Zatrzymuje nagrywanie filmu lub robienie zdjęć z interwałami bez przerw, co jest określone przez
captureMode
w Opcjach.
Jeśli odpowiadająca startCapture
służy do robienia zdjęć z interwałami, a warunek zakończenia jest ustawiony
(np. kończy się po zrobieniu 10 obrazów), a następnie stopCapture
nie jest potrzebne, jednak należy je traktować jako prawidłowe polecenie dla wczesnego etapu
aplikacji. To polecenie zostało dodane na poziomie interfejsu API 2.
Parametry
- To polecenie nie ma parametru w treści żądania.
Wyniki
- fileUrls: lista bezwzględnych adresów URL wskazujących pliki wideo lub
plików graficznych do otwartych sesji zdjęciowych interwałami.
Błędy
- disableCommand: polecenie jest obecnie wyłączone. w przypadku
oznacza to, że przechwytywanie zostało już zatrzymane.
- invalidParametrName:nazwa parametru wejściowego to
Nie rozpoznano.
Polecenie I/O |
Dane wejściowe polecenia |
none |
Dane wyjściowe polecenia |
{ "results": { "fileUrls":[ "url1", "url2", "url3", ... "urln" ] } } |
Dane wyjściowe polecenia (błąd) |
{ "error": { "code": "disabledCommand", "message": "Command is currently disabled." } } |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-21 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]