دستورات API دستورات مشخص شده را روی دوربین اجرا می کند و وضعیت ( in-progress
انجام، done
و غیره) دستورات اجرا شده را بررسی می کند. همه دستورات باید بر اساس مشخصات در OSC API Specification پیاده سازی شوند.
دستورات
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThe commands API allows you to execute specific commands on a camera and monitor their progress.\u003c/p\u003e\n"],["\u003cp\u003eAll commands must adhere to the specifications outlined in the OSC API Specification.\u003c/p\u003e\n"],["\u003cp\u003eOnce a command is completed or results in an error, the camera no longer tracks its ID.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecamera.getImage\u003c/code\u003e command should respond with a Content-Type of \u003ccode\u003eimage/jpeg\u003c/code\u003e upon successful completion.\u003c/p\u003e\n"]]],["The commands API manages the execution of commands on a camera and monitors their status. Commands are implemented according to the OSC API Specification. The API tracks command status as `in-progress`, `done`, or others. Upon completion or error, the camera no longer tracks the command ID. The `camera.getImage` command, when in `done` state, returns a response with `Content-Type: image/jpeg`.\n"],null,["# Commands\n\nThe commands API executes specified commands on the camera and checks the status (`in-progress`, `done`, and so on) of executed commands. All commands need to be implemented based on the specification in the [OSC API Specification](/streetview/open-spherical-camera/reference/camera).\n| **Note:**\n|\n| - After a command returns state `done` and results, or `error` state, the camera no longer needs to track the command ID.\n| - Response to command `camera.getImage` needs to be `Content-Type: image/jpeg` when the state is `done`."]]