H5 page
Live H5 page usage instructions document
2024-4-2 Simplified the format of passed parameters
videoList -> ids
The device live stream page is used to display the real-time video stream of the specified device. Users can watch the real-time operation of the device through this page.
Parameter name | Parameter Type | Required/Optional | Describe |
---|---|---|---|
ids | array | Required | Used to specify the video stream list to be queried. The parameter value is an array containing multiple objects, each object contains the device ID and channel number. The format of each object is as follows: |
deviceId1-ch1,deviceId2-ch2... | |||
token | string | Required | Authentication token used to verify user permissions. Ensure that only authorized users can access the page by providing a valid token. |
display | string | Optional | Default: There are 2 videos per line; display=block:There will only be one video per line |
1.
2.
videoList
parameter contains the correct device ID
and channel number
, as well as the token
parameter.3.
4.
device ID
and channel number
in the videoList
parameter are correct, otherwise the video stream may not be queried correctly or incorrect results may be displayed.token
parameters to others, otherwise it may allow unauthorized users to access the page or obtain sensitive information.Historical playback H5 page usage instructions document
This page provides a device history playback function. Users can view device data within a specified time period by specifying the device ID, channel number, start time, and end time.
Parameter | Required/Optional | Describe |
---|---|---|
deviceId | Required | Device ID, used to specify the device to be queried. |
channelId | Required | Channel number, used to specify the channel of the device to be queried. |
endTime | Required | End time, in the format YYYY-MM-DDHH:MM:SS, used to specify the time range of the query. |
startTime | Required | Start time, in the format YYYY-MM-DDHH:MM:SS, used to specify the time range of the query. |
token | Required | Authentication token, used to verify user permissions. |
1.
2.
device ID
, channel number
, start time
, end time
and authentication token
.3.
4.
token
is an important credential used to verify user permissions. Please keep it properly and do not disclose it to others.How to get Token
token
required to access the device history playback page, you need to perform the following steps:1.
2.
3.
APIkey
and APISecret
fields. Be sure to record these two values carefully as they are the key credentials used to create the token.4.
APIkey
and APISecret
you obtained in step 3 to generate a token by calling our createToken interface. You can do this using any tool or library that supports HTTP requests. The specific request method and parameters may vary according to the documentation of the interface, so please refer to the relevant documentation for details.5.
token
part in the address of the device's history replay page. You should now be able to successfully access the page and view the desired device history replay.APIkey
and APISecret
remain private and do not share them with others. They are sensitive information used to verify your identity and authorize access. If someone else obtains these credentials, they could take unauthorized actions on your behalf. Therefore, please keep this information in a safe place.If you encounter any problems in obtaining or using tokens, or need further help and guidance, please contact our technical support team. They will be happy to provide you with support and service.
Modified at 2024-10-21 08:41:40