Cam.getLivepreview
इसके हिसाब से बताए गए रिज़ॉल्यूशन के साथ लगातार चलने वाली वीडियो स्ट्रीम दिखाता है
विकल्प में previewFormat
.
यह निर्देश दिखना चाहिए, "Content-Type: Multipart/x-mixed-replace; boundary="---osclivepreview---"".
यह निर्देश, एपीआई लेवल 2 में जोड़ा गया था.
पैरामीटर
- इस निर्देश का अनुरोध के मुख्य हिस्से में कोई पैरामीटर नहीं है.
नतीजे
- बाउंड्री सेपरेटर से अलग किए गए फ़्रेम के साथ, लगातार चलने वाली वीडियो स्ट्रीम.
गड़बड़ियां
- discountCommand: फ़िलहाल, कमांड की सुविधा बंद है;
उदाहरण के लिए, कैमरा वीडियो शूट कर रहा है.
- अमान्य पैरामीटर का नाम: इनपुट पैरामीटर का नाम यह है
पहचान नहीं की जा सकी.
कमांड I/O |
कमांड इनपुट |
none |
कमांड आउटपुट |
Continuous video stream. |
कमांड आउटपुट (गड़बड़ी) |
{ "error": { "code": "disabledCommand", "message": "Command is currently disabled." } } |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-08-21 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-08-21 (UTC) को अपडेट किया गया."],[[["Initiates a continuous video stream with the resolution set in previewFormat."],["Returns a multipart video stream separated by boundary \"---osclivepreview---\"."],["This command is only available for API level 2 and above."],["Potential errors include disabledCommand if the camera is busy and invalidParameterName for incorrect input."]]],["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"]]