camera.getLiveمعاينة
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
عرض بث فيديو مستمر بالدقة التي تحددها
previewFormat
في الخيارات.
يجب أن يعرض هذا الأمر "Content-Type: Multipart/x-mixed-replace; boundary="---osclivepreview---"".
تمت إضافة هذا الأمر في المستوى 2 من واجهة برمجة التطبيقات.
المعلمات
- لا يحتوي هذا الأمر على معلَمة في نص الطلب.
النتائج
- يشير ذلك المصطلح إلى بث فيديو متواصل يتضمّن إطارات تفصل بينها فواصل الحدود.
الأخطاء
- disableCommand: يكون الأمر غير مفعَّل حاليًا.
على سبيل المثال، تلتقط الكاميرا فيديو.
- spamPARAMName: اسم مَعلمة الإدخال هو.
لم يتم التعرّف عليها.
مفتاح Command I/O |
إدخال الطلب |
none |
مخرجات الأوامر |
Continuous video stream. |
مخرجات الأوامر (خطأ) |
{
"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 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eInitiates a continuous video stream with the resolution set in previewFormat.\u003c/p\u003e\n"],["\u003cp\u003eReturns a multipart video stream separated by boundary "---osclivepreview---".\u003c/p\u003e\n"],["\u003cp\u003eThis command is only available for API level 2 and above.\u003c/p\u003e\n"],["\u003cp\u003ePotential errors include disabledCommand if the camera is busy and invalidParameterName for incorrect input.\u003c/p\u003e\n"]]],["The command initiates a continuous video stream at the resolution defined by `previewFormat`. The stream is a multipart/x-mixed-replace type, using \"---osclivepreview---\" as a boundary separator. It accepts no parameters. The output is a continuous video stream with frames separated by the boundary. Errors include \"disabledCommand\" (e.g., when the camera is recording) and \"invalidParameterName\". This command was introduced in API level 2.\n"],null,["# camera.getLivePreview\n\nReturns a continuous video stream with the resolution specified by\n`previewFormat` in [Options](/streetview/open-spherical-camera/reference/options).\nThis command should return, \"Content-Type: multipart/x-mixed-replace; boundary=\"---osclivepreview---\"\".\n**This command was added in API level 2.**\n\nParameters\n----------\n\n- This command has no parameter in request body.\n\nResults\n-------\n\n- A continuous video stream with frames separated by the boundary separator.\n\nErrors\n------\n\n- **disabledCommand:** Command is currently disabled; for example, the camera is shooting a video.\n- **invalidParameterName:** The input parameter name is unrecognized.\n\n| Command I/O ----------- ||\n|----------------------------|-----------------------------------------------------------------------------------------------------|\n| **Command Input** | ```text none ``` |\n| **Command Output** | ```text Continuous video stream. ``` |\n| **Command Output (Error)** | ```text { \"error\": { \"code\": \"disabledCommand\", \"message\": \"Command is currently disabled.\" } } ``` |"]]