Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/stream/stopRecording HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 65
Content-Type: application/json

{
	"mediaSessionId":"b8ffd290-bcfa-11e9-9482-17706e285ec5"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Tue, 28 Mar 2017 16:21:48 GMT


/data/send

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/data/send HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 201
Content-Type: application/json

{
	"nodeId":"cm2p2VmswiHZ4pO12Ps8anz1NYudEOL1@192.168.1.101",
	"operationId":"d1999750-fde9-11e6-9f1b-913210792936",
	"sessionId":"/192.168.1.102:15422/192.168.1.101:8443",
	"payload":{
    	"message":"hello"
	}
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Tue, 28 Mar 2017 16:21:18 GMT


/connection/find_all

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/connection/find_all HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 0
Content-Type: application/json
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Tue, 28 Mar 2017 16:42:07 GMT

[{
"custom":{},
"nodeId":null,
"appKey":"roomApp",
"sessionId":"/192.168.1.102:31049/192.168.1.101:8080",
"sipRegisterRequired":false,
"sipLogin":"a5ledkh95o57os4ge5i4ihpqio",
"sipAuthenticationName":null,
"sipPassword":null,
"sipVisibleName":null,
"sipDomain":null,
"sipOutboundProxy":null,
"sipPort":0,
"sipContactParams":null,
"width":0,
"height":0,
"supportedResolutions":"0x0",
"useProxy":true,
"useDTLS":true,
"useWsTunnel":false,
"useWsTunnelPacketization2":false,
"useBase64BinaryEncoding":false,
"mediaProviders":["WebRTC"],
"appMainClass":null,
"appCallbackClass":null,
"authToken":"/192.168.1.102:31049/192.168.1.101:8080",
"status":null,
"restClientConfig":null,
"clientVersion":"2.3.0",
"clientOSVersion":null,
"clientBrowserVersion":null
},{
"custom":{},
"nodeId":null,
"appKey":"defaultApp",
"sessionId":"/192.168.1.102:15422/192.168.1.101:8443",
"sipRegisterRequired":false,
"sipLogin":"sasr7al31j6d1vuuiv9v9vm7ig",
"sipAuthenticationName":null,
"sipPassword":null,
"sipVisibleName":null,
"sipDomain":null,
"sipOutboundProxy":null,
"sipPort":0,
"sipContactParams":null,
"width":0,
"height":0,
"supportedResolutions":"0x0",
"useProxy":true,
"useDTLS":true,
"useWsTunnel":false,
"useWsTunnelPacketization2":false,
"useBase64BinaryEncoding":false,
"mediaProviders":["WebRTC","WSPlayer"],
"appMainClass":null,
"appCallbackClass":null,
"authToken":"/192.168.1.102:15422/192.168.1.101:8443",
"status":null,
"restClientConfig":null,
"clientVersion":"0.5.18",
"clientOSVersion":"5.0 (Windows NT 6.3; Win64; x64) ...",
"clientBrowserVersion":"... Chrome/57.0.2987.110 ..."
}]

...

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/mixer/remove HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 99

{
	"uri": "mixer://mixer1",
	"remoteStreamName": "rtmp://rtmp.flashphoner.com:1935/live/stream1"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 24 Nov 2017 15:21:12 GMT


/mixer/find_all

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/mixer/find_all HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 0
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Fri, 24 Nov 2017 15:01:23 GMT

[{
"localMediaSessionId":"b38c284d-2d8c-4c1b-9a9b-c3049e5fe870",
"remoteMediaSessionId":null,
"localStreamName":"mixer2",
"remoteStreamName":null,
"uri":"mixer://mixer2",
"status":"PROCESSED_LOCAL",
"mediaSessions":[]
},{
"localMediaSessionId":"cafdd756-3451-4c0c-bf04-049cc2d5994a",
"remoteMediaSessionId":null,
"localStreamName":"mixer1_stream",
"remoteStreamName":null,
"uri":"mixer://mixer1",
"status":"PROCESSED_LOCAL",
"mediaSessions":[]
}]


/mixer/terminate

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/mixer/terminate HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 31

{
	"uri": "mixer://mixer1"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 24 Nov 2017 14:55:35 GMT


 

...

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/cdn/show_nodes HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 0
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 224
Date: Thu, 06 Dec 2018 4:16:40 GMT


[
	{
        "globalState": "ACTIVE",
        "id": "192.168.1.64",
        "processingState": "NEW_STREAMS_ALLOWED",
        "role": "TRANSCODER"
    },
    {
        "globalState": "ACTIVE",
        "id": "192.168.1.39",
        "processingState": "NEW_STREAMS_ALLOWED",
        "role": "ORIGIN"
    }
]


/cdn/show_routes

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/cdn/show_routes HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 0
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 26
Date: Thu, 06 Dec 2018 4:16:40 GMT


{
    "0-192.168.1.5-0": "test"
}


/cdn/show_state

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/cdn/show_state HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 0
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 19
Date: Thu, 06 Dec 2018 8:26:44 GMT


[
	"NEW_STREAMS_ALLOWED"
]

...