camera.stopCapture
ضبط ویدیو یا ضبط تصویر با فاصله زمانی باز را متوقف میکند، که توسط captureMode
در گزینهها تعیین میشود. اگر startCapture
مربوطه برای ضبط تصویر با فاصله باشد و شرایط خاتمه تنظیم شده باشد (مثلاً پس از گرفتن 10 تصویر خاتمه می یابد)، پس نیازی به stopCapture
نیست، با این حال، همچنان باید به عنوان یک فرمان معتبر برای خاتمه زودهنگام تلقی شود. این دستور در سطح 2 API اضافه شده است.
پارامترها
- این دستور هیچ پارامتری در بدنه درخواست ندارد.
نتایج
- fileUrls: فهرستی از URLهای مطلق که به فایلهای ویدیویی یا فایلهای تصویری برای ضبط بازهای باز اشاره میکنند.
خطاها
- disabledCommand: فرمان در حال حاضر غیرفعال است. به عنوان مثال، ضبط قبلا متوقف شده است.
- invalidParameterName: نام پارامتر ورودی شناسایی نشده است.
دستور I/O |
---|
ورودی فرمان | none |
خروجی فرمان | { "results": { "fileUrls":[ "url1", "url2", "url3", ... "urln" ] } } |
خروجی فرمان (خطا) | { "error": { "code": "disabledCommand", "message": "Command is currently disabled." } } |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-11-08 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-11-08 بهوقت ساعت هماهنگ جهانی."],[[["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"]]