IotHub
  1. video
IotHub
  • README
  • Update Record
  • token
    • createToken
      POST
    • destroyToken
      POST
  • customer
    • customerPage
      POST
    • customerTree
      POST
  • device
    • command
      • commandSend
      • commandInfoList
      • cutOilElectric
      • getConfig
    • devicePage
      POST
    • deviceTypes
      POST
    • deviceTypeInfo
      POST
    • deviceDataByDeviceIds
      POST
    • deviceDataByCustomerId
      POST
    • deviceTripInfoByTripId
      POST
    • deviceTripsByDeviceId
      POST
    • expandInfoByDeviceId
      POST
    • saveDeviceChannelName
      POST
  • fence
    • fencePage
    • fenceInfo
    • addFence
    • saveFence
    • delFence
    • fenceDevices
    • fenceDeviceUpdate
    • fenceDeviceDel
    • fenceDeviceAdd
  • push
    • README
  • video
    • H5 page
    • H5 Page-V2
    • liveVideo
      POST
    • playBackList
      POST
    • historicalUpload
      POST
    • playBack
      POST
    • replaySet
      POST
    • taskPage
      POST
    • taskDelete
      POST
    • getNodes
      POST
  • alarm
    • alarmTypeList
    • alarmFilePage
    • alarmFileByAlarmId
    • alarmHistoryPage
    • alarmPageByUser
  • audio
    • README
    • talk
    • talkPlus
  • gallery
    • filePageV2
    • filePage
    • deleteFile
    • capture
    • capturePage
  • fleet
    • faceRecordPage
  • gps
    • historyData
  • Protocol Analysis
    POST
  1. video

playBack

Singapore
https://mettahub.mettaxiot.com/gps
Singapore
https://mettahub.mettaxiot.com/gps
POST
/v2/openapi/video/history/replay
9.26 Added parameter nodeValue, optional replay streaming node

Request

Header Params
Authorization
string 
required
Body Params application/json
deviceId
string  | null 
required
deviceId
channelId
integer  | null 
required
channelId
>= 1
playbackType
integer  | null 
required
playbackType 0:Normal ;1:Fast ;2:PlayBack;3:KeyFrame ;4:SingleFrame
fastForwardOrBackward
integer  | null 
required
fastForwardOrBackward 0:invalid; 1:1x; 2:2x 3:4x; 4:8x; 5:16x
startTime
string  | null 
required
startTime Device Time Zone yyyy-MM-dd HH:mm:ss
endTime
string  | null 
required
endTime Device Time Zone yyyy-MM-dd HH:mm:ss
nodeValue
string  | null 
optional
The name of the stream used to select the replay, or the default one if it is not passed The value of this parameter can be obtained through the /v2/audio/nodes interface
Example
{
    "deviceId": "string",
    "channelId": 1,
    "playbackType": 0,
    "fastForwardOrBackward": 0,
    "startTime": "string",
    "endTime": "string",
    "nodeValue": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mettahub.mettaxiot.com/gps/v2/openapi/video/history/replay' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "deviceId": "string",
    "channelId": 1,
    "playbackType": 0,
    "fastForwardOrBackward": 0,
    "startTime": "string",
    "endTime": "string",
    "nodeValue": "string"
}'

Responses

🟢200Success
application/json
Body
code
integer  | null 
optional
data
string  | null 
optional
msg
string  | null 
optional
Example
{
  "code": 0,
  "data": "",
  "msg": ""
}
Modified at 2025-06-06 08:23:23
Previous
historicalUpload
Next
replaySet
Built with