Home / Docs Center / Device API Reference / Legacy API Quick Start

Legacy API Quick Start

Device API Reference · Legacy API

Project: Device API Documentation (New) | page_id: 486

Get streaming status: (0 means error, 1 means the streaming setting is disabled, 2 means normal)

Visit http://192.168.0.10/jsonfile/rtmpstatus

{"rtmpstatus":["2","2","1","1"]}

means that for channel 1 and channel 2, RTMP publishing address 1 streaming is normal
for channel 3 and channel 4, RTMP publishing address 1 streaming is disabled

Visit http://192.168.0.10/jsonfile/rtmpstatus1

{"rtmpstatus1":["2","1","2","1"]}

means that for channel 1 and channel 3, RTMP publishing address 2 streaming is normal
for channel 2 and channel 4, RTMP publishing address 2 streaming is disabled

Enable/Disable Streaming

Enable/disable RTMP publishing address 1

channnel = number of channels - 1
value: start means enable, stop means disable

Enable streaming on channel 1 RTMP publishing address 1

http://192.168.0.10/control?command=live_control&channel=0&value=start&auth=f6fdffe48c908deb0f4c3bd36c032e72

Enable streaming on channel 3 RTMP publishing address 1

http://192.168.0.10/control?command=live_control&channel=2&value=start&auth=f6fdffe48c908deb0f4c3bd36c032e72

Enable streaming on channel 4 RTMP publishing address 1

http://192.168.0.10/control?command=live_control&channel=3&value=start&auth=f6fdffe48c908deb0f4c3bd36c032e72

Disable streaming on channel 1 RTMP publishing address 1

http://192.168.0.10/control?command=live_control&channel=0&value=stop&auth=f6fdffe48c908deb0f4c3bd36c032e72

Disable streaming on channel 3 RTMP publishing address 1

http://192.168.0.10/control?command=live_control&channel=2&value=stop&auth=f6fdffe48c908deb0f4c3bd36c032e72

Disable streaming on channel 4 RTMP publishing address 1

http://192.168.0.10/control?command=live_control&channel=3&value=stop&auth=f6fdffe48c908deb0f4c3bd36c032e72

Enable/disable RTMP publishing address 2

channnel = total number of channels * 2 + channel number - 1 (the number of channels is how many channels there are in the channel settings; taking a dual-channel HDMI encoder as an example, the number of channels is 4)
value: start means enable, stop means disable

Enable streaming on channel 1 RTMP publishing address 2(channel = 4*2 + 1 - 1)

http://192.168.0.10/control?command=live_control&channel=8&value=start&auth=f6fdffe48c908deb0f4c3bd36c032e72

Enable streaming on channel 3 RTMP publishing address 2(channel = 4*2 + 3 - 1)

http://192.168.0.10/control?command=live_control&channel=10&value=start&auth=f6fdffe48c908deb0f4c3bd36c032e72

Enable streaming on channel 4 RTMP publishing address 2(channel = 4*2 + 4 - 1)

http://192.168.0.10/control?command=live_control&channel=11&value=start&auth=f6fdffe48c908deb0f4c3bd36c032e72

Disable streaming on channel 1 RTMP publishing address 2

http://192.168.0.10/control?command=live_control&channel=8&value=stop&auth=f6fdffe48c908deb0f4c3bd36c032e72

Disable streaming on channel 3 RTMP publishing address 2

http://192.168.0.10/control?command=live_control&channel=10&value=stop&auth=f6fdffe48c908deb0f4c3bd36c032e72

Disable streaming on channel 4 RTMP publishing address 2

http://192.168.0.10/control?command=live_control&channel=11&value=stop&auth=f6fdffe48c908deb0f4c3bd36c032e72

Enable/Disable Recording

channnel = total number of channels + channel number - 1 (the number of channels is how many channels there are in the channel settings; taking a dual-channel HDMI encoder as an example, the number of channels is 4)
value: start means enable, stop means disable

Enable streaming on channel 1 RTMP publishing address 2(channel = 4 + 1 - 1)

http://192.168.0.10/control?command=live_control&channel=4&value=start&auth=f6fdffe48c908deb0f4c3bd36c032e72

Enable streaming on channel 3 RTMP publishing address 2(channel = 4 + 3 - 1)

http://192.168.0.10/control?command=live_control&channel=6&value=start&auth=f6fdffe48c908deb0f4c3bd36c032e72

Enable streaming on channel 4 RTMP publishing address 2

http://192.168.0.10/control?command=live_control&channel=7&value=start&auth=f6fdffe48c908deb0f4c3bd36c032e72

Disable streaming on channel 1 RTMP publishing address 2

http://192.168.0.10/control?command=live_control&channel=4&value=stop&auth=f6fdffe48c908deb0f4c3bd36c032e72

Disable streaming on channel 3 RTMP publishing address 2

http://192.168.0.10/control?command=live_control&channel=6&value=stop&auth=f6fdffe48c908deb0f4c3bd36c032e72

Disable streaming on channel 4 RTMP publishing address 2

http://192.168.0.10/control?command=live_control&channel=7&value=stop&auth=f6fdffe48c908deb0f4c3bd36c032e72
Didn't find what you need?Contact us,Talk to our engineers directly.

Request a Quote

Fill in the form and we will get back with a quote and proposal within 1 business day.

Click "Generate inquiry email" to open your mail client with the body pre-filled. If no mail client is configured, click "Copy" and paste it into webmail — recipient: sunshiyang@xstrive.com.