Prepare the appid/openid assigned by the Open Platform, the internal server-side secret, and a device ID or IMEI. The internal server-side secret must be stored on the server or in a secure configuration center. Do not place it in a frontend page, app, or mini program, and do not pass it as an external request parameter.
No. The documentation states that either device_id or IMEI can identify a device, and at least one must be provided. In practice, keep the selected field consistent with the API documentation.
sign must be generated on the server. The frontend should call only your own server API to obtain timestamp, nonce, and sign. The server reads the secret using openid / device_id and generates the signature, avoiding bypass risks caused by accepting the internal server-side secret from outside.
WebRTC stream URLs are used for live preview and usually have an expiration limit. Fetch them on demand instead of caching playback URLs for a long time.
First confirm that the device has been added to the Open Platform. Then check the device ID, device password, timestamp, nonce, and sign. An offline device can also prevent the live stream from being obtained.
Online/offline status depends on the device connection and platform detection, so a short delay may occur after the device is powered on or off. The business side should combine callback messages with active queries.
The developer must provide an HTTPS callback URL. The platform pushes events as POST JSON. The server should return a success result promptly and save the original data for traceability.
Yes. Fields such as timestamp, nonce, and data in the callback must participate in signature verification according to the documentation. Process the business event only after verification succeeds.
WebRTC is better suited to low-latency preview in web pages. RTSP is better suited to traditional streaming, NVR, or server-side pulling. RTSP usually depends on the device network and plaintext password parameters.
For joint debugging, follow this order: "Sign Generation Example -> Device Management -> Get WebRTC URL -> Event Callback". For GS3/GE1 devices, also read the GS/GE Device Integration Documentation.