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

liveVideo

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

Request

Header Params
Authorization
string 
required
Body Params application/json
deviceId
string  | null 
required
deviceId
channelId
integer  | null 
required
channelId
start with 1
>= 1
bitstreamType
integer  | null 
optional
Video stream 0: Main stream 1: Sub-stream Default main stream
nodeValue
string  | null 
optional
The name of the streaming server for the live stream 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,
    "bitstreamType": 0,
    "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/live' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "deviceId": "string",
    "channelId": 1,
    "bitstreamType": 0,
    "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
H5 Page-V2
Next
playBackList
Built with