Getting Started
Official Site
Getting Started
Official Site
  • Document description
  • Read before you start

  • Light application development guide

  • Mobile application development guide

  • Cloud live development guide

  • Desktop application development guide

  • Third party development guide

  • Message push development guide

  • IoT things data model

  • HTTP interface

    • Development specification
    • API privacy policy
    • Postman interface simulation call
    • accessToken: Get administrator token
    • API request example
    • Account docking
    • Push configuration
    • Cloud storage service
    • Equipment management

    • Device configurat

    • Video equipment

    • Device message
    • Device live broadcast
      • bindDeviceLive: Create device source live address
      • unbindLive: Delete the live broadcast address
      • liveList: Get Live List
      • queryLiveStatus: Get live broadcast status
      • modifyLivePlanStatus: Set the live broadcast plan switch
      • modifyLivePlan: Modify Live Plan Time
      • batchModifyLivePlan: Batch modify live plan time
      • getLiveStreamInfo: Get the live broadcast address and live broadcast status according to the serial number
      • createDeviceRtmpLive: Create rtmp protocol live address
      • deleteDeviceRtmpLive: Delete the rtmp protocol live address
      • queryDeviceRtmpLive: Query the rtmp protocol live address
    • Device lock access
  • Reference documents

On this page
Function details
Request address
Incoming parameter description
Sample input
Return data field description
Sample output

createDeviceRtmpLive: Create rtmp protocol live address

createDeviceRtmpLive: Create rtmp protocol live address

Function details

Create a live broadcast address of the rtmp protocol according to the device number and channel number.

Request address

https://openapi-[DataCenter].easy4ip.com/openapi/createDeviceRtmpLive

Incoming parameter description

Parameter nameParameter typeRequired or notDefault valueLegal valueParameter description
tokenStringYesAdministrator accessToken
deviceIdStringYesDevice serial number
channelIdStringYesChannel ID

Sample input

{
    "system":{
        "ver":"1.0",
        "appId":"lcdxxxxxxxxx",
        "sign":"469e57e01dcbd786f961d79bc231dd52",
        "time":1603366946,
        "nonce":"2e84717c-0f22-4424-8afe-19bab0d6d606"
    },
    "id":"051824b1-9655-4755-9cc2-adcc9ab5fef1",
    "params":{
        "deviceId":"TESTQWERXXXX",
        "channelId":"0",
        "token":"At_00000ad9e6e87f0142eb92e207aec46a"
    }
}

Return data field description

Field name Field type Field description
deviceId String Device serial number
channelId String Device channel number
rtmp String rtmp SD live broadcast address
rtmpHD String rtmp HD live broadcast address

Sample output

{
  "result":{
    "msg":"The operation was successful.",
    "code":"0",
    "data":{
      "deviceId": "TESTQWERXXXX",
      "channelId": "0",
      "rtmp": "rtmp://cmgw-test-hz.lechange.com:12966/live/28de595627d6d45cb4f40d56f075dcea5eb824722761574e",
      "rtmpHD": "rtmp://cmgw-test-hz.lechange.com:12966/live/28de595627d6d45c2d2d9779a33c7f5aa2ee05c7aa24205f"
    }
  },
  "id":"051824b1-9655-4755-9cc2-adcc9ab5fef1"
}
getLiveStreamInfo: Get the live broadcast address and live broadcast status according to the serial number
deleteDeviceRtmpLive: Delete the rtmp protocol live address