API / streamZ/MSP 325N / Streaming
Streaming Commands: Resulution/bitrate/orientation/streaming address/control
Applies to
streamZ, MSP 325N
1. Read the selected streaming address and the streaming list
| Symbol | Size (Byte) | Definition | Remarks |
|---|---|---|---|
| CMD | 1 | 0XE1 | |
| DAT1 | 1 | 0X01 | |
| DAT2 | 1 | 0X01 | |
| DAT3 | 1 | Data block length (LSB) | |
| DAT4 | 1 | Data block length (MSB) |
Send command example
: <T0000e101010f00f2>{"language":1}0
Response command example: <F0000e10101ca04b1>{"deviceUuid":"yunbao4267b39f7370","msg":"success","data":{"deviceData":[],"historyData":[{"defaultTaoRtmp":true,"languagus":0,"status":0,"url":"rtmp://mpspush.tao1.info/live/yunbao4267b39f7370?txSecret=9e211a73b71633d87e4ca013bf07d22e&txTime=740F25F5","playFlv":"https://play.tao1.info/yunbao4267b39f7370.flv","playM3u8":"https://play.tao1.info/yunbao4267b39f7370.m3u8","desc":"TAO Cloud","type":0,"enable":false},{"defaultTaoRtmp":false,"languagus":0,"status":0,"url":"rtmp://push-rtmp-l26.douyincdn.com/third/stream-696845397010940390?arch_hrchy=c1&exp_hrchy=w1&expire=6af5875c&sign=1ef6b5b8c043df59d47e8dd709607b4c&t_id=037-2026110517310726BBABC6D8A27B0E758E-qD7r93","playFlv":"","playM3u8":"","desc":"抖音","param":"{"close_header_param_map":{"access-token":"act.3.UNaF6K7cx5ND6KBgBcFT6WoUzETC-aVQwvgnKdGwnUxcigscGZvK3Yobo2mw8j70sMBjVLIBBnYDOqIHtuAwNA1TxrdRJxPUPuaGXkbWA1GlM1ly56C3lYFBxeUH2LksaSRlwNz9g-KqFeK5xAedjC_--D-Y-UUBcaqpEg==_jj"},"close_body_param_str":"{\"app_id\":\"1006682\",\"close_key\":\"Ai2iGOCcld6MaNQXrHqPBiXOsUxHp_RFEbZPujcyZZgX\"}"}","type":1,"enable":true}],"isBle":false,"pushStatus":false,"pushFileStatus":false,"pushFileType":0,"timeDuration":0,"language":0},"code":0}0`
Response Data Block Description
| Parameter name | Required | Type | Description |
|---|---|---|---|
| deviceData | * | List | Device identification (delete works together with isBle) |
| historyData | * | List | Saves the history of whether push streaming is selected (can be deleted in any case)() |
| isBle | * | Boolean | Whether the device identification is Bluetooth. true: Bluetooth (device identification can be deleted), false: USB flash drive (device identification cannot be deleted) |
| pushStatus | * | Boolean | true: start streaming, false: stop streaming |
| pushFileStatus | * | Boolean | Playback file live status: true: live, false: not live |
| pushFileType | * | int | Playback file live type: 0 content live streaming, 1: slow live streaming |
| timeDuration | long | Streaming duration (in seconds) |
RtmpPreBean
| Parameter name | Required | Type | Description |
|---|---|---|---|
| url | * | String | Streaming address |
| playFlv | * | String | Pull stream address flv |
| playM3u8 | * | String | Pull stream address m3u8 |
| status | * | int | 0: saved, 1: not saved |
| defaultTaoRtmp | * | boolean | true: the default address cannot be deleted or modified, false: it can be deleted or modified |
| enable | bool | Whether it is turned on | |
| desc | String | Streaming address description |
2. Start (stop) streaming
| Symbol | Size (Byte) | Definition | Remarks |
|---|---|---|---|
| CMD | 1 | 0XE0 | |
| DAT1 | 1 | 0X01 | |
| DAT2 | 1 | 0X05 | |
| DAT3 | 1 | Data block length (LSB) | |
| DAT4 | 1 | Data block length (MSB) |
Send command example
: <T0000e0010539001f>{"ispush":true,"path":"","type":0,"mode":0,"language":1}0
Response command example: <F0000e001053d0023>{"deviceUuid":"yunbao4267b39f7370","msg":"success","code":0}0
Send Data Block Description
| Parameter | Required | Type | Description |
|---|---|---|---|
| ispush | * | boolean | true: start streaming, false: stop streaming |
| path | string | empty | |
| type | int | Streaming type: 0 | |
| mode | int | Playback mode: 0 |