Versions Compared

Key

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

...

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/stream/event/send HTTP/1.1
Host: localhost:8081
Content-Type: application/json
Content-Length: 77

{
    "streamName":"test",
    "payload":{
        "number":33,
        "string":"hello",
        "boolean":true
    }
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true


/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
data/
find_all
send 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":
{}, "nodeId":null
"cm2p2VmswiHZ4pO12Ps8anz1NYudEOL1@192.168.1.101",
	
"
appKey
operationId":"
roomApp
d1999750-fde9-11e6-9f1b-913210792936",
	
"
sessionId
sessionIds": [
        "/192.168.1.102:
31049
15422/192.168.1.101:
8080
8443",
"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.103:53002/192.168.1.101:8443"
    ],
	"payload":{
    	"message":"hello"
	}
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Content-Length: 0
Date: Mon, 10 Apr 2023 16:21:18 GMT

/data/batch_send

Request

Response

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

[
    {
	     "nodeId":"cm2p2VmswiHZ4pO12Ps8anz1NYudEOL1@192.168.1.101",
	     "operationId":"d1999750-hello",
	     "sessionId":"/192.168.1.102:
31049
15422/192.168.1.101:
8080
8443",
	
"status
     "payload":
null, "restClientConfig":null, "clientVersion":"2.3.0", "clientOSVersion":null, "clientBrowserVersion":null },{ "custom":{}, "nodeId":null, "appKey":"defaultApp",
{
    	     "message":"hello"
	     }
    },
    {
	     "nodeId":"cm2p2VmswiHZ4pO12Ps8anz1NYudEOL1@192.168.1.101",
	     "operationId":"d1999750-kick",
	     "sessionId":"/192.168.1.
102
103:
15422
53002/192.168.1.101:8443",
	
"sipRegisterRequired
     "payload":
false, "sipLogin
{
    	     "message":"
sasr7al31j6d1vuuiv9v9vm7ig
bye"
,

	
"sipAuthenticationName":null, "sipPassword":null, "sipVisibleName":null, "sipDomain":null, "sipOutboundProxy":null, "sipPort":0, "sipContactParams":null, "width":0, "height":0, "supportedResolutions":"0x0
     }
    }
]
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Content-Length: 0
Date: Mon, 10 Apr 2023 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",
		"useProxy":truesessionId":"/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","WSPlayer"],
		"appMainClass":null,
		"appCallbackClass":null,
		"authToken":"/192.168.1.102:1542231049/192.168.1.101:84438080",
		"status":null,
		"restClientConfig":null,
		"clientVersion":"02.53.180",
		"clientOSVersion":"5.0 (Windows NT 6.3; Win64; x64) ..."null,
		"clientBrowserVersion":null
	},{
		"custom":{},
		"nodeId":null,
		"clientBrowserVersionappKey":"... Chrome/57.0.2987.110 ..."
	}
]

/connection/find

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/connection/find HTTP/1.1 Host:
defaultApp",
		"sessionId":"/192.168.1.102:15422/192.168.1.101:
8081 Content-Length: 48 Content-Type: application/json { "appKey":"roomApp", "clientVersion":"0.5.18" } 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 17:12:38 GMT [ { "custom":{}, "nodeId":null, "appKey":"roomApp", "sessionId":"/192.168.1.102:39564/192.168.1.101:8443", "sipRegisterRequired":false, "sipLogin":"kj32o1iok1bnk33smpjg3g7el0
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",
		"
sipAuthenticationName
useProxy":
null
true,
		"
sipPassword
useDTLS":
null
true,
		"
sipVisibleName
useWsTunnel":
null
false,
		"
sipDomain
useWsTunnelPacketization2":
null
false,
		"
sipOutboundProxy
useBase64BinaryEncoding":
null
false,
		"
sipPort
mediaProviders":
0, "sipContactParams":null
["WebRTC","WSPlayer"],
		"
width
appMainClass":
0
null,
		"
height
appCallbackClass":
0
null,
		"
supportedResolutions":"0x0", "useProxy":true, "useDTLS":true, "useWsTunnel":false, "useWsTunnelPacketization2":false, "useBase64BinaryEncoding":false, "mediaProviders":["WebRTC","WSPlayer"], "appMainClass":null, "appCallbackClass":null, "authToken":"/192.
authToken":"/192.168.1.102:
39564
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 ..."
	}
,

]


/connection/find

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/connection/find HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 48
Content-Type: application/json

{
		"customappKey":{}"roomApp",
		""clientVersion":"0.5.18"
}
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 17:12:38 GMT

[
	{
		"custom":{},
		"nodeId":null,
		"appKey":"roomApp",
		"sessionId":"/192.168.1.102:2147939564/192.168.1.101:80808443",
		"sipRegisterRequired":false,
		"sipLogin":"e09elik992uig0fk08kddtijp8kj32o1iok1bnk33smpjg3g7el0",
		"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":["FlashWebRTC","WSPlayer"],
		"appMainClass":null,
		"appCallbackClass":null,
		"authToken":"/192.168.1.102:2147939564/192.168.1.101:80808443",
		"status":null,
		"restClientConfig":null,
		"clientVersion":"0.5.18",
		"clientOSVersion":"5.0 (Windows NT 6.3; WOW64Win64; Trident/7.0x64) ...",
		"clientBrowserVersion":"Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7... Chrome/57.0.2987.110 ..."
	}
]

/connection/terminate

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/connection/terminate HTTP/1.1 Host:192.168.1.101:8081 Content-Length: 55 Content-Type: application/json {
,{
		"custom":{},
		"nodeId":null,
		"appKey":"roomApp",
		"sessionId":"/192.168.1.102:
39564
21479/192.168.1.101:
8443
8080"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Tue, 28 Mar 2017 17:21:40 GMT

/push/startup

...

Request

...

Response

...

Code Block
languagejs
themeRDark
POST /rest-api/push/startup HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 73
Content-Type: application/json

{
	"streamName": "cf58",
	"rtmpUrl":"rtmp://rtmp.flashphoner.com:1935/live/test",
    "rtmpTransponderFullUrl": true
}

...

Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Fri, 28 Apr 2017 12:53:00 GMT

{
	"mediaSessionId":"6dk1l0m3cm17c68232bccm52f1",
	"streamName":"test",
	"rtmpUrl":"rtmp://rtmp.flashphoner.com:1935/live"
}

/push/find

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/push/find HTTP/1.1 Host:
,
		"sipRegisterRequired":false,
		"sipLogin":"e09elik992uig0fk08kddtijp8",
		"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":["Flash"],
		"appMainClass":null,
		"appCallbackClass":null,
		"authToken":"/192.168.1.102:21479/192.168.1.101:
8081 Content-Length: 40 Content-Type: application/json { "rtmpUrl":"rtmp://localhost:1935/live" }
8080",
		"status":null,
		"restClientConfig":null,
		"clientVersion":"0.5.18",
		"clientOSVersion":"5.0 (Windows NT 6.3; WOW64; Trident/7.0...",
		"clientBrowserVersion":"Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0..."
	}
]


/connection/terminate

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/connection/terminate HTTP/1.1
200 OK

Server: Apache-Coyote/1.1
Host:192.168.1.101:8081
Content-Length: 55
Content-Type: application/json
;charset=UTF-8

