add-serve

Use the interface to add stream servers, 16 servers are supported at most.

Different servers with the same configurations are not allowed, such as:

  • Custom RTMP servers with the same URL and StreamKey
  • Other RTMP servers(Twitch/YouTube/Facebook) with the same StreamKey
  • RTSP streams with the same port number and StreamKey

HTTP Request

GET http://ip/usapi?method=add-server&type=xxx&url=xxx&key=xxx&...
Parameter Description
method add-server
type Indicates server type.
0: RTMP
1: Twitch
2: YouTube
3: Facebook
100: RTSP
name Indicates server name, the characters contain
1. 1 to 32 characters
2. A to Z, a to z, 0 to 9, spaces ._-+', and cannot start or end with space.
url Indicates server address or RTSP port.
key Indicates stream key.
is-auth Indicates authentication status.
0: authentication is not needed
1: authentication is needed. Username and password are required.
user Indicates user name.
passwd Indicates password.
token Indicates Token.
net-mode Indicates the network priority.
0: Mobile network first
1: wired Ethernet first
2: Wi-Fi first

Response Body

{
  "result": 0
}
Item Description
result 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values.

results matching ""

    No results matching ""

    results matching ""

      No results matching ""