מצלמה.stopCapture
הפסקת צילום הווידאו או צילום התמונה במרווחי זמן פתוחים, שנקבע לפי
captureMode
באפשרויות.
אם הערכים של startCapture
התואמים
הוא לצילום תמונה במרווחי זמן, ותנאי הסיום מוגדר
(למשל, הוא מסתיים לאחר צילום של 10 תמונות), ואז stopCapture
אין צורך, אבל יש להתייחס אליה כפקודה תקפה בשלב מוקדם
על סיום ההסכם. הפקודה הזו נוספה ברמת API 2.
פרמטרים
- פקודה זו לא מכילה פרמטר בגוף הבקשה.
תוצאות
- fileUrls: רשימה של כתובות URL מוחלטות, שמפנות אל קובצי וידאו או
קובצי תמונה לצילום במרווחים פתוחים.
שגיאות
- DisabledCommand: הפקודה מושבתת כרגע. עבור
לדוגמה, הצילום כבר הופסק.
- falseParameterName: השם של פרמטר הקלט הוא
לא מזוהה.
Command I/O |
קלט פקודה |
none |
פלט הפקודה |
{ "results": { "fileUrls":[ "url1", "url2", "url3", ... "urln" ] } } |
פלט הפקודה (שגיאה) |
{ "error": { "code": "disabledCommand", "message": "Command is currently disabled." } } |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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"]]