...
Request | Response |
---|
Code Block |
---|
| POST /rest-api/rtsp/startup HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 56
Content-Type: application/json
{
"uri": "rtsp://s1.media-planet.sk:80/live/bardejov1",
"localStreamName": "stream1"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Tue, 28 Mar 2017 13:18:01 GMT |
|
...
Request | Response |
---|
Code Block |
---|
| POST /rest-api/rtsp/find_all HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 0
Content-Type: application/json |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Tue, 28 Mar 2017 14:47:08 GMT
[
{
"uri":"rtsp://s1.media-planet.sk:80/live/bardejov1",
"toStream":"stream1",
"status":"PLAYING"
},{
"uri":"rtsp://str81.creacast.com/grandlilletv/high",
"toStream":"rtsp://str81.creacast.com/grandlilletv/high",
"status":"PLAYING"
}
] |
|
/rtsp/find
Request | Response |
---|
Code Block |
---|
| POST /rest-api/rtsp/find HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 72
Content-Type: application/json
{
"uri":"rtsp://str81.creacast.com/grandlilletv/high","status":"PLAYING"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Tue, 28 Mar 2017 14:57:05 GMT
[
{
"uri":"rtsp://str81.creacast.com/grandlilletv/high",
"toStream":"rtsp://str81.creacast.com/grandlilletv/high",
"status":"PLAYING"
}
] |
|
/rtsp/terminate
...
Request | Response |
---|
Code Block |
---|
| POST /rest-api/stream/find HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 4057
Content-Type: application/json
{
"name":"stream1",
"published":true,
"display":["metrics"]
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Tue, 2826 Mar 20172021 1611:05:16 GMT
[{
"custom":{},
"nodeId":null,
{
"appKey": "defaultApp",
"sessionId": "/1925.168129.123.10283:3450051294/19295.168191.1130.101:808039:8443-118f9784-d3b0-4e2b-8837-425eb71efcbe",
"mediaSessionId": "4f112b2086108970-13d08de5-11e711eb-b521afa9-59a9cb7eddeb0d709beccf93",
"remoteMediaElementId":null,
"name": "stream1test",
"published": true,
"hasVideo": true,
"hasAudio": true,
"status": "PUBLISHING",
"sdp": ".....",
"infoaudioCodec":null "opus",
"recordvideoCodec":true "H264",
"recordNamerecord":"stream-4f112b20-13d0-11e7-b521-59a9cb7eddeb-737lrm8t053nlg8c2n23ctco33.mp4",
false,
"width":0 640,
"height":0 360,
"bitrate": 0,
"qualityminBitrate": 0,
"rtmpUrlmaxBitrate":null 0,
"streamInfoquality":{ 0,
"customhistory":{} false,
"nodeIdgop":null 0,
"appKeyfps":null 0,
"sessionIdaudioBitrate":null 0,
"mediaSessionIdcodecImpl":"4f112b20-13d0-11e7-b521-59a9cb7eddeb "",
"nametransport": "stream1UDP",
"samplingTimecvoExtension":1490717116551 false,
"recordTimestampcreateDate":7640 1616730250682,
"recordStartedmediaType":true
} "publish",
"mediaProvider": "FlashWebRTC"
}] |
|
/stream/terminate
...
Request
...
Response
...
Code Block |
---|
|
POST /rest-api/stream/terminate HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 57
Content-Type: application/json
{
"mediaSessionId":"4f112b20-13d0-11e7-b521-59a9cb7eddeb"
} |
...
Code Block |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Tue, 28 Mar 2017 16:11:48 GMT |
/stream/snapshot
...
Request
...
Response
...
Code Block |
---|
|
POST /rest-api/stream/snapshot HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 57
Content-Type: application/json
{
"streamName" : "64966f33"
} |
...
Code Block |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 858
Date: Tue, 28 Mar 2017 16:11:48 GMT
{
"data":"iVBORw0KGgoAAAANSUhEUgAAAUAAAADwCAYAAABxLb1rAAAACXBIWXMAAAAAAAAAAQCEeRdzAAAQAElEQVR4nOzd95Pcd37feVjhrFKwXT6fr+r+gPvh6nx1V5bvLMt3liXbkiWtrF1v1O5qVxu4icucwUyABAMIAgSIQOQcBzlnzAADDIDJuadzzjmH173f7+/302l6gO4GiCHIZtWjeqZnejAAu5/9+XzD57tgwYIF6Ojo6PiSmvdfoKOjo2O+zPsv0NHR0TFf5v0X6Ojo6Jgv8/4LdHR0dMyXef8FOjo6OubLvP8CHR0dHfNl3n+Bjo6Ojvky779AR0dHx3yZ91+go6OjY77M+y/Q0dHRMV/m/Rfo6OjomC/z/gt0dHR0zJd5/wU6Ojo65su8/wIdHR0d82Xef4GOjo6O+TLvv0BHR0fHfJn3X6Cjo6Njvsz7L9DR0dExX+b9F+jo6OiYL/P+C3R0dHTMl3n/BTo6Ojrmy7z/Ah0dHR1t+Ue636rzGzr19Tv8jPn/S3R0dHS04z4E8HfR0dHR8XD5DaGC94/rdALY0dHxBXafAlj/wI6OjofPb7foXh//edcJYEfHl4gaCd0tDPXf0+rjHxbNT4F/6/fR0dHxkPsNnhb+DvnNO7zYf1P7nt/8vTYf/3nzj8hvk/+B/GPt76DIfey3dHP8jN/8g/8JHR0dD7d/9Hv/Ixb87j/Hgt/5ZzSt+6dY8D/8Eyz47T+o4Pv4a/Q9v/H7/6L1x3+e8O+m/134d/+tf/Iv8dv/9H/G7/zz/6Xs9/7ZvxS//8/+hfiDP/gD/P7v/z5+7/d+D7/7u7+L3/md3xELVl6PoaOj4"
} |
/stream/startRecording
Request | Response |
---|
,
"metrics": {
"VIDEO_SYNC": 3825719227118,
"VIDEO_K_FRAMES": 87,
"AUDIO_SYNC": 3825719227166,
"VIDEO_NACK": 0,
"AUDIO_RATE": 32912,
"AUDIO_LOST": 112,
"VIDEO_LOST": 0,
"VIDEO_CODEC": 119,
"VIDEO_B_FRAMES": 0,
"VIDEO_PLI": 0,
"AUDIO_CODEC": 111,
"VIDEO_RATE": 542200,
"VIDEO_WIDTH": 640,
"VIDEO_GOP_SIZE": 60,
"VIDEO_HEIGHT": 360,
"VIDEO_FPS": 13,
"VIDEO_P_FRAMES": 4972
}
}
] |
|
/stream/terminate
Request | Response |
---|
Code Block |
---|
| POST /rest-api/stream/terminate HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 57
Content-Type: application/json
{
"mediaSessionId":"4f112b20-13d0-11e7-b521-59a9cb7eddeb"
} |
| |
POST /rest-api/stream/startRecording Host192.168.1.101:8081Apache-Coyote/1.1
Content-Length: |
|
65Content-Type: application/json
{
"mediaSessionId":"b8ffd290-bcfa-11e9-9482-17706e285ec5"
"config": {
"fileTemplate": "{streamName}-{startTime}-{endTime}",
"rotation": "20M"
}
} Code Block |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: TueDate: Tue, 28 Mar 2017 16:11:48 GMT |
|
/stream/
...
snapshot
Request | Response |
---|
Code Block |
---|
| POST /rest-api/stream/ |
|
stopRecordingsnapshot HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: |
|
6557
Content-Type: application/json
{
" |
|
mediaSessionId"b8ffd290-bcfa-11e9-9482-17706e285ec5 | Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: |
|
0858
Date: Tue, 28 Mar 2017 16: |
|
21/data/send
Request
{
"data":"iVBORw0KGgoAAAANSUhEUgAAAUAAAADwCAYAAABxLb1rAAAACXBIWXMAAAAAAAAAAQCEeRdzAAAQAElEQVR4nOzd95Pcd37feVjhrFKwXT6fr+r+gPvh6nx1V5bvLMt3liXbkiWtrF1v1O5qVxu4icucwUyABAMIAgSIQOQcBzlnzAADDIDJuadzzjmH173f7+/302l6gO4GiCHIZtWjeqZnejAAu5/9+XzD57tgwYIF6Ojo6PiSmvdfoKOjo2O+zPsv0NHR0TFf5v0X6Ojo6Jgv8/4LdHR0dMyXef8FOjo6OubLvP8CHR0dHfNl3n+Bjo6Ojvky779AR0dHx3yZ91+go6OjY77M+y/Q0dHRMV/m/Rfo6OjomC/z/gt0dHR0zJd5/wU6Ojo65su8/wIdHR0d82Xef4GOjo6O+TLvv0BHR0fHfJn3X6Cjo6Njvsz7L9DR0dExX+b9F+jo6OiYL/P+C3R0dHTMl3n/BTo6Ojrmy7z/Ah0dHR1t+Ue636rzGzr19Tv8jPn/S3R0dHS04z4E8HfR0dHR8XD5DaGC94/rdALY0dHxBXafAlj/wI6OjofPb7foXh//edcJYEfHl4gaCd0tDPXf0+rjHxbNT4F/6/fR0dHxkPsNnhb+DvnNO7zYf1P7nt/8vTYf/3nzj8hvk/+B/GPt76DIfey3dHP8jN/8g/8JHR0dD7d/9Hv/Ixb87j/Hgt/5ZzSt+6dY8D/8Eyz47T+o4Pv4a/Q9v/H7/6L1x3+e8O+m/134d/+tf/Iv8dv/9H/G7/zz/6Xs9/7ZvxS//8/+hfiDP/gD/P7v/z5+7/d+D7/7u7+L3/md3xELVl6PoaOj4"
} |
|
/stream/startRecording
Request | Response |
---|
Code Block |
---|
| POST /rest-api/ |
|
datasendstartRecording HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: |
|
20165
Content-Type: application/json
{
" |
|
nodeIdcm2p2VmswiHZ4pO12Ps8anz1NYudEOL1@192.168.1.101b8ffd290-bcfa-11e9-9482-17706e285ec5",
" |
|
operationId"d1999750-fde9-11e6-9f1b-913210792936",
"sessionId":"/192.168.1.102:15422/192.168.1.101:8443 {
"fileTemplate": "{streamName}-{startTime}-{endTime}",
" |
|
payload{
message":"hello | Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Tue, 28 Mar 2017 16: |
|
2118
/
...
stream/
...
stopRecording
Request | Response |
---|
Code Block |
---|
| POST /rest-api/ |
|
connectionfind_allstopRecording HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: |
|
065
Content-Type: application/json
{
"mediaSessionId":"b8ffd290-bcfa-11e9-9482-17706e285ec5"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content- |
|
Typeapplication/json;charset=UTF-80
Date: Tue, 28 Mar 2017 16: |
|
4207 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
/stream/event/send
Request | Response |
---|
Code Block |
---|
| 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 |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true |
|
/data/send
Request | Response |
---|
Code Block |
---|
| 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: |
|
310498080statusnull,
"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":" | Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Tue, 28 Mar 2017 16:21:18 GMT |
|
Request | Response |
---|
Code Block |
---|
| POST /rest-api/data/send HTTP/1.1
Host: 192.168.1.101:8081
Content-Type: application/json
{
"nodeId":"cm2p2VmswiHZ4pO12Ps8anz1NYudEOL1@192.168.1.101",
"operationId":"d1999750-fde9-11e6-9f1b-913210792936",
"sessionIds": [
"/192.168.1.102:15422/192.168.1.101:8443",
"/192.168.1. |
|
1021542253002/192.168.1.101:8443" |
|
,
"status":nullrestClientConfignull,
"clientVersion":"0.5.18",
"clientOSVersion":"5.0 (Windows NT 6.3; Win64; x64) ...",
"clientBrowserVersion":"... Chrome/57.0.2987.110 ..."
}]/connection/find
Request | ResponsePOST /rest-api/connection/find
Host: 192.168.1.101:808148Content-Type: application/json
{
"appKey":"roomApp",
"clientVersion":"0.5.18"
}Date: Mon, 10 Apr 2023 16:21:18 GMT |
|
/data/batch_send
Request | Response |
---|
Code Block |
---|
| POST /rest-api/data/batch_send HTTP/1.1 |
|
200 OKServerApache-Coyote/1101:8081
Content-Type: application/json |
|
;charset=UTF-8
Date: Tue, 28 Mar 2017 17:12:38 GMT
[{
"custom":{},
"nodeId":null,
"appKey":"roomApp",
[
{
"nodeId":"cm2p2VmswiHZ4pO12Ps8anz1NYudEOL1@192.168.1.101",
"operationId":"d1999750-hello",
"sessionId":"/192.168.1.102: |
|
3956415422/192.168.1.101:8443",
|
|
"sipRegisterRequiredfalse,
"sipLoginkj32o1iok1bnk33smpjg3g7el0",
"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:39564/hello"
}
},
{
"nodeId":"cm2p2VmswiHZ4pO12Ps8anz1NYudEOL1@192.168.1.101",
"operationId":"d1999750-kick",
"sessionId":"/192.168.1.103:53002/192.168.1.101:8443",
"payload":{
"message":"bye"
}
}
] |
| Code Block |
---|
| HTTP/1.1 200 OK
Content-Length: 0
Date: Mon, 10 Apr 2023 16:21:18 GMT |
|
/connection/find_all
Request | Response |
---|
Code Block |
---|
| POST /rest-api/connection/find_all HTTP/1.1
Host: 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 ..."
},{
8081
Content-Length: 0
Content-Type: application/json |
| Code Block |
---|
| 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: |
|
2147931049/192.168.1.101:8080",
"sipRegisterRequired":false,
"sipLogin":" |
|
e09elik992uig0fk08kddtijp8a5ledkh95o57os4ge5i4ihpqio",
"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"],
"appMainClass":null,
"appCallbackClass":null,
"authToken":"/192.168.1.102: |
|
2147931049/192.168.1.101:8080",
"status":null,
"restClientConfig":null,
"clientVersion":" |
|
05180",
"clientOSVersion":null,
"clientBrowserVersion":null
},{
"custom":{},
"nodeId": |
|
"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 |
---|
|
POST /rest-api/connection/terminate HTTP/1.1
Host:192.168.1.101:8081
Content-Length: 55
Content-Type: application/json
{
"sessionId":"/192.168.1.102:39564/192.168.1.101:8443"
} |
...
Code Block |
---|
|
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 |
---|
|
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"
} |
...
Code Block |
---|
|
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":"rtmp_cf58",
"rtmpUrl":"rtmp://rtmp.flashphoner.com:1935/live"
} |
...
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 ..."
}
] |
|
/connection/find
Request | Response |
---|
Code Block |
---|
| POST /rest-api/ |
|
pushconnection/find HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: |
|
4048
Content-Type: application/json
{
" |
|
rtmpUrl"rtmp://localhost:1935/live"roomApp",
"clientVersion":"0.5.18"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: |
|
FriApr55:31mediaSessionId"bung2cu1npigp8u4bd75ha4c5r"streamNamertmp_4be7rtmpUrlrtmp://localhost:1935/live"
},{
"mediaSessionId":"hs4khbl7g3abmnkeli217lrcmf",
"streamName":"rtmp_f85d",
"rtmpUrl":"rtmp://localhost:1935/live"
}]/push/find_all
...
Request
...
Response
...
Code Block |
---|
|
POST /rest-api/push/find_all HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 0
Content-Type: application/json |
...
Code Block |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Fri, 28 Apr 2017 12:56: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 |
---|
|
POST /rest-api/push/terminate HTTP/1.1
Host: /192.168.1.102:39564/192.168.1.101:8443",
"sipRegisterRequired":false,
"sipLogin":"kj32o1iok1bnk33smpjg3g7el0",
"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:39564/192.168.1.101: |
|
8081
Content-Length: 48
Content-Type: application/json
{
"mediaSessionId": "6dk1l0m3cm17c68232bccm52f1"
} Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 28 Apr 2017 12:56:51 |
| /push/mute
...
Request
...
Response
...
Code Block |
---|
|
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 |
---|
|
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 |
---|
|
POST /rest-api/push/unmute HTTP/1.1
Host: 8443",
"status":null,
"restClientConfig":null,
"clientVersion":"0.5.18",
"clientOSVersion":"5.0 (Windows NT 6.3; Win64; x64) ...",
"clientBrowserVersion":"... Chrome/57.0.2987.110 ..."
},{
"custom":{},
"nodeId":null,
"appKey":"roomApp",
"sessionId":"/192.168.1.102:21479/192.168.1.101: |
|
8081
Content-Length: 48
Content-Type: application/json
{
"mediaSessionId": "gocrv1ncahlkcqht9k2nbs8tbc"
} Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Mon, 03 Jul 2017 09:07:27 GMT |
| /push/sound_on
...
Request
...
Response
Code Block |
---|
|
POST /rest-api/push/sound_on HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 88
Content-Type: application/json
{
"mediaSessionId": "gocrv1ncahlkcqht9k2nbs8tbc",
"soundFile":"sample.wav",
"loop": true
} |
...
Code Block |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Mon, 03 Jul 2017 09:11:42 GMT |
...
8080",
"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: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 |
---|
| POST /rest-api/ |
|
pushsound_off 192.168.1.101:8081
Content-Length: |
|
4855
Content-Type: application/json
{
" |
|
mediaSessionId "gocrv1ncahlkcqht9k2nbs8tbc"/192.168.1.102:39564/192.168.1.101:8443"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: |
|
Mon03Jul091225
/
...
push/
...
startup
Request | Response |
---|
Code Block |
---|
| POST /rest-api/ |
|
pullrtmp/pullstartup HTTP/1.1
Host: 192.168.1.101:8081
Content- |
|
Typeapplication/json;charset=UTF-8Length60application/json
{
"streamName": "cf58",
" |
|
urirtmpUrl":"rtmp://rtmp.flashphoner.com:1935/live/ |
|
rtmp_stream1"test",
"rtmpTransponderFullUrl": true
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content- |
|
Length0application/json;charset=UTF-8
Date: |
|
Thu23Nov094723 GMT...
00 GMT
{
"mediaSessionId":"6dk1l0m3cm17c68232bccm52f1",
"streamName":"test",
"rtmpUrl":"rtmp://rtmp.flashphoner.com:1935/live"
} |
|
/push/find
Request | Response |
---|
Code Block |
---|
| POST /rest-api/ |
|
pullrtmp/_all HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: |
|
040
Content-Type: application/json
{
"rtmpUrl":"rtmp://localhost:1935/live"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Fri, |
|
24Nov142735localMediaSessionId69695ed6-6e78-455c-9fee-ae1af8d4a0b5bung2cu1npigp8u4bd75ha4c5r",
|
|
"remoteMediaSessionId":null,
"localStreamName://rtmp.flashphoner.com:1935/live/stream1"remoteStreamName":null,
"uri"rtmp.flashphoner.com/stream1,
"status":"PROCESSED_REMOTE"
localMediaSessionIddfae1a1c-f99b-4e56-9f19-7dc7903ede8dhs4khbl7g3abmnkeli217lrcmf",
" |
|
remoteMediaSessionIdnulllocalStreamNamewowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov",
"remoteStreamName":null,
"uri":"rtmp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov",
"status":"PROCESSED_REMOTE"
}]/pull/rtmp/terminate
...
Request
...
Response
...
Code Block |
---|
|
POST /rest-api/pull/rtmp/terminate HTTP/1.1
Host: 192.168.1.101:8081
Content-Type: application/json;charset=UTF-8
Content-Length: 60
{
"uri":"rtmp://rtmp.flashphoner.com:1935/live/rtmp_stream1"
} |
...
Code Block |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 23 Nov 2017 09:47:31 GMT |
/mixer/startup
...
Request
...
Response
...
Code Block |
---|
|
POST /rest-api/mixer/startup HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 70
{
"uri": "mixer://mixer1",
"localStreamName": "mixer1_stream"
} |
...
Code Block |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 24 Nov 2017 14:55:26 GMT |
/mixer/add
...
Request
...
Response
...
Code Block |
---|
|
POST /rest-api/mixer/add 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 |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 24 Nov 2017 15:21:06 GMT |
/mixer/remove
...
Request
...
Response
...
Code Block |
---|
|
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 |
---|
|
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 |
---|
|
POST /rest-api/mixer/find_all HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 0 |
...
Code Block |
---|
|
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 |
---|
|
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 |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 24 Nov 2017 14:55:35 GMT |
/mixer/test/start
...
Request
...
Response
...
Code Block |
---|
|
POST /rest-api/mixer/test/start HTTP/1.1
HOST: 192.168.1.101:8081
Content-type: application/json
Content-length: 107
{
"feedingStreams": [
"s1",
"s2"
],
"mixerCount": 3,
"streamsInMixer": 1,
"intervalInSeconds": 60
}
|
...
Code Block |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Wed, 22 Aug 2018 08:53:26 GMT |
/mixer/test/stop
...
Request
...
Response
...
Code Block |
---|
|
POST /rest-api/mixer/test/stop HTTP/1.1
HOST: 192.168.1.101:8081
Content-type: application/json
Content-length: 0
{
}
|
...
Code Block |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Wed, 22 Aug 2018 08:53:26 GMT |
/mixer/test/get_start_example
...
Request
...
Response
...
Code Block |
---|
|
POST /rest-api/mixer/test/get_start_example HTTP/1.1
HOST: 192.168.1.101:8081
Content-type: application/json
Content-length: 0
{
}
|
...
Code Block |
---|
|
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 |
---|
|
POST /rest-api/pull/pull HTTP/1.1
Host: 192.168.1.101:8081
Content-Type: application/json;charset=UTF-8
Content-Length: 60
{
"uri":"wss://demo.flashphoner.com:8443"
"localStreamName": "6602"
"remoteStreamName": "6602"
} |
...
Code Block |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 23 Nov 2017 09:47:23 GMT |
/pull/find_all
...
Request
...
Response
...
Code Block |
---|
|
POST /rest-api/pull/find_all HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 0
Content-Type: application/json |
...
Code Block |
---|
|
HTTP/1.1 200 OK
Server: 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"
}] |
/pull/push
...
Request
...
Response
...
Code Block |
---|
|
POST /rest-api/pull/pull HTTP/1.1
Host: 192.168.1.101:8081
Content-Type: application/json;charset=UTF-8
Content-Length: 60
{
"uri":"wss://demo.flashphoner.com:8443"
"localStreamName": "0d40"
"remoteStreamName": "0d40"
} |
...
Code Block |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 23 Nov 2017 09:47:23 GMT |
/pull/terminate
...
Request
...
Response
...
Code Block |
---|
|
POST /rest-api/pull/terminate HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 31
{
"uri": "wss://demo.flashphoner.com:8443"
} |
Code Block |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 24 Nov 2017 14:55:35 GMT |
/logger/enable_client_log
...
Code Block |
---|
|
POST /rest-api/logger/enable_client_log HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 71
{
"sessionId": "/127.0.0.1:57539/192.168.1.101:8443",
"logLevel": "DEBUG"
} |
...
Code Block |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Wed, 03 Sep 2018 06:58:40 GMT |
/logger/disable_client_log
Request | Response |
---|
Code Block |
---|
|
POST /rest-api/logger/disable_client_log HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 71
{
"sessionId": "/127.0.0.1:57539/192.168.1.101:8443
/push/find_all
Request | Response |
---|
Code Block |
---|
| POST /rest-api/push/find_all HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 0
Content-Type: application/json |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Fri, 28 Apr 2017 12:56: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 |
---|
| POST /rest-api/push/terminate HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 48
Content-Type: application/json
{
"mediaSessionId": "6dk1l0m3cm17c68232bccm52f1"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 28 Apr 2017 12:56:51 |
|
/push/mute
Request | Response |
---|
Code Block |
---|
| 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 |
---|
| 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 |
---|
| 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 |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Mon, 03 Jul 2017 09:07:27 GMT |
|
/push/sound_on
Request | Response |
---|
Code Block |
---|
| POST /rest-api/push/sound_on HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 88
Content-Type: application/json
{
"mediaSessionId": "gocrv1ncahlkcqht9k2nbs8tbc",
"soundFile":"sample.wav",
"loop": true
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Mon, 03 Jul 2017 09:11:42 GMT |
|
/push/sound_off
Request | Response |
---|
Code Block |
---|
| POST /rest-api/push/sound_off HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 48
Content-Type: application/json
{
"mediaSessionId": "gocrv1ncahlkcqht9k2nbs8tbc"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Mon, 03 Jul 2017 09:12:25 GMT |
|
/pull/rtmp/pull
Request | Response |
---|
Code Block |
---|
| POST /rest-api/pull/rtmp/pull HTTP/1.1
Host: 192.168.1.101:8081
Content-Type: application/json;charset=UTF-8
Content-Length: 60
{
"uri":"rtmp://rtmp.flashphoner.com:1935/live/rtmp_stream1",
"localStreamName":"stream1"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 23 Nov 2017 09:47:23 GMT |
|
/pull/rtmp/find_all
Request | Response |
---|
Code Block |
---|
| POST /rest-api/pull/rtmp/find_all HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 0
Content-Type: application/json |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Fri, 24 Nov 2017 14:27:35 GMT
[
{
"localMediaSessionId":"69695ed6-6e78-455c-9fee-ae1af8d4a0b5",
"localStreamName":"stream1",
"uri":"rtmp://rtmp.flashphoner.com:1935/live/stream1",
"status":"PROCESSED_REMOTE",
"hasAudio": true,
"hasVideo": true,
"record" false
},{
"localMediaSessionId":"dfae1a1c-f99b-4e56-9f19-7dc7903ede8d",
"localStreamName":"rtmp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov",
"uri":"rtmp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov",
"status":"PROCESSED_REMOTE",
"hasAudio": true,
"hasVideo": true,
"record" false
}
] |
|
/pull/rtmp/terminate
Request | Response |
---|
Code Block |
---|
| POST /rest-api/pull/rtmp/terminate HTTP/1.1
Host: 192.168.1.101:8081
Content-Type: application/json;charset=UTF-8
Content-Length: 60
{
"uri":"rtmp://rtmp.flashphoner.com:1935/live/rtmp_stream1"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 23 Nov 2017 09:47:31 GMT |
|
/mixer/startup
Request | Response |
---|
Code Block |
---|
| POST /rest-api/mixer/startup HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 70
{
"uri": "mixer://mixer1",
"localStreamName": "mixer1_stream",
"hasVideo": true,
"hasAudio": false,
"watermark": "watermark.png",
"background": "background.png",
"mixerLayoutClass": "com.flashphoner.mixerlayout.TestLayout"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 24 Nov 2017 14:55:26 GMT |
|
/mixer/add
Request | Response |
---|
Code Block |
---|
| POST /rest-api/mixer/add HTTP/1.1
Host: localhost:8081
Content-Type: application/json
Content-Length: 85
{
"uri": "mixer://m1",
"remoteStreamName": "stream1",
"audioLevel": 0,
"videoMuted": false
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 09 Jul 2021 15:21:06 GMT |
|
/mixer/remove
Request | Response |
---|
Code Block |
---|
| 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 |
---|
| 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 |
---|
| POST /rest-api/mixer/find_all HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 0 |
| Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Content-Type: application/json
Content-Length: 574
[
{
"localMediaSessionId": "e2fa5c8b-16f3-4917-9d5f-557dde75db07",
"localStreamName": "m1",
"uri": "mixer://m1",
"status": "PROCESSED_LOCAL",
"hasAudio": true,
"hasVideo": true,
"record": false,
"mediaSessions": [
{
"localMediaSessionId": "3dd763b0-2ae7-11eb-aa72-37b2cbcbf6b9",
"audioLevel": 0,
"videoMuted": true,
"localStreamName": "stream1"
},
{
"localMediaSessionId": "8af64760-2ae7-11eb-b086-cdf035231b9d",
"audioLevel": 100,
"videoMuted": false,
"localStreamName": "desktop"
},
{
"localMediaSessionId": "7cc4b410-2ae7-11eb-b34c-a5240fe9f151",
"audioLevel": 0,
"videoMuted": false,
"localStreamName": "stream2"
}
]
}
] |
|
/mixer/terminate
Request | Response |
---|
Code Block |
---|
| 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 |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 24 Nov 2017 14:55:35 GMT |
|
/mixer/setAudioVideo
Request | Response |
---|
Code Block |
---|
| 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 |
---|
| 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 |
---|
| POST /rest-api/mixer/set_body_watermark HTTP/1.1
Host: localhost:8081
Accept: */*
Content-Type: application/json
Content-Length: 68
{
"uri":"mixer://m1",
"watermark":"/opt/media/logo.png",
"x":10,
"y":10
} |
| Code Block |
---|
| 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 |
|
/mixer/set_stream_watermark
Request | Response |
---|
Code Block |
---|
| POST /rest-api/mixer/set_stream_watermark HTTP/1.1
Host: localhost:8081
Accept: */*
Content-Type: application/json
Content-Length: 124
{
"uri":"mixer://m1",
"watermark":"/opt/media/logo.png",
"mediaSessionId":"f2019570-1f9d-11ed-b6ef-050068a3a458",
"x":10,
"y":10
} |
| Code Block |
---|
| 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 |
|
/mixer/set_parameter
Request | Response |
---|
Code Block |
---|
| POST /rest-api/mixer/set_parameter HTTP/1.1
Host: localhost:8081
Content-Type: application/json
Content-Length: 55
{
"uri":"mixer://m1",
"mixerLayoutDir":"/opt/GridLayout"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Content-Length: 0
Date: Mon, 14 Nov 2022 14:55:35 GMT |
|
/mixer/set_stream_avatar
Request | Response |
---|
Code Block |
---|
| POST /rest-api/mixer/set_stream_avatar HTTP/1.1
Host: localhost:8081
Content-Type: application/json
Content-Length: 74
{
"uri":"mixer://m1",
"remoteStreamName":"user2",
"avatar":"/opt/avatar.png"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true |
|
/mixer/remove_stream_avatar
Request | Response |
---|
Code Block |
---|
| POST /rest-api/mixer/remove_stream_avatar HTTP/1.1
Host: localhost:8081
Content-Type: application/json
Content-Length: 47
{
"uri":"mixer://m1",
"remoteStreamName":"user2"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true |
|
/mixer/test/start
Request | Response |
---|
Code Block |
---|
| POST /rest-api/mixer/test/start HTTP/1.1
HOST: 192.168.1.101:8081
Content-type: application/json
Content-length: 107
{
"feedingStreams": [
"s1",
"s2"
],
"mixerCount": 3,
"streamsInMixer": 1,
"intervalInSeconds": 60
}
|
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Wed, 22 Aug 2018 08:53:26 GMT |
|
/mixer/test/stop
Request | Response |
---|
Code Block |
---|
| POST /rest-api/mixer/test/stop HTTP/1.1
HOST: 192.168.1.101:8081
Content-type: application/json
Content-length: 0
{
}
|
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Wed, 22 Aug 2018 08:53:26 GMT |
|
/mixer/test/get_start_example
Request | Response |
---|
Code Block |
---|
| POST /rest-api/mixer/test/get_start_example HTTP/1.1
HOST: 192.168.1.101:8081
Content-type: application/json
Content-length: 0
{
}
|
| Code Block |
---|
| 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 |
---|
| POST /rest-api/pull/pull HTTP/1.1
Host: 192.168.1.101:8081
Content-Type: application/json;charset=UTF-8
Content-Length: 60
{
"uri":"wss://demo.flashphoner.com:8443/websocket",
"localStreamName": "6602",
"remoteStreamName": "6602"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 23 Nov 2017 09:47:23 GMT |
|
/pull/find_all
Request | Response |
---|
Code Block |
---|
| POST /rest-api/pull/find_all HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 0
Content-Type: application/json |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: 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"
}
] |
|
/pull/push
Request | Response |
---|
Code Block |
---|
| POST /rest-api/pull/pull HTTP/1.1
Host: 192.168.1.101:8081
Content-Type: application/json;charset=UTF-8
Content-Length: 60
{
"uri":"wss://demo.flashphoner.com:8443/websocket",
"localStreamName": "0d40",
"remoteStreamName": "0d40"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 23 Nov 2017 09:47:23 GMT |
|
/pull/terminate
Request | Response |
---|
Code Block |
---|
| POST /rest-api/pull/terminate HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 31
{
"uri": "wss://demo.flashphoner.com:8443/websocket"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 24 Nov 2017 14:55:35 GMT |
|
/logger/enable_client_log
Request | Response |
---|
Code Block |
---|
| POST /rest-api/logger/enable_client_log HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 71
{
"sessionId": "/127.0.0.1:57539/192.168.1.101:8443",
"logLevel": "DEBUG"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Wed, 03 Sep 2018 06:58:40 GMT |
|
/logger/disable_client_log
Request | Response |
---|
Code Block |
---|
| POST /rest-api/logger/disable_client_log HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 71
{
"sessionId": "/127.0.0.1:57539/192.168.1.101:8443"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Wed, 03 Sep 2018 06:58:40 GMT |
|
/cdn/show_nodes
Request | Response |
---|
Code Block |
---|
| POST /rest-api/cdn/show_nodes HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 0 |
| Code Block |
---|
| 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
Request | Response |
---|
Code Block |
---|
| POST /rest-api/cdn/show_routes HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 0 |
| Code Block |
---|
| 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
Request | Response |
---|
Code Block |
---|
| POST /rest-api/cdn/show_state HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 0 |
| Code Block |
---|
| 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
Request | Response |
---|
Code Block |
---|
| 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 |
---|
| 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
Request | Response |
---|
Code Block |
---|
| 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 |
---|
| 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
Request | Response |
---|
Code Block |
---|
| 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 |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json |
|
/cdn/stream/access_list/remove
Request | Response |
---|
Code Block |
---|
| 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 |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json |
|
/cdn/stream/access_list/print
Request | Response |
---|
Code Block |
---|
| 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 |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Length: 8
Content-Type: application/json
[
"key2"
] |
|
/cdn/stream/access_list/delete
Request | Response |
---|
Code Block |
---|
| 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 |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json |
|
/cdn/profile/add
Request | Response |
---|
Code Block |
---|
| 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
}
}
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json |
|
/cdn/profile/modify
Request | Response |
---|
Code Block |
---|
| POST /rest-api/cdn/profile/modify HTTP/1.1
Content-Length: 15
Content-Type: application/json
Host: test.flashphoner.com:8081
{
"name": "-profile1",
"profile": {
"video": {
"bitrate": 400,
"quality": 25
}
}
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json |
|
/cdn/profile/print
Request | Response |
---|
Code Block |
---|
| POST /rest-api/cdn/profile/print HTTP/1.1
Content-Length: 0
Content-Type: application/json
Host: test.flashphoner.com:8081
|
| Code Block |
---|
| 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,
"gop": 50,
"height": 240,
"preset": "veryfast",
"quality": 0,
"type": "video",
"width": 0
}
},
"-480p": {
"audio": {
"bitrate": 0,
"channels": 0,
"codec": "opus",
"rate": 48000,
"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
Request | Response |
---|
Code Block |
---|
| POST /rest-api/cdn/profile/remove HTTP/1.1
Content-Length: 15
Content-Type: application/json
Host: test.flashphoner.com:8081
{
"name": "-profile1"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json |
|
/cdn/remove_node
Request | Response |
---|
Code Block |
---|
| POST /rest-api/cdn/remove_node HTTP/1.1
Content-Length: 15
Content-Type: application/json
Host: test.flashphoner.com:8081
{
"nodeIp": "192.168.1.207"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json |
|
/cdn/connection/reset_inbound
Request | Response |
---|
Code Block |
---|
| POST /rest-api/cdn/connection/reset_inbound HTTP/1.1
Content-Length: 15
Content-Type: application/json
Host: test.flashphoner.com:8081
{
"nodeId": "192.168.1.207"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
|
|
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Wed, 03 Sep 2018 06:58:40 GMTAccess-Control-Allow-Origin: *
Content-Type: application/json |
|
/cdn/
...
connection/reset_
...
outbound
Request | Response |
---|
Code Block |
---|
| POST /rest-api/cdn/connection/ |
|
shownodesHOST: 192.168.1.101:8081
content-type: application/json
content-length: 0 Code Block |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 224
Date: Thu, 06 Dec 2018 4:16:40 GMT
[
{
Content-Length: 15
Content-Type: application/json
Host: test.flashphoner.com:8081 |
|
"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
Request | Response |
---|
Code Block |
---|
|
POST/rest-api/cdn/show_routesHTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 0 Code Block |
---|
| 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
Request | Response |
---|
Code Block |
---|
|
POST /rest-api/cdn/show_state HTTP/1.1
HOST: 101:8081
content-type: application/json
content-length: 0 | Code Block |
---|
| 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"
]...
Access-Control-Allow-Origin: *
Content-Type: application/json |
|
/cdn/connection/reset_all
Request | Response |
---|
Code Block |
---|
| POST /rest-api/cdn/connection/ |
|
enforcestate
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 44
{
"state": "GROUP_CONNECTIONS_ALLOWED"
}
Content-Length: 0
Content-Type: application/json
Host: test.flashphoner.com:8081
|
| Code Block |
---|
| HTTP/1.1 200 OK
|
|
ServerAccess-Control-Allow-Origin: |
|
Apache-Coyote/1.1Length: 0
Date: Thu, 06 Dec 2018 8:36:30 GMT...
/recorder/startup
Request | Response |
---|
Code Block |
---|
| POST /rest-api/ |
|
cdn/stream/show_routesrecorder/startup HTTP/1.1
|
|
HOST192.168.1.101:8081
content-type52
Content-Type: application/json |
|
content-length: 30
{
"streamName":"test-profile1"
} Code Block |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 411
Date: Mon, 07 Jan 2018 4:16:40 GMT
{
"REQUESTED-PROFILE": [
Host: test.flashphoner.com:8081 |
|
"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}"
]
}...
{
"mediaSessionId": "5a072377-73c1-4caf-abd3",
"config": {
"fileTemplate": "{streamName}-{startTime}-{endTime}",
"rotation": "20M"
}
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json |
|
/recorder/terminate
/cdn/stream/access_list/add/recorder/terminate HTTP/1.1
Content- |
|
Typeapplication/json
Host: test.flashphoner.com:8081
Content-Length:39
Content-Type: application/json
HOST: 192.168.1.101:8081
|
|
{
"mediaSessionId": "5a072377-73c1-4caf-abd3"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: |
|
"keys": [ *
Content-Type: application/json |
|
/recorder/find_all
Request | Response |
---|
Code Block |
---|
| POST /rest-api/recorder/find_all HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 0
|
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 125
Date: Thu, 06 Dec 2018 4:16:40 GMT
[
{
|
|
"key1","fileName": "9c3e-test-1563776083752-{endTime}.mp4",
|
|
"key2""mediaSessionId": "5a072377-73c1-4caf-abd3"
}
] |
|
/multipleRecorder/startup
Request | Response |
---|
Code Block |
---|
| POST /rest-api/multipleRecorder/startup HTTP/1.1
Host: localhost:9091
Content-type: application/json
Content-Length: 22
|
|
],
{
"uri": "multi-recorder://test-record"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: * |
|
/multipleRecorder/add
Request | Response |
---|
Code Block |
---|
| POST /rest-api/multipleRecorder/add HTTP/1.1
Host: localhost:9091
Content-type: application/json
Content-Length: 78 |
|
"name":"test"
}
{
"uri": "multi-recorder://test-record",
|
|
"mediaSessionId": "d010f9a0-fe34-11eb-9d0a-fb2207ead79d"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: * |
|
Content-Type: application/json/
...
multipleRecorder/remove
Request | Response |
---|
Code Block |
---|
| POST /rest-api/ |
|
cdn/stream/access_list/multipleRecorder/remove HTTP/1.1 |
|
Content-Length: 32
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 |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: * |
|
/multipleRecorder/find_all
Request | Response |
---|
Code Block |
---|
| POST /rest-api/multipleRecorder/find_all HTTP/1.1
Host: localhost:9091
Content-type: application/json
|
| Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Content-Type: application/json
Content-Length: 239
[
{
"mediaSessionsId": [
"d010f9a0-fe34-11eb-9d0a-fb2207ead79d",
"dca111f0-fe34-11eb-ba46-45d41f052372",
"e7614c40-fe34-11eb-8d5e-07d6ca1cc7ff"
],
|
|
keys["multi-recorder://test-record",
"fileName": |
|
"key1" "multi-recorder___test-record.mp4"
}
] |
|
/multipleRecorder/terminate
Request | Response |
---|
Code Block |
---|
| 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 |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: * |
|
/transcoder/startup
Request | Response |
---|
Code Block |
---|
| POST /rest-api/transcoder/startup |
|
"nameHTTP/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"
}
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 06 Dec 2018 4:16:40 GMT |
|
/transcoder/find
Request | Response |
---|
Code Block |
---|
| 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 |
---|
| HTTP/1.1 200 OK
|
|
Access-Control-Allow-Origin*
Content-Type: application/json/cdn/stream/access_list/print
Request | Response |
---|
Code Block |
---|
|
POST /rest-api/cdn/stream/access_list/print HTTP/Apache-Coyote/1.1
Content-Length: 286
Date: |
|
15 Thu, 06 Dec 2018 4:16:40 GMT
[
{
"localMediaSessionId": "42a92132-bcd1-4436-a96f-3fec36b32b37",
"localStreamName": "testT",
"remoteStreamName": |
|
Content-Type: application/json"test",
"uri": "transcoder://tcode1",
"status": "PROCESSED_LOCAL",
"hasAudio": true,
|
|
Host: test.flashphoner.com:8081"hasVideo": true,
"record": false,
"encoder": {
|
|
"width": 640,
"height": 480,
"keyFrameInterval": 30,
"fps": 30,
|
|
{ "watermark": "Test.png"
}
}
] |
|
/transcoder/find_all
Request | Response |
---|
Code Block |
---|
| POST /rest-api/transcoder/find_all HTTP/1.1
HOST: 192.168.1.101:8081
content-type: |
|
application/json
content-length: 0
|
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 286
Date: Thu, 06 Dec 2018 4:16:40 GMT
[
{
|
|
nametest"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"
}
}
] |
|
/transcoder/terminate
Request | Response |
---|
Code Block |
---|
| 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 |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 06 Dec 2018 |
|
/transcoder/set_watermark
Request | Response |
---|
Code Block |
---|
| 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 |
---|
| HTTP/1.1 200 OK |
|
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Content-Length: |
|
8
Content-Type0
Date: Fri, 19 Aug 2022 14:55:35 GMT |
|
/transcoder2/startup
Request | Response |
---|
Code Block |
---|
| POST /rest-api/transcoder2/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,
|
|
key2bitrate": 1000,
"audioRate": 44100,
|
|
]"audioBitrate": 64000
"audioCodec": "mpeg4-generic",
|
|
| Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: |
|
*
Access-Control-Allow-Credentials: true |
|
/
...
transcoder2/find
Request | Response |
---|
Code Block |
---|
| POST /rest-api/ |
|
cdn/stream/access_list/deletetranscoder2/find HTTP/1.1
HOST: 192.168.1.101:8081
|
|
ContentLength15 application/json
content-length: 30
{
"remoteStreamName": "test"
} |
| Code Block |
---|
| 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",
|
|
Hosttest.flashphoner.com:8081
{ "uri": "transcoder2://tcode2",
"status": "PROCESSED_LOCAL",
"hasAudio": true,
"hasVideo": true,
"record": false,
"encoder": {
"width": 320,
"height": 240,
|
|
name"test"60,
"fps": 30,
"bitrate": 1000,
"audioRate": 44100,
"audioCodec": "mpeg4-generic",
"videoCodec": "H264",
|
|
}/transcoder2/find_all
Request | Response |
---|
Code Block |
---|
| POST /rest-api/transcoder2/find_all |
|
HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 0
|
| Code Block |
---|
| 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": {
"width": 320,
"height": 240,
"keyFrameInterval": 60,
"fps": 30,
"bitrate": 1000,
"audioRate": 44100,
"audioCodec": "mpeg4-generic",
"videoCodec": "H264",
"videoRate": 90000
}
}
] |
|
/transcoder2/terminate
Request | Response |
---|
Code Block |
---|
| 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 |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
|
|
Content-TypeAccess-Control-Allow-Credentials: |
|
application/json/
...
transcoder2/set_watermark
Request | Response |
---|
Code Block |
---|
| 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",
transcoder2/set_watermark HTTP/1.1
Host: localhost:8081
Accept: */*
Content-Type: application/json
Content-Length: 73
{
"uri":"transcoder2://t1",
"watermark":"/opt/media/logo.png",
"x":10,
"y":10
} |
| Code Block |
---|
| 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
Request | Response |
---|
Code Block |
---|
| 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 |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 06 Dec 2018 4:16:40 GMT |
|
/vod/find
Request | Response |
---|
Code Block |
---|
| 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 |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 286
Date: Thu, 06 Dec 2018 4:16:40 GMT
[
{
" |
|
fps30"29ec3236-1093-42bb-88d6-d4ac37af3ac0",
|
|
gop90 height360 quality0 width640 }
}
}"hasVideo": true,
"record": false
|
|
/vod/find_all
Request | Response |
---|
Code Block |
---|
| POST /rest-api/vod/find_all HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 0
|
| Code Block |
---|
| 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": |
|
Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json |
| ...
/vod/terminate
Request | Response |
---|
Code Block |
---|
| POST /rest-api/ |
|
cdnprofile/modifyContent-Length: 15
Content-TypeHOST: 192.168.1.101:8081
content-type: application/json |
|
Host: test.flashphoner.com:8081
{
"name": "-profile1",
"profile": {
"video": {
"bitrate": 400,
"quality": 25
}
}
}
content-length: 30
{
"uri":"vod://sample.mp4",
"localStreamName": "test"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 06 Dec 2018 4:16:40 GMT |
|
/hls/startup
Request | Response |
---|
Code Block |
---|
| POST /rest-api/hls/startup HTTP/1.1
Host: centos3.flashphoner.com:8081
Content-Length: 16
Content-Type: application/json
{
"name": "test"
}
|
| Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json |
|
/
...
hls/find_all
Request | Response |
---|
Code Block |
---|
| POST /rest-api/ |
|
cdn/profile/printhls/find_all HTTP/1.1
Host: localhost:8081
Connection: keep-alive
Content-Length: |
|
0 | Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Length: 493
Content-Type: application/json
[
{
"id": "test",
|
|
Hosttest.flashphoner.com:8081"test",
"status": "ACTIVE",
"waitingSize": 0,
|
|
"a_test",
"v_test"
],
"subscribers": 1,
|
|
"playlist": "#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",
"createdDate": 1697691514126,
"logs": []
}
] |
|
/hls/terminate
Request | Response |
---|
Code Block |
---|
| POST /rest-api/hls/terminate HTTP/1.1
Host: centos3.flashphoner.com:8081
Content-Length: 16
Content-Type: application/json
{
"name": "test"
}
|
| Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: |
|
Code Block |
---|
|
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",
/hls/profiles
Request | Response |
---|
Code Block |
---|
| POST /rest-api/hls/profiles HTTP/1.1
Host: localhost:8081
Connection: keep-alive
Content-Length: 39
{
"hlsId":"test",
"profileName":"v_test"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Length: 1183
Content-Type: application/json
{
"name": "v_test",
"stream": {
"appKey": "defaultApp",
"sessionId": "test-HLS",
"mediaSessionId": "94bc92bc-959b-4533-a0e6-7de3d8c89141-test-HLS",
"name": "test",
"published": false,
"hasVideo": false,
"hasAudio": true,
"status": "PLAYING",
"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",
"videoCodec": "H264",
"record": false,
"width": 1280,
"height": 720,
"bitrate": 0,
"minBitrate": 0,
"maxBitrate": 0,
"quality": 0,
"parentMediaSessionId": "8df817dc-c331-4fb5-949d-03e7764bab11",
"history": false,
"gop": 0,
"fps": |
|
25 gop50 height240 presetveryfast quality0 type"video" width0 }
},
"-480p audio{ bitrate0, channels0, codecopus, rate48000 audio } video{ 0 h264 codecImplFF, fps25,
gop50 height480 preset"veryfast" quality type"video" width0 }
]/
...
hls/
...
subscribers
Request | Response |
---|
Code Block |
---|
| POST /rest-api/ |
|
cdnprofile/removesubscribers HTTP/1.1
Host: localhost:8081
Connection: keep-alive
Content-Length: |
|
15 | Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Length: 501
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",
|
|
Hosttest.flashphoner.com:8081
"port": 55832,
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36",
|
|
{"active": true,
"metrics": {
"profileTime": {
"test": 66,
"v_test": 598216
},
"requestsNumber": 6537,
|
|
name"-profile1"} "200 OK": 6536
},
"profileSwitches": 1,
"maxResponseTime": 13,
"minResponseTime": 0,
"avgResponseTime": 0.4173168119932691
}
}
] |
|
/sfu/stats
Request | Response |
---|
Code Block |
---|
| POST /rest-api/sfu/stats HTTP/1.1
Host: localhost:9091
Content-Type: application/json
Content-Length: 20
{
"roomName":"ROOM1"
}
|
| Code Block |
---|
| 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,
"sampleRate": 48000,
|
|
Code Block |
---|
|
HTTP/1.1200OK
Access-Control-Allow-Origin: *
Content-Type: application/json/recorder/startup
Request | Response |
---|
Code Block |
---|
|
POST /rest-api/recorder/startup HTTP/1.1
Content-Length: 52
Content-Type: application/json "channels": 2,
"alive": true,
"type": "AUDIO"
|
|
Host:test.flashphoner.com:8081 },
{
"id": "237dcef9-c66d-4c72-bd43-0c91aaea3b7e",
|
|
"composite": true,
"tracks": {
"h send": {
|
|
{
mediaSessionId5a07237773c14cafabd3
"config": {
"fileTemplate{streamName}-{startTime}-{endTime} "rotation": "20M"
}
} Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json |
| /recorder/terminate
Request | Response |
---|
Code Block |
---|
|
POST /rest-api/recorder/terminate HTTP/1.1
Content-Length: 26 "width": 1280,
"height": 720,
"fps": 30,
|
|
Content-Type:application/json
HOST: 192.168.1.101:8081"alive": true,
"type": "VIDEO"
},
"m send": {
|
|
{
mediaSessionId5a07237773c14cafabd3
} Code Block |
---|
| HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json |
| /recorder/find_all
Request | Response |
---|
Code Block |
---|
| POST /rest-api/recorder/find_all HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 0
|
| Code Block |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 125
Date: Thu, 06 Dec 2018 4:16:40 GMT
[
{
,
"codec": "H264",
"width": 640,
"height": 360,
"fps": 30,
"bitrate": 263952,
" |
|
fileName"9c3e-test-1563776083752-{endTime}.mp4""mediaSessionId5a072377-73c1-4caf-abd3}
]/transcoder/startup
...
Code Block |
---|
|
POST /rest-api/transcoder/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
}
} |
...
Code Block |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 06 Dec 2018 4:16:40 GMT |
/transcoder/find
Request | Response |
---|
Code Block |
---|
| 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 |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 286
Date: Thu, 06 Dec 2018 4:16:40 GMT
[
{
}
}
}
],
"incomingTracks": {
"3c2dcd1c-7acd-4b90-8871-331be80cade0": "h send"
}
},
{
"nickName": "User2",
"outgoingTracks": [
{
" |
|
localMediaSessionId42a92132bcd14436a96f3fec36b32b37localStreamName"testT"remoteStreamName"test",
uri"transcoder://tcode1",
statusPROCESSED_LOCAL3c2dcd1c-7acd-4b90-8871-331be80cade0",
|
|
"hasAudio": true,
hasVideotrue"record": false,
encoder{width640height480keyFrameInterval30fps30 }
}
]/transcoder/find_all
Request | Response |
---|
Code Block |
---|
|
POST/rest-api/transcoder/find_allHTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 0
Code Block |
---|
|
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 286
Date: Thu, 06 Dec 2018 4:16:40 GMT
[
{
"type": "VIDEO"
},
"m send": {
" |
|
localMediaSessionId42a92132bcd14436a96f3fec36b32b37localStreamNametestTremoteStreamName"test"uri"transcoder://tcode1""status"PROCESSED_LOCAL""hasAudiotruehasVideo"recordfalse,"encoder":{
"width": 640,
"height":480keyFrameInterval9de9107c-ce5f-4d6b-b7d6-ea233d691d09": |
|
30 "fps": 30
"237dcef9-c66d-4c72-bd43-0c91aaea3b7e": "h send"
}
}
]
} |
|
/
...
mpegts/
...
startup
Request | Response |
---|
Code Block |
---|
| POST /rest-api/ |
|
transcoderterminateHOST192.168.1.101contenttypecontentlength30 uri"transcoder://tcode1"test",
"transport":"srt"
}
|
| Code Block |
---|
| HTTP/1.1 200 OK
|
|
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 06 Dec 2018 4:16:40 GMT/vod/startup
Request | Response |
---|
Code Block |
---|
|
POST /rest-api/vod/startup HTTP/1.1
HOST: 192.168.1.101:8081
content-typeAccess-Control-Allow-Origin: *
Content-Type: application/json
|
|
contentlength83 "localMediaSessionId": "32ec1a8e-7df4-4484-9a95-e7eddc45c508",
"localStreamName": "test",
"uri": " |
|
vod-livesample.mp4"
"localStreamName": "test"
}
Code Block |
---|
| HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 06 Dec 2018 4:16:40 GMT |
| ...
192.168.1.39:31014",
"status": "CONNECTED",
"hasAudio": false,
"hasVideo": false,
"record": false,
"transport": "SRT",
"cdn": false,
"timeout": 90000,
"maxTimestampDiff": 1,
"allowedList": []
} |
|
/mpegts/find
Request | Response |
---|
Code Block |
---|
| POST /rest-api/ |
|
vodHOST192.168.1.101contenttypecontentlength30 "localStreamName":"test",
"uri": " |
|
testsrt://192.168.1.39:31014"
} |
| Code Block |
---|
| HTTP/1.1 200 OK
|
|
ServerAccess-Control-Allow-Origin: |
|
Apache-Coyote/1.1*
Content-Type: application/json
Content-Length: |
|
286
Date: Thu, 06 Dec 2018 4:16:40 GMT
[
{
238
[{
"localMediaSessionId": " |
|
29ec3236109342bb88d6d4ac37af3ac0 "localStreamName": "test",
|
|
vod-livesample.mp4 "status": "PROCESSED_LOCAL",
|
|
truefalse,
"hasVideo": false,
"record": false,
" |
|
hasVideotrue"SRT",
"cdn": false,
"timeout": 90000,
" |
|
recordfalse }
/
...
mpegts/find_all
Request | Response |
---|
Code Block |
---|
| POST /rest-api/ |
|
vodHOST192.168.1.101contenttypecontentlength
| Code Block |
---|
| HTTP/1.1 200 OK
|
|
ServerAccess-Control-Allow-Origin: |
|
Apache-Coyote/1.1*
Content-Type: application/json
Content-Length: |
|
286
Date: Thu, 06 Dec 2018 4:16:40 GMT
[
{
238
[{
"localMediaSessionId": " |
|
29ec3236109342bb88d6d4ac37af3ac0 "localStreamName": "test",
|
|
vod-livesample.mp4 PROCESSED_LOCAL "hasVideo": true,
"record": false,
"timeout": 90000,
" |
|
recordfalse
/
...
mpegts/terminate
Request | Response |
---|
Code Block |
---|
| POST /rest-api/ |
|
vodterminateHOST192.168.1.101contenttypecontentlength30 "uri":"vod://sample.mp4"
" | Code Block |
---|
| HTTP/1.1 200 OK
|
|
ServerAccess-Control-Allow-Origin: |
|
Apache-Coyote/1.1Length: 0
Date: Thu, 06 Dec 2018 4:16:40 GMT...