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

replaySet

Singapore
https://mettahub.mettaxiot.com/gps
Singapore
https://mettahub.mettaxiot.com/gps
POST
/v2/openapi/video/history/replaySet
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
playbackControl
integer  | null 
required
playbackControl
0:Start;
1:Pause;
2:End;
3:Fast;
4:Keyframe rewind playback;
5:Drag;
6:Keyframes
fastForwardOrBackward
integer  | null 
required
When playbackControl为 is 3 and 4, the content of this field is valid; otherwise, it is set to
Fast forward or rewind 0:invalid; 1:1x; 2:2x 3:4x; 4:8x; 5:16x
dragTime
string  | null 
required
dragTime Device Time Zone yyyy-MM-dd HH:mm:ss,
Effective when playbackControl=5 drag playback
nodeValue
string  | null 
optional
nodeValue,If not passed, the default node is used
Example
{
    "deviceId": "string",
    "channelId": 1,
    "playbackControl": 0,
    "fastForwardOrBackward": 0,
    "dragTime": "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/replaySet' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "deviceId": "string",
    "channelId": 1,
    "playbackControl": 0,
    "fastForwardOrBackward": 0,
    "dragTime": "string",
    "nodeValue": "string"
}'

Responses

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