camera.stopCapture
ভিডিও ক্যাপচার বা ওপেন-এন্ডেড ইন্টারভাল ইমেজ ক্যাপচার বন্ধ করে, যা captureMode
অপশন দ্বারা নির্ধারিত হয়। যদি সংশ্লিষ্ট startCapture
ইন্টারভাল ইমেজ ক্যাপচারের জন্য হয় এবং টার্মিনেশন কন্ডিশন সেট করা থাকে (যেমন 10টি ইমেজ ক্যাপচার করার পরে এটি বন্ধ হয়ে যায়), তাহলে stopCapture
প্রয়োজন নেই, তবে, এটিকে এখনও প্রারম্ভিক সমাপ্তির জন্য একটি বৈধ কমান্ড হিসাবে বিবেচনা করা উচিত। এই কমান্ডটি API স্তর 2 এ যোগ করা হয়েছে।
পরামিতি
- অনুরোধের বডিতে এই কমান্ডের কোনো প্যারামিটার নেই।
ফলাফল
- 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 সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-11-08 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-11-08 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"]]