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 name | Parameter type | Required or not | Default value | Legal value | Parameter description |
|---|---|---|---|---|---|
| token | String | Yes | Administrator accessToken | ||
| deviceId | String | Yes | Device serial number | ||
| channelId | String | Yes | Channel 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"
}
