camera.stopCapture
إيقاف التقاط الفيديو أو التقاط الصور بفاصل زمني مفتوح، الذي يتم تحديده بواسطة
captureMode
في الخيارات.
إذا كانت قيمة startCapture
المقابلة
لالتقاط الصور بفاصل زمني ويتم ضبط شرط الإنهاء
(على سبيل المثال، ينتهي بعد التقاط 10 صور)، ثم stopCapture
غير ضروري، ومع ذلك يجب معاملته كأمر صالح في البداية
أو الإنهاء. تمت إضافة هذا الأمر في المستوى 2 من واجهة برمجة التطبيقات.
المعلمات
- لا يحتوي هذا الأمر على معلَمة في نص الطلب.
النتائج
- fileUrls: قائمة بعناوين URL المطلقة تشير إلى ملفات الفيديو أو
ملفات صور لالتقاط فاصل زمني مفتوح.
الأخطاء
- disableCommand: يكون الأمر غير مفعَّل حاليًا. حيث
مثلاً، تم بالفعل إيقاف الالتقاط.
- spamPARAMName: اسم مَعلمة الإدخال هو.
لم يتم التعرّف عليها.
مفتاح 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 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-08-21 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]