Date: Fri, 28 Apr 2017 12:55:31 GMT [

{
	
"
mediaSessionId
sessionId":"
bung2cu1npigp8u4bd75ha4c5r", "streamName":"rtmp_4be7", "rtmpUrl":"rtmp://localhost:1935/live" },{ "mediaSessionId":"hs4khbl7g3abmnkeli217lrcmf", "streamName":"rtmp_f85d", "rtmpUrl":"rtmp://localhost:1935/live" } ]

...

/192.168.1.102:39564/192.168.1.101:8443"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Tue, 28 Mar 2017 17:21:40 GMT


/push/startup

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/push/
find_all
startup HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 
0
73
Content-Type: application/json
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK Server: Apache-Coyote/


{
	"streamName": "cf58",
	"rtmpUrl":"rtmp://rtmp.flashphoner.com:1935/live/test",
    "rtmpTransponderFullUrl": true
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Fri, 28 Apr 2017 12:
56
53:
04
00 GMT

[
{
	
"mediaSessionId":"6dk1l0m3cm17c68232bccm52f1",
	
"streamName":"
rtmp_cf58
test",
	
"rtmpUrl":"rtmp://rtmp.flashphoner.com:1935/live"
},{ "mediaSessionId":"bung2cu1npigp8u4bd75ha4c5r", "streamName":"rtmp_4be7",
}


/push/find

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/push/find HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 40
Content-Type: application/json

{
	"rtmpUrl":"rtmp://localhost:1935/live"
},
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Fri, 28 Apr 2017 12:55:31 GMT

[
	{
		"mediaSessionId":"bung2cu1npigp8u4bd75ha4c5r",
		"streamName":"rtmp_4be7",
		"rtmpUrl":"rtmp://localhost:1935/live"
	},{
		"mediaSessionId":"hs4khbl7g3abmnkeli217lrcmf",
		"streamName":"rtmp_f85d",
		"rtmpUrl":"rtmp://localhost:1935/live"
	}
]


/push/

...

find_all

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/push/terminatefind_all HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 480
Content-Type: application/json

{
	"mediaSessionId": "6dk1l0m3cm17c68232bccm52f1"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-LengthType: 0application/json;charset=UTF-8
Date: Fri, 28 Apr 2017 12:56:51

/push/mute

Request

04 GMT

[
	{
		"mediaSessionId":"6dk1l0m3cm17c68232bccm52f1",
		"streamName":"rtmp_cf58",
		"rtmpUrl":"rtmp://rtmp.flashphoner.com:1935/live"
		},{
		"mediaSessionId":"bung2cu1npigp8u4bd75ha4c5r",
		"streamName":"rtmp_4be7",
		"rtmpUrl":"rtmp://localhost:1935/live"
		},{
		"mediaSessionId":"hs4khbl7g3abmnkeli217lrcmf",
		"streamName":"rtmp_f85d",
		"rtmpUrl":"rtmp://localhost:1935/live"
	}
]


/push/terminate

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/push/
mute
terminate HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 48
Content-Type: application/json

{
	"mediaSessionId": "
gocrv1ncahlkcqht9k2nbs8tbc
6dk1l0m3cm17c68232bccm52f1"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: 
Mon
Fri, 
03
28 
Jul
Apr 2017 
09
12:
06:14
56:51


/push/mute

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/push/mute HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 48
Content-Type: application/json

{
	"mediaSessionId": "gocrv1ncahlkcqht9k2nbs8tbc"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Mon, 03 Jul 2017 09:06:14 GMT


/push/unmute

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/push/unmute HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 48
Content-Type: application/json

{
	"mediaSessionId": "gocrv1ncahlkcqht9k2nbs8tbc"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Mon, 03 Jul 2017 09:07:27 GMT

...

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/mixer/setAudioVideo HTTP/1.1
Host: localhost:8081
Accept: */*
Content-Type: application/json
Content-Length: 62
 
{
 "uri": "mixer://m1",
 "streams": "^stream.*",
 "audioLevel": 0,
 "videoMuted": true
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Content-Length: 0
Date: Fri, 24 Nov 2020 14:55:35 GMT



/mixer/

...

set_body_watermark

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/mixer/
test/start
set_body_watermark HTTP/1.1
HOST
Host: 
192.168.1.101
localhost:8081
Accept: */*
Content-
type
Type: application/json
Content-
length
Length: 
107
68

{
 "
feedingStreams
uri":
[ "s1
"mixer://m1",
 "
s2" ], "mixerCount": 3, "streamsInMixer": 1, "intervalInSeconds": 60 }
watermark":"/opt/media/logo.png",
 "x":10,
 "y":10
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server
Access-Control-Allow-Origin: 
Apache-Coyote/1.1
*
Access-Control-Allow-Credentials: true
Content-Length: 0
Date: 
Wed
Fri, 
22
19 Aug 
2018
2022 
08
14:
53
55:
26
35 GMT


 

/mixer/

...

set_stream_watermark

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/mixer/
test/stop
set_stream_watermark HTTP/1.1
HOST
Host: 
192.168.1.101
localhost:8081
Accept: */*
Content-
type
Type: application/json
Content-
length
Length: 
0
124

{
}

Code Block
languagejs
themeRDark
HTTP/1.1 200 OK Server: Apache-Coyote/1.1
 "uri":"mixer://m1",
 "watermark":"/opt/media/logo.png",
 "mediaSessionId":"f2019570-1f9d-11ed-b6ef-050068a3a458",
 "x":10,
 "y":10
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Content-Length: 0
Date: 
Wed
Fri, 
22
19 Aug 
2018
2022 
08
14:
53
55:
26
35 GMT


 

/mixer/

...

set_parameter

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/mixer/
test/get_start_example
set_parameter HTTP/1.1
HOST
Host: 
192.168.1.101
localhost:8081
Content-
type
Type: application/json
Content-
length
Length: 
0
55

{
}
 "uri":"mixer://m1",
 "mixerLayoutDir":"/opt/GridLayout"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server
Access-Control-Allow-Origin: 
Apache-Coyote/1.1
*
Access-Control-Allow-Credentials: true
Content-Length: 
107
0
Date: 
Wed
Mon, 
22
14 
Aug
Nov 
2018
2022 
08
14:
53
55:
26 GMT { "feedingStreams": [ "stream1", "stream2", "stream3" ], "mixerCount": 3, "streamsInMixer": 1, "intervalInSeconds": 60 }

...

35 GMT


 

/mixer/set_stream_avatar

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/
pull/pull
mixer/set_stream_avatar HTTP/1.1
Host: 
192.168.1.101
localhost:8081
Content-Type: application/json
;charset=UTF-8

Content-Length: 
60
74

{
 "uri":"
wss
mixer://
demo.flashphoner.com:8443/websocket
m1",
 "
localStreamName
remoteStreamName":
"
6602
user2",
 "
remoteStreamName
avatar":
"6602
"/opt/avatar.png"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1 Content-Length: 0 Date: Thu, 23 Nov 2017 09:47:23 GMT

...

Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true


 

/mixer/remove_stream_avatar

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/
pull
mixer/
find
remove_stream_
all
avatar HTTP/1.1
Host: 
192.168.1.101
localhost:8081
Content-
Length
Type: 
0
application/json
Content-
Type
Length: 
application/json
47

{
 "uri":"mixer://m1",
 "remoteStreamName":"user2"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server
Access-Control-Allow-Origin: 
Apache-Coyote/1.1 Content-Type: application/json;charset=UTF-8 Date: Fri, 24 Nov 2017 14:27:35 GMT [ { "localMediaSessionId":"da157e2b-2159-40c9-9560-ae1af8d4a0b5", "remoteMediaSessionId":null, "localStreamName":"6602", "remoteStreamName":"660s", "uri":"wss://demo.flashphoner.com:8443/websocket", "status":"NEW" } ]

...

*
Access-Control-Allow-Credentials: true


 

/mixer/test/start

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/pullmixer/test/pullstart HTTP/1.1
HostHOST: 192.168.1.101:8081
Content-Typetype: application/json;charset=UTF-8
Content-Lengthlength: 60107

{
	"urifeedingStreams":"wss://demo.flashphoner.com:8443/websocket [
		"s1",
		"localStreamNames2": "0d40",
	"remoteStreamName": "0d40"
}
    ],
    "mixerCount": 3,
    "streamsInMixer": 1,
    "intervalInSeconds": 60
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: ThuWed, 2322 NovAug 20172018 0908:4753:2326 GMT


/

...

mixer/test/

...

stop

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/mixer/pulltest/terminatestop HTTP/1.1
HOST: 192.168.1.101:8081
contentContent-type: application/json
contentContent-length: 310

{
	"uri": "wss://demo.flashphoner.com:8443/websocket"
}
}


Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: FriWed, 2422 NovAug 20172018 1408:5553:3526 GMT

 


/mixer/

...

test/

...

get_

...

start_

...

example

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/
logger
mixer/test/
enable
get_
client
start_
log
example HTTP/1.1
HOST: 192.168.1.101:8081
content
Content-type: application/json
content
Content-length: 
71
0

{
"sessionId": "/127.0.0.1:57539/192.168.1.101:8443", "logLevel": "DEBUG" }
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Wed, 03 Sep 2018 06:58:40 GMT

...

}


Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 107
Date: Wed, 22 Aug 2018 08:53:26 GMT

{
    "feedingStreams": [
        "stream1",
        "stream2",
        "stream3"
    ],
    "mixerCount": 3,
    "streamsInMixer": 1,
    "intervalInSeconds": 60
}



/pull/pull

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/
logger/disable_client_log
pull/pull HTTP/1.1
HOST
Host: 192.168.1.101:8081
content
Content-
type
Type: application/json
content-length
;charset=UTF-8
Content-Length: 
71
60

{
	"
sessionId
uri":
"wss:/
127
/demo.
0
flashphoner.
0.1
com:
57539/192.168.1.101:8443
8443/websocket",
	"localStreamName": "6602",
	"remoteStreamName": "6602"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: 
Wed
Thu, 
03
23 
Sep
Nov 
2018
2017 
06
09:
58
47:
40
23 GMT


/

...

pull/

...

find_

...

all

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/
cdn
pull/
show
find_
nodes
all HTTP/1.1
HOST
Host: 192.168.1.101:8081
content
Content-
type
Length: 
application/json
0
content
Content-
length
Type: 
0
application/json
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-
Length
Type: 
224
application/json;charset=UTF-8
Date: 
Thu
Fri, 
06
24 
Dec
Nov 
2018
2017 
4
14:
16
27:
40
35 GMT

[
	{
"globalState
		"localMediaSessionId":
"ACTIVE
"da157e2b-2159-40c9-9560-ae1af8d4a0b5",
"id": "192.168.1.64", "processingState": "NEW_STREAMS_ALLOWED", "role": "TRANSCODER" }, { "globalState": "ACTIVE", "id": "192.168.1.39", "processingState": "NEW_STREAMS_ALLOWED", "role": "ORIGIN" } ]

...

		"remoteMediaSessionId":null,
		"localStreamName":"6602",
		"remoteStreamName":"660s",
		"uri":"wss://demo.flashphoner.com:8443/websocket",
		"status":"NEW"
	}
]


/pull/push

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/
cdn
pull/
show_routes
pull HTTP/1.1
HOST
Host: 192.168.1.101:8081
content
Content-
type
Type: application/json
content-length: 0
;charset=UTF-8
Content-Length: 60

{
	"uri":"wss://demo.flashphoner.com:8443/websocket",
	"localStreamName": "0d40",
	"remoteStreamName": "0d40"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 
26
0
Date: Thu, 
06
23 
Dec
Nov 
2018
2017 
4
09:
16
47:
40
23 GMT
{ "0-192.168.1.5-0": "test" }


/

...

pull/

...

terminate

Request

Response

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

{
	"uri": "wss://demo.flashphoner.com:8443/websocket"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 
19
0
Date: 
Thu
Fri, 
06
24 
Dec
Nov 
2018
2017 
8
14:
26
55:
44
35 GMT
[ "NEW_STREAMS_ALLOWED" ]


 


/

...

logger/

...

enable_client_

...

log

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/
cdn
logger/
enforce
enable_client_
state
log HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 
44
71

{
	
"state
"sessionId": "/127.0.0.1:57539/192.168.1.101:8443",
	"logLevel": "
GROUP_CONNECTIONS_ALLOWED
DEBUG"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: 
Thu
Wed, 
06
03 
Dec
Sep 2018 
8
06:
36
58:
30
40 GMT


/

...

logger/disable_client_log

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/
cdn/stream/show_routes
logger/disable_client_log HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 
30
71

{
	"
streamName
sessionId":
"test-profile1
 "/127.0.0.1:57539/192.168.1.101:8443"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 
411
0
Date: 
Mon
Wed, 
07
03 
Jan
Sep 2018 
4
06:
16
58:40 GMT
{ "REQUESTED-PROFILE": [ "AUDIO{bitrate=0, codec='opus', rate=48000, channels=0}",


/cdn/show_nodes

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


[
	{
        
"VIDEO{width=640, height=360, gop=90, fps=30, bitrate=0, codec='h264', codecImpl='OPENH264', quality=null}"
"globalState": "ACTIVE",
        "id": "192.168.1.64",
    
],
    "processingState": "
1-NEW-TRANSCODER-95.191.131.64": []
NEW_STREAMS_ALLOWED",
    
"2-PROXY-95.191.130.39": [
    "role": "TRANSCODER"
    },
    {
        "globalState": "ACTIVE"
AUDIO{bitrate=0
,
codec='opus', rate=48000, channels=2}

        "id": "192.168.1.39",
       
"VIDEO{width=0, height=0, gop=null, fps=null, bitrate=0, codec='H264', codecImpl='null', quality=null}
 "processingState": "NEW_STREAMS_ALLOWED",
        "role": "ORIGIN"
    }
]
}


/cdn/

...

show_routes

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/cdn/
stream/access_list/add
show_routes HTTP/1.1
Content-Type
HOST: 192.168.1.101:8081
content-type: application/json
Host: test.flashphoner.com:8081
content-length: 0
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 
39
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"
]


/cdn/enforce_state

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/cdn/enforce_state HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 44

{
	"state": "GROUP_CONNECTIONS_ALLOWED"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 06 Dec 2018 8:36:30 GMT


/cdn/stream/show_routes

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/cdn/stream/show_routes HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 30

{
	"streamName":"test-profile1"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 411
Date: Mon, 07 Jan 2018 4:16:40 GMT

{
    "REQUESTED-PROFILE": [
        "AUDIO{bitrate=0, codec='opus', rate=48000, channels=0}",
        "VIDEO{width=640, height=360, gop=90, fps=30, bitrate=0, codec='h264', codecImpl='OPENH264', quality=null}"
    ],
    "1-NEW-TRANSCODER-95.191.131.64": [],
    "2-PROXY-95.191.130.39": [
        "AUDIO{bitrate=0, codec='opus', rate=48000, channels=2}",
        "VIDEO{width=0, height=0, gop=null, fps=null, bitrate=0, codec='H264', codecImpl='null', quality=null}"
    ]
}


/cdn/stream/access_list/add

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/cdn/stream/access_list/add HTTP/1.1
Content-Type: application/json
Host: test.flashphoner.com:8081                            
Content-Length: 39                                
                                                  
{                                                 
	"keys": [                                     
		"key1",                                   
		"key2"                                    
    ],                                            
    "name": "test"                                
}                                                 
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json


/cdn/stream/access_list/remove

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/cdn/stream/access_list/remove HTTP/1.1
Content-Length: 32                                   
Content-Type: application/json                       
Host: test.flashphoner.com:8081                       
                                                     
{                                                    
	"keys": [                                        
		"key1"                                       
    ],                                               
    "name": "test"                                   
}                                                                                                    
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json


/cdn/stream/access_list/print

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/cdn/stream/access_list/print HTTP/1.1
Content-Length: 15                                  
Content-Type: application/json                      
Host: test.flashphoner.com:8081                      
                                                    
{                                                   
	"name": "test"                                  
}                                                                                                                                                      
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK               
Access-Control-Allow-Origin: *
Content-Length: 8             
Content-Type: application/json
                              
[                             
    "key2"                    
]                             


/cdn/stream/access_list/delete

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/cdn/stream/access_list/delete HTTP/1.1
Content-Length: 15                                   
Content-Type: application/json                       
Host: test.flashphoner.com:8081                       
                                                     
{                                                    
	"name": "test"                                   
}                                                                                                                                                       
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json


/cdn/profile/add

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/cdn/profile/add HTTP/1.1
Content-Length: 502                                   
Content-Type: application/json                       
Host: test.flashphoner.com:8081                       
                                  
{
	"name": "-profile1",
	"profile": {
        "audio": {
            "type": "audio"
            "bitrate": 0,
            "channels": 0,
            "codec": "opus",
            "rate": 48000,
       	},
		"video": {
			"type": "video",
            "bitrate": 0,
            "codec": "h264",
            "codecImpl": "FF",
            "fps": 30,
           
{
 "gop": 90,
            "height": 360,
            "quality": 0,
            "width": 640
        
"keys": [
}
	}
}                                                                                                        
"key1",
                                   
"key2"
            
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json


/cdn/profile/modify

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/cdn/profile/modify HTTP/1.1
Content-Length: 15                  
    ],             
Content-Type: application/json                       
Host: test.flashphoner.com:8081      
    "name": "test"            
                    
}                                 
{
	"name": "-profile1",
	"profile": {
		"video": {
			"bitrate": 400,
			"quality": 25
           }
	}
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json


/cdn/

...

profile/print

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/cdn/
stream/access_list/remove
profile/print HTTP/1.1
Content-Length: 
32
0                                   
Content-Type: application/json                       
Host: test.flashphoner.com:8081                       
                                                     
{
                                                    
"keys":
 
[
                                        
"key1"
                                       
    
],
            
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json

[
	"-240p": {
	    "audio": {
	        "bitrate": 0,
	        
"channels": 0,
	    
    "
name
codec": "
test" }
opus",
	        "rate": 48000,
	        "type": "audio"
	    },
	    "video": {
	        "bitrate": 0,
	        "codec": "h264",
	        "codecImpl": "FF",
	        "fps": 25,
	        "gop": 50,
	        "height": 240,
	        "preset": "veryfast",
	      
Code Block
languagejs
themeRDark
HTTP/1.1
 
200 OK Access-Control-Allow-Origin: * Content-Type: application/json

/cdn/stream/access_list/print

RequestResponse Code Block
languagejs
themeRDark
POST /rest-api/cdn/stream/access_list/print HTTP/1.1 Content-Length: 15
 "quality": 0,
	        "type": "video",
	        "width": 0
    	}
	},
	"-480p": {
	    "audio": {
	        "bitrate": 
Content-Type: application/json
0,
	        "channels": 0,
	        "codec": "opus",
	        "rate": 48000,
Host: test.flashphoner.com:8081
	        "type": "audio"
	    },
	    "video": {
	      
  "bitrate": 0,
	        "codec": "h264",
	        "codecImpl": "FF",
	        "fps": 25,
	        "gop": 50,
	        "height": 480,
	     
{
   "preset": "veryfast",
	        "quality": 0,
	        "type": "video",
	        "width": 0
	    }
	}
]


/cdn/profile/remove

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/cdn/profile/remove HTTP/1.1
Content-Length: 15             
"name":
 
"test"
                     
Content-Type: application/json            
}
           
Host: test.flashphoner.com:8081                       
                                                     
{                                                    
	"name": "-profile1"
}         
Code Block
languagejs
themeRDark
HTTP/1.1
 
200
 
OK
               
Access-Control-Allow-Origin: * Content-Length:
 
8
             
Content-Type:
 
application/json
                              
[
                             
    
"key2"
                    
]
                           
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json

/cdn/

...

remove_node

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/cdn/
stream/access_list/delete
remove_node HTTP/1.1
Content-Length: 15                                   
Content-Type: application/json                       
Host: test.flashphoner.com:8081                       
                                                     
{                                                    
	"
name
nodeIp": "
test"
192.168.1.207"
}                                                                                                                                                       
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json

/cdn/

...

connection/

...

reset_inbound

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/cdn/
profile
connection/
add
reset_inbound HTTP/1.1
Content-Length: 502

Content-
Type
Length: 
application/json
15                   
Host:
 
test.flashphoner.com:8081
               

Content-Type: application/json                       
{ "name": "-profile1", "profile": { "audio": {
Host: test.flashphoner.com:8081          
"type": "audio"
            
"bitrate":
 
0,

"channels": 0,
       
"codec":
 
"opus",
           
"rate":
 
48000,
       
}, "video": { "type": "video",
            
"bitrate":
 
0,
            
"codec":
 
"h264",

{            
"codecImpl": "FF",
               
"fps":
 
30,
            
"gop":
 
90,
           
	"nodeId": "
height": 360,
192.168.1.207"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json

/cdn/connection/reset_outbound

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/cdn/connection/reset_outbound HTTP/1.1
Content-Length: 15           
"quality": 0,
               
"width":
 
640
        
} } }

Content-Type: application/json                       
Host: test.flashphoner.com:8081                       
                                                     
{                                                    
	"nodeId": "192.168.1.207"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json

/cdn/

...

connection/

...

reset_all

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/cdn/profileconnection/modifyreset_all HTTP/1.1
Content-Length: 150                                   
Content-Type: application/json                       
Host: test.flashphoner.com:8081                       
                                                     
{
	"name": "-profile1",
	"profile": {
		"video": {
			"bitrate": 400,
			"quality": 25
        }
	}
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json

/

...

recorder/

...

startup

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/
cdn
recorder/
profile/print
startup HTTP/1.1
Content-Length: 
0
52
Content-Type: application/json                       
Host: test.flashphoner.com:8081                       
                                                     
{
	"mediaSessionId": "5a072377-73c1-4caf-abd3",
		"config": {
			"fileTemplate": "{streamName}-{startTime}-{endTime}",
			"rotation": "20M"
		}
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: 
*
Content-Type: application/json


/recorder/terminate

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/recorder/terminate HTTP/1.1
Content-Length: 26                                   
Content-Type: application/json                       
HOST: 192.168.1.101:8081
                                                     

{
	"mediaSessionId": "5a072377-73c1-4caf-abd3"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json
[ "-240p": { "audio": { "bitrate": 0, "channels": 0, "codec": "opus", "rate": 48000, "type": "audio" }, "video": { "bitrate": 0, "codec": "h264", "codecImpl": "FF", "fps": 25,


/recorder/find_all

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/recorder/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-Length: 125
Date: Thu, 06 Dec 2018 4:16:40 GMT

[
    {
        "
gop
fileName": 
50
"9c3e-test-1563776083752-{endTime}.mp4",
        "
height
mediaSessionId": 
240,
"5a072377-73c1-4caf-abd3"
    }
]


/multipleRecorder/startup

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/multipleRecorder/startup 
"preset": "veryfast",
HTTP/1.1
Host: localhost:9091
Content-type: application/json
Content-Length: 22       
"quality":
 
0,
        
"type":
 
"video",
     
"width":
 
0

    
} }, "-480p":
 
{
    
"audio":
 
{
        
"bitrate":
 
0,
        
"channels": 0,
        
"codec":
 
"opus",
        
"rate":
 
48000,
        
{
	"
type
uri": "
audio" }, "video": { "bitrate": 0,
multi-recorder://test-record"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *

/multipleRecorder/add

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/multipleRecorder/add HTTP/1.1
Host: localhost:9091
Content-type: application/json
Content-Length: 78             
"codec":
 
"h264",
        
"codecImpl":
 
"FF",

        
"fps":
 
25,
        
"gop":
 
50,
        
"height":
 
480,
        
"preset":
 
"veryfast",
        
"quality":
 
0,
        
{
	"
type
uri": "
video
multi-recorder://test-record",
    "
width
mediaSessionId": 
0 } } ]

...

"d010f9a0-fe34-11eb-9d0a-fb2207ead79d"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *

/multipleRecorder/remove

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/
cdn/profile
multipleRecorder/remove HTTP/1.1
Content-Length: 15 Content-Type: application/json Host: test.flashphoner.com:8081
Host: localhost:9091
Content-type: application/json
Content-Length: 78                       
                                                     
{
	"uri": "multi-recorder://test-record",
    "mediaSessionId": "d010f9a0-fe34-11eb-9d0a-fb2207ead79d"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *

/multipleRecorder/find_all

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/multipleRecorder/find_all HTTP/1.1
Host: 
localhost:9091
Content-type: application/json

Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Content-Type: application/json
Content-Length: 239

[
  {
    "mediaSessionsId": [
      
"name": "-profile1" }
"d010f9a0-fe34-11eb-9d0a-fb2207ead79d",
      "dca111f0-fe34-11eb-ba46-45d41f052372",
      "e7614c40-fe34-11eb-8d5e-07d6ca1cc7ff"
    ],
    "uri": "multi-recorder://test-record",
    
"fileName": "multi-recorder___test-record.mp4"
  }
]


/multipleRecorder/terminate

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/multipleRecorder/terminate HTTP/1.1
Host: localhost:9091
Content-type: application/json
Content-Length: 22                       
                                                     
{
	"uri": "multi-recorder://test-record"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json


/

...

transcoder/

...

startup

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/
cdn
transcoder/
remove_node
startup HTTP/1.1
Content-Length: 15 Content-Type: application/json Host: test.flashphoner.com:8081
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 83

{
	"uri": "transcoder://tcode1",
	"remoteStreamName": "test",
	"localStreamName": "testT",
	"encoder": {
		"width": 640,
		"height": 480,
		"keyFrameInterval": 30,
		"fps": 30,
        "watermark": 
{
"Test.png"
 	}
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 06 Dec 2018 4:16:40 GMT


/transcoder/find

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/transcoder/find HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 30

{
	"remoteStreamName": "test"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 286
Date: Thu, 06 Dec 2018 4:16:40 GMT

[
    {
        
"
nodeIp
localMediaSessionId": "
192.168.1.207" }
42a92132-bcd1-4436-a96f-3fec36b32b37",
        "localStreamName": "testT",
        "remoteStreamName": "test",
        "uri": "transcoder://tcode1",
        "status": "PROCESSED_LOCAL",
        "hasAudio": true,
        "hasVideo": true,
        "record": false,
        "encoder": {
            "width": 640,
            "height": 480,
            "keyFrameInterval": 30,
            "fps": 30,
            "watermark": "Test.png"
        
}
   
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json

...

 }
]


/transcoder/find_all

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/
recorder
transcoder/
startup
find_all HTTP/1.1
Content-Length
HOST: 
52 Content-Type
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: 286
Date: Thu, 06 Dec 
Host: test.flashphoner.com:8081
2018 4:16:40 GMT

[
    {
        "localMediaSessionId": "42a92132-bcd1-4436-a96f-3fec36b32b37",
        "localStreamName": "testT",
        "remoteStreamName": "test",
        
"uri": "transcoder://tcode1",
        "status": "PROCESSED_LOCAL",
        "hasAudio": true,
        
{ "mediaSessionId
"hasVideo": 
"5a072377-73c1-4caf-abd3"
true,
"config":
 
{ "fileTemplate":
 
"{streamName}-{startTime}-{endTime}", "rotation":
 
"20M" } } Code Block
languagejs
themeRDark
HTTP/1.1
 
200
 
OK Access-Control-Allow-Origin:
 
* Content-Type:
 
application/json

/recorder/terminate

RequestResponse Code Block
languagejs
themeRDark
POST /rest-api/recorder/terminate HTTP/1.1 Content-Length: 26
 "record": false,
        "encoder": {
            "width": 640,
            "height": 
Content-Type: application/json
480,
            "keyFrameInterval": 30,
            
HOST: 192.168.1.101:8081
"fps": 30,
            "watermark": "Test.png"
        }
    }
]


/transcoder/terminate

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

{
	"uri":"transcoder://tcode1"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 
{ "mediaSessionId": "5a072377-73c1-4caf-abd3"
OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 06 Dec 2018 4:16:40 GMT


/transcoder/set_watermark

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/transcoder/set_watermark HTTP/1.1
Host: localhost:8081
Accept: */*
Content-Type: application/json
Content-Length: 72

{
 "uri":"transcoder://t1",
 "watermark":"/opt/media/logo.png",
 "x":10,
 "y":10
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-
Origin: * Content-Type: application/json

...

Credentials: true
Content-Length: 0
Date: Fri, 19 Aug 2022 14:55:35 GMT


 

/transcoder2/startup

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/recordertranscoder2/find_allstartup 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: 125
Date: Thu, 06 Dec 2018 4:16:40 GMT

[
    {
    242

{
    "fileNameuri": "9c3e-test-1563776083752-{endTime}.mp4transcoder2://tcode2",
        "mediaSessionId": "5a072377-73c1-4caf-abd3"
    }
]

/multipleRecorder/startup

RequestResponse Code Block
languagejs
themeRDark
POST /rest-api/multipleRecorder/startup HTTP/1.1 Host: localhost:9091 Content-type: application/json Content-Length: 22
localStreamName": "testT",
    "remoteStreamName": "test",
    "encoder": {
      "width": 320,
      "height": 240,
      "keyFrameInterval": 60,
   
   "fps": 30,
      "bitrate": 1000,
      "audioRate": 44100,
      "audioBitrate": 64000
      "audioCodec": "mpeg4-generic",
      "videoCodec": "H264"
    }
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true

/transcoder2/find

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/transcoder2/find HTTP/1.1
HOST: 192.168.1.101:8081
content-type: 
application/json
content-length: 30

{
	"
uri
remoteStreamName": "
multi-recorder://
test
-record
"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *

/multipleRecorder/add

RequestResponse Code Block
languagejs
themeRDark
POST /rest-api/multipleRecorder/add HTTP/1.1 Host: localhost:9091 Content-type: application/json Content-Length: 78

Access-Control-Allow-Credentials: true
Content-Type: application/json
Content-Length: 387

[
  {
    "localMediaSessionId": "abde0bbf-558f-49e7-88e8-5431824dbc6c",
    "localStreamName": "testT",
    "remoteStreamName": "test",
    "uri": "transcoder2://tcode2",
    "status": "PROCESSED_LOCAL",
    "hasAudio": true,
    "hasVideo": true,
    "record": false,
    "encoder": {
      "width": 320,
      "height": 240,
      "keyFrameInterval": 60,
      "fps": 30,
      "bitrate": 1000,
      "audioRate": 44100,
      "audioCodec": "mpeg4-generic",
      
{
"
uri
videoCodec": "
multi-recorder://test-record
H264",
      "
mediaSessionId
videoRate": 
"d010f9a0-fe34-11eb-9d0a-fb2207ead79d" }
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *

...

90000
    }
  }
]

/transcoder2/find_all

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/
multipleRecorder
transcoder2/
remove
find_all HTTP/1.1
Host
HOST: 
localhost:9091 Content
192.168.1.101:8081
content-type: application/json
Content
content-
Length
length: 
78
0

Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Content-Type: application/json
Content-Length: 387

[
  {
    "localMediaSessionId": "abde0bbf-558f-49e7-88e8-5431824dbc6c",
    "localStreamName": "testT",
    "remoteStreamName": "test",
    "uri": "transcoder2://tcode2",
    "status": "PROCESSED_LOCAL",
    
"hasAudio": true,
    "hasVideo": true,
    "record": false,
    
"encoder": {
      
{
"
uri
width": 
"multi-recorder://test-record"
320,
      "
mediaSessionId
height": 
"d010f9a0-fe34-11eb-9d0a-fb2207ead79d" }
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *

/multipleRecorder/find_all

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/multipleRecorder/find_all HTTP/1.1
Host: localhost:9091
Content-type: application/json

Code Block
languagejs
themeRDark
HTTP/1.1 200 OK Access-Control-Allow-Origin: * Access-Control-Allow-Credentials: true Content-Type: application/json Content-Length: 239 [ { "mediaSessionsId": [
240,
      "keyFrameInterval": 60,
      "fps": 30,
      "bitrate": 1000,
      "audioRate": 44100,
      
"d010f9a0-fe34-11eb-9d0a-fb2207ead79d
"audioCodec": "mpeg4-generic",
      "
dca111f0-fe34-11eb-ba46-45d41f052372
videoCodec": "H264",
      "
e7614c40-fe34-11eb-8d5e-07d6ca1cc7ff"
videoRate": 90000
    
],
}
  }
]

/transcoder2/terminate

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

{
	"uri":
"
multi-recorder
transcoder2://
test-record
tcode2"
, "fileName": "multi-recorder___test-record.mp4" } ]

...


}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true

/transcoder2/set_watermark

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/
multipleRecorder
transcoder2/
terminate
set_watermark HTTP/1.1
Host: localhost:
9091
8081
Content-type
Accept: 
application
*/
json Content-Length: 22 { "uri": "multi-recorder://test-record"
*
Content-Type: application/json
Content-Length: 73

{
 "uri":"transcoder2://t1",
 "watermark":"/opt/media/logo.png",
 "x":10,
 "y":10
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Content-Length: 0
Date: Fri, 19 Aug 2022 14:55:35 GMT


 

/

...

vod/startup

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/
transcoder
vod/startup HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 83
{ "uri": "transcoder://tcode1", "remoteStreamName": "test", "localStreamName": "testT",

"encoder": { "width": 640, "height": 480, "keyFrameInterval": 30, "fps": 30, "watermark": "Test.png" } }

{
	"uri":"vod-live://sample.mp4",
	"localStreamName": "test"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 06 Dec 2018 4:16:40 GMT


/

...

vod/find

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/
transcoder
vod/find HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 30

{
	"
remoteStreamName
localStreamName": "test"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote
/1.1 Content-Length: 286 Date: Thu, 06 Dec 2018 4:16:40 GMT [ { "localMediaSessionId": "42a92132-bcd1-4436-a96f-3fec36b32b37", "localStreamName": "testT", "remoteStreamName": "test", "uri": "transcoder://tcode1", "status": "PROCESSED_LOCAL", "hasAudio": true,
/1.1
Content-Length: 286
Date: Thu, 06 Dec 2018 4:16:40 GMT

[
    {
        "
hasVideo
localMediaSessionId": 
true
"29ec3236-1093-42bb-88d6-d4ac37af3ac0",
        "
record
localStreamName": 
false
"test",
        "
encoder
uri": 
{ "width": 640
"vod-live://sample.mp4",
        
"
height
status": 
480
"PROCESSED_LOCAL",
        
"
keyFrameInterval
hasAudio": 
30
true,
        
"
fps
hasVideo": 
30
true,
        "
watermark
record": 
"Test.png" }
false
    }
]


/

...

vod/find_all

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/
transcoder
vod/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-Length: 286
Date: Thu, 06 Dec 2018 4:16:40 GMT

[
    
{ "localMediaSessionId": "42a92132-bcd1-4436-a96f-3fec36b32b37",
{
        "
localStreamName
localMediaSessionId": "
testT
29ec3236-1093-42bb-88d6-d4ac37af3ac0",
        "
remoteStreamName
localStreamName": "test",
        "uri": "
transcoder
vod-live://
tcode1
sample.mp4",
        "status": "PROCESSED_LOCAL",
        "hasAudio": true,
        "hasVideo": true,
        "record": false
, "encoder": { "width": 640, "height": 480, "keyFrameInterval": 30, "fps": 30, "watermark": "Test.png"

    
}
}
]


/

...

vod/terminate

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/
transcoder
vod/terminate HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 30

{
	"uri":"
transcoder
vod://
tcode1
sample.mp4",
	"localStreamName": "test"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 06 Dec 2018 4:16:40 GMT

/

...

hls/startup

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/
transcoder2
hls/startup HTTP/
1.1 HOST: 192.168.1.101:8081 content-type: application/json content-length: 242 { "uri": "transcoder2://tcode2", "localStreamName": "testT", "remoteStreamName": "test", "encoder": { "width": 320, "height": 240, "keyFrameInterval": 60, "fps": 30, "bitrate": 1000, "audioRate": 44100, "audioBitrate": 64000 "audioCodec": "mpeg4-generic", "videoCodec": "H264" } }
1.1
Host: centos3.flashphoner.com:8081
Content-Length: 16
Content-Type: application/json

{
    "name": "test"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials
Content-Type: 
true
application/json

/

...

hls/find_all

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/transcoder2hls/find_all HTTP/1.1
HOSTHost: 192.168.1.101localhost:8081
content-typeConnection: application/json
content-lengthkeep-alive
Content-Length: 3022

{
	  "remoteStreamNameoffset":0,
  "testsize":10
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-CredentialsContent-Length: true493
Content-Type: application/json
Content-Length: 387

[
  {
    "localMediaSessionId"id": "test",
    "streamName": "abde0bbf-558f-49e7-88e8-5431824dbc6ctest",
    "localStreamNamestatus": "testTACTIVE",
    "remoteStreamNamewaitingSize": "test"0,
    "uriprofiles": "transcoder2://tcode2",[
    "status":  "PROCESSEDa_LOCALtest",
      "hasAudio": truev_test"
    ],
    "hasVideosubscribers": true1,
    "record": false,
    "encoder": {
      "width": 320playlist": "#EXTM3U\n#EXT-X-VERSION:9\n#EXT-X-INDEPENDENT-SEGMENTS\n#EXT-X-MEDIA:TYPE=AUDIO,URI=\"a_test/a_test.m3u8\",GROUP-ID=\"audio\",NAME=\"none\",DEFAULT=YES,AUTOSELECT=YES,CHANNELS=\"2\"\n#EXT-X-STREAM-INF:BANDWIDTH=2180097,CODECS=\"avc1.640028,mp4a.40.2\",RESOLUTION=1280x720,FRAME-RATE=29.0,AUDIO=\"audio\"\nv_test/v_test.m3u8\n",
      "heightcreatedDate": 2401697691514126,
      "keyFrameIntervallogs": 60,[]
  }
]

/hls/terminate

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/hls/terminate   "fps": 30,
      "bitrate": 1000,
      "audioRate": 44100,
  HTTP/1.1
Host: centos3.flashphoner.com:8081
Content-Length: 16
Content-Type: application/json

{
    "audioCodecname": "mpeg4-generictest",
      "videoCodec": "H264",
      "videoRate": 90000
    }
  }
]

...


}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json

/hls/profiles

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/
transcoder2
hls/
find_all
profiles HTTP/1.1
HOST
Host: 
192.168.1.101
localhost:8081
content-type
Connection: 
application/json content-length: 0
keep-alive
Content-Length: 39

{
  "hlsId":"test",
  "profileName":"v_test"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials
Content-Length: 
true
1183
Content-Type: application/json
Content-Length: 387

[
{
  
"
localMediaSessionId
name": "
abde0bbf-558f-49e7-88e8-5431824dbc6c",
v_test",
  "stream": {
    "
localStreamName
appKey": "
testT
defaultApp",
    "
remoteStreamName
sessionId": "test-HLS",
    "
uri
mediaSessionId": "
transcoder2://tcode2
94bc92bc-959b-4533-a0e6-7de3d8c89141-test-HLS",
    "
status
name": "
PROCESSED_LOCAL
test",
    "
hasAudio
published": 
true
false,
    "hasVideo": 
true
false,
    "
record
hasAudio": 
false
true,
    "
encoder
status": 
{
"PLAYING",
    
"
width": 320, "height": 240
sdp": "v=0\r\no=- 1988962254 1988962254 IN IP4 0.0.0.0\r\nc=IN IP4 0.0.0.0\r\nt=0 0\r\na=sdplang:en\r\nm=video 0 RTP/AVP 112\r\na=rtpmap:112 H264/90000\r\na=fmtp:112 packetization-mode=1; profile-level-id=42001f\r\na=recvonly\r\n",
    
"
keyFrameInterval
videoCodec": 
60
"H264",
    
"
fps
record": 
30
false,
    
"
bitrate
width": 
1000
1280,
    "
audioRate
height": 
44100
720,
    
"
audioCodec
bitrate": 
"mpeg4-generic"
0,
    "
videoCodec
minBitrate": 
"H264"
0,
    
"
videoRate
maxBitrate": 
90000
0,
    
} } ]

/transcoder2/terminate

...

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

{
	"uri":"transcoder2://tcode2"
}

...

Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true

/vod/startup

...

Code Block
languagejs
themeRDark
POST /rest-api/vod/startup HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 83

{
	"uri":"vod-live://sample.mp4",
	"localStreamName": "test"
}

...

Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 06 Dec 2018 4:16:40 GMT

/vod/find

...

Code Block
languagejs
themeRDark
POST /rest-api/vod/find HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 30

{
	"localStreamName": "test"
}

...

Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 286
Date: Thu, 06 Dec 2018 4:16:40 GMT

[
    {
        "localMediaSessionId": "29ec3236-1093-42bb-88d6-d4ac37af3ac0",
        "localStreamName": "test",
        "uri": "vod-live://sample.mp4",
        "status": "PROCESSED_LOCAL",
        "hasAudio": true,
        "hasVideo": true,
        "record": false
    }
]

...

"quality": 0,
    "parentMediaSessionId": "8df817dc-c331-4fb5-949d-03e7764bab11",
    "history": false,
    "gop": 0,
    "fps": 0,
    "audioBitrate": 0,
    "codecImpl": "",
    "transport": "UDP",
    "cvoExtension": true,
    "createDate": 1697691514574,
    "mediaType": "play",
    "audioState": {
      "muted": false
    },
    "videoState": {
      "muted": false
    },
    "mediaProvider": "HLS"
  },
  "keyFrameReceived": true,
  "videoProfile": {
    "type": "video",
    "width": 1280,
    "height": 720,
    "fps": 29,
    "bitrate": 2129,
    "codec": "",
    "quality": 0,
    "audioGroupId": "audio"
  },
  "metrics": {
    "minFPS": 29.962547,
    "avgFPS": 30.000261,
    "maxFPS": 30.04292,
    "countGaps": 0,
    "resolutionChanges": 0,
    "queueSize": 11,
    "startPts": 560866,
    "currentPts": 561133
  },
  "subscribers": 1
}

/hls/subscribers

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/
vod
hls/
find_all
subscribers HTTP/1.1
HOST
Host: 
192.168.1.101
localhost:8081
content-type
Connection: 
application/json content-length: 0
keep-alive
Content-Length: 16

{
  "hlsId":"test"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server
Access-Control-Allow-Origin: 
Apache-Coyote/1.1
*
Content-Length: 
286
501
Date: Thu, 06 Dec 2018 4:16:40 GMT [ {
Content-Type: application/json

[
  {
    "id": "192.168.0.83-55832-Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36",
    "
localMediaSessionId
ip": "
29ec3236-1093-42bb-88d6-d4ac37af3ac0
192.168.0.83",
    "port": 55832,
    
"
localStreamName
userAgent": "
test", "uri": "vod-live://sample.mp4
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36",
    "active": true,
    "
status
metrics": 
"PROCESSED_LOCAL",
{
      
"
hasAudio
profileTime": 
true,
{
        "
hasVideo
test": 
true
66,
        "
record
v_test": 
false
598216
      }
]

/vod/terminate

...

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

{
	"uri":"vod://sample.mp4",
	"localStreamName": "test"
}

...

Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 06 Dec 2018 4:16:40 GMT

/hls/startup

...

Code Block
languagejs
themeRDark
POST /rest-api/hls/startup HTTP/1.1
Host: centos3.flashphoner.com:8081
Content-Length: 16
Content-Type: application/json

{
    "name": "test"
}

...

Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json

...

,
      "requestsNumber": 6537,
      "requestsStatuses": {
        "200 OK": 6536
      },
      "profileSwitches": 1,
      "maxResponseTime": 13,
      "minResponseTime": 0,
      "avgResponseTime": 0.4173168119932691
    }
  }
]

/sfu/stats

Length171Typeapplication/jsontesthandlercom.flashphoner.server.client.handler.wcs4.WCS4Handler@15b75d07state "ACTIVE","writerHLS-teststreamStatusPLAYING"writerStarted"true"} }
RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/hlssfu/find_allstats HTTP/1.1
Host: centos3.flashphoner.com:8081
Connection: keep-alivelocalhost:9091
Content-Type: application/json
Content-Length: 020

{
     "roomName":"ROOM1"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-
Type: 
application/json
Content-
Length: 
1154

{
  "
participants": [
    {
      "
nickName": "
User1",
      "
outgoingTracks":
 [
        {
    
      "id": "
9de9107c-ce5f-4d6b-b7d6-ea233d691d09",
          "
codec": "
opus",
    
      "bitrate": 
0,
  

/hls/terminate

POST /rest-api/hls/terminateHTTP/1.1 Host:centos3.flashphoner.com:8081 Content-Length:16 Content-Type:application/json { name"test" }
RequestResponse
Code Block
languagejs
themeRDark
 
 
 
 
    "
sampleRate": 
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json

/sfu/stats

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/sfu/stats HTTP/1.1
Host: localhost:9091
Content-Type: application/json
Content-Length: 20

{
     "roomName":"ROOM1"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json
Content-Length: 1154

{
  "participants": [
    {
48000,
          "channels": 2,
          "alive": true,
          "type": "AUDIO"
        },
        {
          "nickNameid": "User1237dcef9-c66d-4c72-bd43-0c91aaea3b7e",
          "outgoingTrackscomposite": [true,
          "tracks": {
            "idh send": "9de9107c-ce5f-4d6b-b7d6-ea233d691d09",{
              "codecid": "opus237dcef9-c66d-4c72-bd43-0c91aaea3b7e",
              "bitratecodec": 0"H264",
              "sampleRatewidth": 480001280,
              "channelsheight": 2720,
              "alivefps": true30,
          "type": "AUDIO"
       "bitrate": }157976,
        {
          "idalive": "237dcef9-c66d-4c72-bd43-0c91aaea3b7e"true,
              "compositetype": true,"VIDEO"
          "tracks": {  },
            "hm send": {
              "id": "237dcef9-c66d-4c72-bd43-0c91aaea3b7e",
              "codec": "H264",
              "width": 1280640,
              "height": 720360,
              "fps": 30,
              "bitrate": 157976263952,
              "alive": true,
              "type": "VIDEO"
            },
          }
  "m send": {
      }
      ],
      "idincomingTracks": {
        "237dcef93c2dcd1c-c66d7acd-4c724b90-bd43-0c91aaea3b7e",8871-331be80cade0": "h send"
      }
    },
    {
      "codecnickName": "H264User2",
              "widthoutgoingTracks": 640,[
        {
          "heightid": 360"3c2dcd1c-7acd-4b90-8871-331be80cade0",
              "fpscomposite": 30true,
              "bitratetracks": 263952,{
            "h  "alivesend": true,{
              "typeid": "VIDEO"3c2dcd1c-7acd-4b90-8871-331be80cade0",
            }
  "codec": "H264",
       }
        }
"width": 1280,
        ],
      "incomingTracksheight": {720,
        "3c2dcd1c-7acd-4b90-8871-331be80cade0": "h send"
      }"fps": 30,
    },
    {
      "nickNamebitrate": "User2"238688,
      "outgoingTracks": [
        {"alive": true,
          "id": "3c2dcd1c-7acd-4b90-8871-331be80cade0",
          "composite"type": true,"VIDEO"
           "tracks": { },
            "hm send": {
              "id": "3c2dcd1c-7acd-4b90-8871-331be80cade0",
              "codec": "H264",
              "width": 1280640,
              "height": 720360,
              "fps": 30,
              "bitrate": 238688265368,
              "alive": true,
              "type": "VIDEO"
            },
            "m send": {}
        }
      "id": "3c2dcd1c-7acd-4b90-8871-331be80cade0",
        ],
      "codecincomingTracks": "H264",{
              "width"9de9107c-ce5f-4d6b-b7d6-ea233d691d09": 640null,
              "height": 360,"237dcef9-c66d-4c72-bd43-0c91aaea3b7e": "h send"
      }
    }
  ]
}

/mpegts/startup

"fps": 30, "bitrate": 265368, "alive": true, "type": "VIDEO" } } } ], "incomingTracks": { "9de9107c-ce5f-4d6b-b7d6-ea233d691d09": null, "237dcef9-c66d-4c72-bd43-0c91aaea3b7e": "h send" } }
RequestResponse
Code Block
languagejs
themeRDark
POST 
/rest-api/mpegts/startup HTTP/1.1
Host: localhost:8081
Content-Type: application/json
Content-Length: 44

{
  "localStreamName":"test",
  "transport":"srt"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json
Content-Length: 230

{
  "localMediaSessionId": "32ec1a8e-7df4-4484-9a95-e7eddc45c508",
  "localStreamName": "test",
  "uri": "srt://192.168.1.39:31014",
  "status": "CONNECTED",
  "hasAudio": false,
  "hasVideo": false,
  "record": false,
  "transport": "SRT",
  "cdn": false,
  "timeout": 90000,
  "maxTimestampDiff": 1,
  "allowedList": []
}

/mpegts/

...

find

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/mpegts/
startup
find_all HTTP/1.1
Host: localhost:8081
Content-Type: application/json
Content-Length: 
26
61

{
 
 
"localStreamName":"test",
}
 "uri": "srt://192.168.1.39:31014"
} 
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json
Content-Length: 
230
238

[{
  "localMediaSessionId": "32ec1a8e-7df4-4484-9a95-e7eddc45c508",
  "localStreamName": "test",
  "uri": "
udp
srt://192.168.1.39:
31006
31014",
  "status": "
CONNECTED
PROCESSED_LOCAL",
  "hasAudio": 
true
false,
  "hasVideo": 
true
false,
  "record": false,
  "transport": "SRT",
  "cdn": false,
  "timeout": 90000,
  "maxTimestampDiff": 
90000
1,
  "allowedList": []
}]

/mpegts/find_all

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/mpegts/find_all HTTP/1.1
Host: localhost:8081
Content-Type: application/json
Content-Length: 0
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json
Content-Length: 238

[{
  "localMediaSessionId": "32ec1a8e-7df4-4484-9a95-e7eddc45c508",
  "localStreamName": "test",
  "uri": "
udp
srt://192.168.1.39:
31006
31014",
  "status": "CONNECTED",
  "hasAudio": true,
  "hasVideo": true,
  "record": false,
  "timeout": 90000,
  "maxTimestampDiff": 90000
}]

/mpegts/terminate

RequestResponse
Code Block
languagejs
themeRDark
POST /rest-api/mpegts/startup HTTP/1.1
Host: localhost:8081
Content-Type: application/json
Content-Length: 26

{
  "localStreamName":"test"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json