Stop Live Streaming

2022-06-23
No Rating

Live Stop Push

services

Communication method: MQTT

API interface:

PUB Topic: thing/product/#{remote control/airport SN}/services
SUB Topic: thing/product/#{remote control/airport SN}/services_reply

Parameter Description:

  • #{pid}:Refers to the product ID of the gateway device, which is usually expressed by the SN number of the device, and is different for each device. So you need to use a wildcard when the server side subscribes to topic.

Example:

{
    "tid": "b31b7b40b1404d4697d3fb592bb18d0e",
    "bid": "c56a5a78a8894e5d9d6623fbd457298c",
    "method": "live_stop_push",
    "data": {
        "video_id": "1ZNDH1D0010098/0-42-0/zoom-0"
    }
}

Parameter Description:

  • video_id: ID number of the live video stream. String

    video_id has a format requirement, the specific combination format is aircraft SN / payload and enumeration values for mount locations / payload lens number.

​ Example: 1ZNDH1D0010098/0-39-7/normal-0

services_reply

  • For the message response, the server needs to keep the tid and bid consistent. The client uses these two fields to determine which message the server responds to.

    Example:

    {
        "tid":"fc55099072324bbba9ee7b014d9637de",
        "bid":"9b748a8e00b94d02879e506160cf7ab5",
        "method":"live_stop_push",
        "data":{
            "result":0
        }
    }
    

    Parameter Description:

    • result: Error code, see the chapter Error Code for specific meaning.