Examples
/call/startup
Request
POST /res t - api/call/s tartu p HTTP/ 1.1
HOST : 192.168.1.59 : 8081
co ntent - le n g t h : 417
co ntent - t ype : applica t io n /jso n
{
"callId" : "123456711" ,
"callee" : "10000" ,
"rtmpUrl" : "rtmp://localhost:1935/live" ,
"rtmpStream" : "stream1" ,
"hasAudio" : "true" ,
"hasVideo" : "true" ,
"sipLogin" : "10009" ,
"sipAuthenticationName" : "10009" ,
"sipPassword" : "1234" ,
"sipDomain" : "226.226.225.226" ,
"sipOutboundProxy" : "226.226.225.226" ,
"sipPort" : "5060" ,
"appKey" : "defaultApp" ,
"sipRegisterRequired" : "false" ,
"visibleName" : "WCS_10009"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Mo n , 27 Mar 2017 03 : 23 : 54 GMT
/call/find_all
Request
POST /res t - api/call/ f i n d_all HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 0
Co ntent - Type : applica t io n /jso n
Response
HTTP/ 1.1 200 OK
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Da te : Tue , 28 Mar 2017 12 : 13 : 24 GMT
[
{
"custom" {},
"nodeId" : null ,
"appKey" : null ,
"sessionId" : null ,
"callId" : "83077OWQzZTRkNzIzNjk1NTI5NmUwZWFlOGU1MWU0NDVkN2U" ,
"parentCallId" : null ,
"incoming" : true ,
"status" : "ESTABLISHED" ,
"sipStatus" : null ,
"rtmpUrl" : null ,
"rtmpStream" : null ,
"rtmpStreamStatus" : null ,
"caller" : "005" ,
"callee" : "001" ,
"hasAudio" : true ,
"hasVideo" : true ,
"sdp" : "....." ,
"visibleName" : "005" ,
"inviteParameters" : null ,
"mediaProvider" : "WebRTC" ,
"sipMessageRaw" : "....." ,
"isMsrp" : false ,
"target" : null ,
"holdForTransfer" : false
},{
"custom" :{},
"nodeId" : null ,
"appKey" : null ,
"sessionId" : null ,
"callId" : "e9516680-13af-11e7-af37-05c788b22e35" ,
"parentCallId" : null ,
"incoming" : false ,
"status" : "RING" ,
"sipStatus" : 180 ,
"rtmpUrl" : null ,
"rtmpStream" : null ,
"rtmpStreamStatus" : null ,
"caller" : "002" ,
"callee" : "005" ,
"hasAudio" : true ,
"hasVideo" : false ,
"sdp" : null ,
"visibleName" : "002" ,
"inviteParameters" : null ,
"mediaProvider" : "WebRTC" ,
"sipMessageRaw" : null ,
"isMsrp" : false ,
"target" : null ,
"holdForTransfer" : false
}
]
/call/find
Request
POST /res t - api/call/ f i n d HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 70
Co ntent - Type : applica t io n /jso n
{
"status" : "ESTABLISHED" ,
"rtmpUrl" : "rtmp://localhost:1935/live"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Da te : Tue , 28 Mar 2017 12 : 37 : 55 GMT
[
{
"custom" :{},
"nodeId" : null ,
"appKey" : null ,
"sessionId" : null ,
"callId" : "MzEjol9dY-TIg9FpAy-J3YmhDbyY-g7w771EDq" ,
"parentCallId" : null ,
"incoming" : false ,
"status" : "ESTABLISHED" ,
"sipStatus" : 200 ,
"rtmpUrl" : "rtmp://localhost:1935/live" ,
"rtmpStream" : "stream1" ,
"rtmpStreamStatus" : "RTMP_STREAM_ACTIVE" ,
"caller" : "001" ,
"callee" : "005" ,
"hasAudio" : true ,
"hasVideo" : true ,
"sdp" : null ,
"visibleName" : "001" ,
"inviteParameters" : null ,
"mediaProvider" : "Flash" ,
"sipMessageRaw" : null ,
"isMsrp" : false ,
"target" : null ,
"holdForTransfer" : false
}
]
/call/terminate
Request
POST /res t - api/call/ ter mi nate HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 53
Co ntent - Type : applica t io n /jso n
{
"callId" : "yOh8vRDfr-lko7fXTg-pKJDHXQ-TW8PhcS"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Tue , 28 Mar 2017 12 : 48 : 29 GMT
/call/send_dtmf
Request
POST /res t - api/call/se n d_d t m f HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 83
Co ntent - Type : applica t io n /jso n
{
"callId" : "yOh8vRDfr-lko7fXTg-pKJDHXQ-TW8PhcS" ,
"dtmf" : "9" ,
"type" : "RFC2833"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Tue , 28 Mar 2017 13 : 00 : 34 GMT
/call/inject_sound
Request
POST /res t - api/call/i n jec t _sou n d HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Co ntent - Le n g t h : 69
{
"callId" : "yOh8vRDfr-lko7fXTg-pKJDHXQ-TW8PhcS" ,
"fileName" : "test.wav"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Thu , 23 Nov 2017 09 : 37 : 23 GMT
/call/inject_stream/startup
Request
POST /res t - api/call/i n jec t _s trea m/s tartu p HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Co ntent - Le n g t h : 69
{
"callId" : "yOh8vRDfr-lko7fXTg-pKJDHXQ-TW8PhcS" ,
"streamName" : "mixer1"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Thu , 23 Nov 2017 09 : 47 : 57 GMT
/call/inject_stream/terminate
Request
POST /res t - api/call/i n jec t _s trea m/ ter mi nate HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Co ntent - Le n g t h : 50
{
"callId" : "yOh8vRDfr-lko7fXTg-pKJDHXQ-TW8PhcS"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Thu , 23 Nov 2017 12 : 42 : 52 GMT
/rtsp/startup
Request
POST /res t - api/r ts p/s tartu p HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 56
Co ntent - Type : applica t io n /jso n
{
"uri" : "rtsp://s1.media-planet.sk:80/live/bardejov1" ,
"localStreamName" : "stream1"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Tue , 28 Mar 2017 13 : 18 : 01 GMT
/rtsp/find_all
Request
POST /res t - api/r ts p/ f i n d_all HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 0
Co ntent - Type : applica t io n /jso n
Response
HTTP/ 1.1 200 OK
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Da te : 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
POST /res t - api/r ts p/ f i n d HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 72
Co ntent - Type : applica t io n /jso n
{
"uri" : "rtsp://str81.creacast.com/grandlilletv/high" ,
"status" : "PLAYING"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Da te : 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
POST /res t - api/r ts p/ ter mi nate HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 53
Co ntent - Type : applica t io n /jso n
{
"uri" : "rtsp://s1.media-planet.sk:80/live/bardejov1"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Tue , 28 Mar 2017 15 : 02 : 07 GMT
/stream/find_all
Request
POST /res t - api/s trea m/ f i n d_all HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 0
Co ntent - Type : applica t io n /jso n
Response
HTTP/ 1.1 200 OK
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Da te : Tue , 28 Mar 2017 15 : 10 : 38 GMT
[
{
"custom" :{},
"nodeId" : null ,
"appKey" : "defaultApp" ,
"sessionId" : "/192.168.1.102:13252/192.168.1.101:8443" ,
"mediaSessionId" : "9e7a6da0-13c8-11e7-a92a-b50084e40e7d" ,
"remoteMediaElementId" : null ,
"name" : "stream1" ,
"published" : false ,
"hasVideo" : true ,
"hasAudio" : true ,
"status" : "PLAYING" ,
"sdp" : "....." ,
"info" : null ,
"record" : false ,
"recordName" : null ,
"width" : 0 ,
"height" : 0 ,
"bitrate" : 0 ,
"quality" : 0 ,
"rtmpUrl" : null ,
"mediaProvider" : "WebRTC"
},{
"custom" :{},
"nodeId" : null ,
"appKey" : "flashStreamingApp" ,
"sessionId" : "398c1948-5510-4842-b647-53c2f0d36c45" ,
"mediaSessionId" : "06844ffd-1dce-4a77-a2c2-37629f0e4d13" ,
"remoteMediaElementId" : null ,
"name" : "stream1" ,
"published" : true ,
"hasVideo" : false ,
"hasAudio" : true ,
"status" : "PUBLISHING" ,
"sdp" : "....." ,
"info" : null ,
"record" : false ,
"recordName" : null ,
"width" : 0 ,
"height" : 0 ,
"bitrate" : 0 ,
"quality" : 0 ,
"rtmpUrl" : null ,
"mediaProvider" : "Flash"
}
]
/stream/find
Request
POST /res t - api/s trea m/ f i n d HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 57
Co ntent - Type : applica t io n /jso n
{
"name" : "stream1" ,
"published" : true ,
"display" :[ "metrics" ]
}
Response
HTTP/ 1.1 200 OK
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Da te : Tue , 26 Mar 2021 11 : 05 : 16 GMT
[
{
"appKey" : "defaultApp" ,
"sessionId" : "/192.168.23.83:51294/192.168.130.39:8443-118f9784-d3b0-4e2b-8837-425eb71efcbe" ,
"mediaSessionId" : "86108970-8de5-11eb-afa9-0d709beccf93" ,
"name" : "test" ,
"published" : true ,
"hasVideo" : true ,
"hasAudio" : true ,
"status" : "PUBLISHING" ,
"sdp" : "..." ,
"audioCodec" : "opus" ,
"videoCodec" : "H264" ,
"record" : false ,
"width" : 640 ,
"height" : 360 ,
"bitrate" : 0 ,
"minBitrate" : 0 ,
"maxBitrate" : 0 ,
"quality" : 0 ,
"history" : false ,
"gop" : 0 ,
"fps" : 0 ,
"audioBitrate" : 0 ,
"codecImpl" : "" ,
"transport" : "UDP" ,
"cvoExtension" : false ,
"createDate" : 1616730250682 ,
"mediaType" : "publish" ,
"mediaProvider" : "WebRTC" ,
"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
POST /res t - api/s trea m/ ter mi nate HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 57
Co ntent - Type : applica t io n /jso n
{
"mediaSessionId" : "4f112b20-13d0-11e7-b521-59a9cb7eddeb"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Tue , 28 Mar 2017 16 : 11 : 48 GMT
/stream/snapshot
Request
POST /res t - api/s trea m/s na psho t HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 57
Co ntent - Type : applica t io n /jso n
{
"streamName" : "64966f33"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 858
Da te : 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
POST /res t - api/s trea m/s tart Recordi n g HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 65
Co ntent - Type : applica t io n /jso n
{
"mediaSessionId" : "b8ffd290-bcfa-11e9-9482-17706e285ec5" ,
"config" : {
"fileTemplate" : "{streamName}-{startTime}-{endTime}" ,
"rotation" : "20M"
}
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Tue , 28 Mar 2017 16 : 11 : 48 GMT
/stream/stopRecording
Request
POST /res t - api/s trea m/s t opRecordi n g HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 65
Co ntent - Type : applica t io n /jso n
{
"mediaSessionId" : "b8ffd290-bcfa-11e9-9482-17706e285ec5"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Tue , 28 Mar 2017 16 : 21 : 48 GMT
/stream/event/send
Request
POST /res t - api/s trea m/eve nt /se n d HTTP/ 1.1
Hos t : localhos t : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 77
{
"streamName" : "test" ,
"payload" :{
"number" : 33 ,
"string" : "hello" ,
"boolean" : true
}
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Access - Co ntr ol - Allow - Crede nt ials : true
/data/send
Request
POST /res t - api/da ta /se n d HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 201
Co ntent - Type : applica t io n /jso n
{
"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"
}
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Tue , 28 Mar 2017 16 : 21 : 18 GMT
/connection/find_all
Request
POST /res t - api/co nne c t io n / f i n d_all HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 0
Co ntent - Type : applica t io n /jso n
Response
HTTP/ 1.1 200 OK
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Da te : Tue , 28 Mar 2017 16 : 42 : 07 GMT
[
{
"custom" :{},
"nodeId" : null ,
"appKey" : "roomApp" ,
"sessionId" : "/192.168.1.102:31049/192.168.1.101:8080" ,
"sipRegisterRequired" : false ,
"sipLogin" : "a5ledkh95o57os4ge5i4ihpqio" ,
"sipAuthenticationName" : null ,
"sipPassword" : null ,
"sipVisibleName" : null ,
"sipDomain" : null ,
"sipOutboundProxy" : null ,
"sipPort" : 0 ,
"sipContactParams" : null ,
"width" : 0 ,
"height" : 0 ,
"supportedResolutions" : "0x0" ,
"useProxy" : true ,
"useDTLS" : true ,
"useWsTunnel" : false ,
"useWsTunnelPacketization2" : false ,
"useBase64BinaryEncoding" : false ,
"mediaProviders" :[ "WebRTC" ],
"appMainClass" : null ,
"appCallbackClass" : null ,
"authToken" : "/192.168.1.102:31049/192.168.1.101:8080" ,
"status" : null ,
"restClientConfig" : null ,
"clientVersion" : "2.3.0" ,
"clientOSVersion" : null ,
"clientBrowserVersion" : null
},{
"custom" :{},
"nodeId" : null ,
"appKey" : "defaultApp" ,
"sessionId" : "/192.168.1.102:15422/192.168.1.101:8443" ,
"sipRegisterRequired" : false ,
"sipLogin" : "sasr7al31j6d1vuuiv9v9vm7ig" ,
"sipAuthenticationName" : null ,
"sipPassword" : null ,
"sipVisibleName" : null ,
"sipDomain" : null ,
"sipOutboundProxy" : null ,
"sipPort" : 0 ,
"sipContactParams" : null ,
"width" : 0 ,
"height" : 0 ,
"supportedResolutions" : "0x0" ,
"useProxy" : true ,
"useDTLS" : true ,
"useWsTunnel" : false ,
"useWsTunnelPacketization2" : false ,
"useBase64BinaryEncoding" : false ,
"mediaProviders" :[ "WebRTC" , "WSPlayer" ],
"appMainClass" : null ,
"appCallbackClass" : null ,
"authToken" : "/192.168.1.102:15422/192.168.1.101:8443" ,
"status" : null ,
"restClientConfig" : null ,
"clientVersion" : "0.5.18" ,
"clientOSVersion" : "5.0 (Windows NT 6.3; Win64; x64) ..." ,
"clientBrowserVersion" : "... Chrome/57.0.2987.110 ..."
}
]
/connection/find
Request
POST /res t - api/co nne c t io n / f i n d HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 48
Co ntent - Type : applica t io n /jso n
{
"appKey" : "roomApp" ,
"clientVersion" : "0.5.18"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Da te : 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" ,
"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: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: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
POST /res t - api/co nne c t io n / ter mi nate HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 55
Co ntent - Type : applica t io n /jso n
{
"sessionId" : "/192.168.1.102:39564/192.168.1.101:8443"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Tue , 28 Mar 2017 17 : 21 : 40 GMT
/push/startup
Request
POST /res t - api/push/s tartu p HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 73
Co ntent - Type : applica t io n /jso n
{
"streamName" : "cf58" ,
"rtmpUrl" : "rtmp://rtmp.flashphoner.com:1935/live/test" ,
"rtmpTransponderFullUrl" : true
}
Response
HTTP/ 1.1 200 OK
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Da te : Fri , 28 Apr 2017 12 : 53 : 00 GMT
{
"mediaSessionId" : "6dk1l0m3cm17c68232bccm52f1" ,
"streamName" : "test" ,
"rtmpUrl" : "rtmp://rtmp.flashphoner.com:1935/live"
}
/push/find
Request
POST /res t - api/push/ f i n d HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 40
Co ntent - Type : applica t io n /jso n
{
"rtmpUrl" : "rtmp://localhost:1935/live"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Da te : 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
POST /res t - api/push/ f i n d_all HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 0
Co ntent - Type : applica t io n /jso n
Response
HTTP/ 1.1 200 OK
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Da te : 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
POST /res t - api/push/ ter mi nate HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 48
Co ntent - Type : applica t io n /jso n
{
"mediaSessionId" : "6dk1l0m3cm17c68232bccm52f1"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Fri , 28 Apr 2017 12 : 56 : 51
/push/mute
Request
POST /res t - api/push/mu te HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 48
Co ntent - Type : applica t io n /jso n
{
"mediaSessionId" : "gocrv1ncahlkcqht9k2nbs8tbc"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Mo n , 03 Jul 2017 09 : 06 : 14 GMT
/push/unmute
Request
POST /res t - api/push/u n mu te HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 48
Co ntent - Type : applica t io n /jso n
{
"mediaSessionId" : "gocrv1ncahlkcqht9k2nbs8tbc"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Mo n , 03 Jul 2017 09 : 07 : 27 GMT
/push/sound_on
Request
POST /res t - api/push/sou n d_o n HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 88
Co ntent - Type : applica t io n /jso n
{
"mediaSessionId" : "gocrv1ncahlkcqht9k2nbs8tbc" ,
"soundFile" : "sample.wav" ,
"loop" : true
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Mo n , 03 Jul 2017 09 : 11 : 42 GMT
/push/sound_off
Request
POST /res t - api/push/sou n d_o ff HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 48
Co ntent - Type : applica t io n /jso n
{
"mediaSessionId" : "gocrv1ncahlkcqht9k2nbs8tbc"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Mo n , 03 Jul 2017 09 : 12 : 25 GMT
/pull/rtmp/pull
Request
POST /res t - api/pull/r t mp/pull HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Co ntent - Le n g t h : 60
{
"uri" : "rtmp://rtmp.flashphoner.com:1935/live/rtmp_stream1" ,
"localStreamName" : "stream1"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Thu , 23 Nov 2017 09 : 47 : 23 GMT
/pull/rtmp/find_all
Request
POST /res t - api/pull/r t mp/ f i n d_all HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 0
Co ntent - Type : applica t io n /jso n
Response
HTTP/ 1.1 200 OK
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Da te : 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
POST /res t - api/pull/r t mp/ ter mi nate HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Co ntent - Le n g t h : 60
{
"uri" : "rtmp://rtmp.flashphoner.com:1935/live/rtmp_stream1"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Thu , 23 Nov 2017 09 : 47 : 31 GMT
/mixer/startup
Request
POST /res t - api/mixer/s tartu p HTTP/ 1.1
HOST : 192.168.1.101 : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 70
{
"uri" : "mixer://mixer1" ,
"localStreamName" : "mixer1_stream" ,
"hasVideo" : true ,
"hasAudio" : false ,
"watermark" : "watermark.png" ,
"background" : "background.png" ,
"mixerLayoutClass" : "com.flashphoner.mixerlayout.TestLayout"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Fri , 24 Nov 2017 14 : 55 : 26 GMT
/mixer/add
Request
POST /res t - api/mixer/add HTTP/ 1.1
Hos t : localhos t : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 85
{
"uri" : "mixer://m1" ,
"remoteStreamName" : "stream1" ,
"audioLevel" : 0 ,
"videoMuted" : false
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Fri , 09 Jul 2021 15 : 21 : 06 GMT
/mixer/remove
Request
POST /res t - api/mixer/remove HTTP/ 1.1
HOST : 192.168.1.101 : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 99
{
"uri" : "mixer://mixer1" ,
"remoteStreamName" : "rtmp://rtmp.flashphoner.com:1935/live/stream1"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Fri , 24 Nov 2017 15 : 21 : 12 GMT
/mixer/find_all
Request
POST /res t - api/mixer/ f i n d_all HTTP/ 1.1
HOST : 192.168.1.101 : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 0
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Access - Co ntr ol - Allow - Crede nt ials : true
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 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
POST /res t - api/mixer/ ter mi nate HTTP/ 1.1
HOST : 192.168.1.101 : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 31
{
"uri" : "mixer://mixer1"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Fri , 24 Nov 2017 14 : 55 : 35 GMT
/mixer/setAudioVideo
Request
POST /res t - api/mixer/se t AudioVideo HTTP/ 1.1
Hos t : localhos t : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 62
{
"uri" : "mixer://m1" ,
"streams" : "^stream.*" ,
"audioLevel" : 0 ,
"videoMuted" : true
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Access - Co ntr ol - Allow - Crede nt ials : true
Co ntent - Le n g t h : 0
Da te : Fri , 24 Nov 2020 14 : 55 : 35 GMT
/mixer/set_body_watermark
Request
POST /res t - api/mixer/se t _body_wa ter mark HTTP/ 1.1
Hos t : localhos t : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 68
{
"uri" : "mixer://m1" ,
"watermark" : "/opt/media/logo.png" ,
"x" : 10 ,
"y" : 10
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Access - Co ntr ol - Allow - Crede nt ials : true
Co ntent - Le n g t h : 0
Da te : Fri , 19 Aug 2022 14 : 55 : 35 GMT
/mixer/set_stream_watermark
Request
POST /res t - api/mixer/se t _s trea m_wa ter mark HTTP/ 1.1
Hos t : localhos t : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 124
{
"uri" : "mixer://m1" ,
"watermark" : "/opt/media/logo.png" ,
"mediaSessionId" : "f2019570-1f9d-11ed-b6ef-050068a3a458" ,
"x" : 10 ,
"y" : 10
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Access - Co ntr ol - Allow - Crede nt ials : true
Co ntent - Le n g t h : 0
Da te : Fri , 19 Aug 2022 14 : 55 : 35 GMT
/mixer/set_parameter
Request
POST /res t - api/mixer/se t _parame ter HTTP/ 1.1
Hos t : localhos t : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 55
{
"uri" : "mixer://m1" ,
"mixerLayoutDir" : "/opt/GridLayout"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Access - Co ntr ol - Allow - Crede nt ials : true
Co ntent - Le n g t h : 0
Da te : Mo n , 14 Nov 2022 14 : 55 : 35 GMT
/mixer/test/start
Request
POST /res t - api/mixer/ test /s tart HTTP/ 1.1
HOST : 192.168.1.101 : 8081
Co ntent - t ype : applica t io n /jso n
Co ntent - le n g t h : 107
{
"feedingStreams" : [
"s1" ,
"s2"
],
"mixerCount" : 3 ,
"streamsInMixer" : 1 ,
"intervalInSeconds" : 60
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Wed , 22 Aug 2018 08 : 53 : 26 GMT
/mixer/test/stop
Request
POST /res t - api/mixer/ test /s t op HTTP/ 1.1
HOST : 192.168.1.101 : 8081
Co ntent - t ype : applica t io n /jso n
Co ntent - le n g t h : 0
{
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Wed , 22 Aug 2018 08 : 53 : 26 GMT
/mixer/test/get_start_example
Request
POST /res t - api/mixer/ test /ge t _s tart _example HTTP/ 1.1
HOST : 192.168.1.101 : 8081
Co ntent - t ype : applica t io n /jso n
Co ntent - le n g t h : 0
{
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 107
Da te : Wed , 22 Aug 2018 08 : 53 : 26 GMT
{
"feedingStreams" : [
"stream1" ,
"stream2" ,
"stream3"
],
"mixerCount" : 3 ,
"streamsInMixer" : 1 ,
"intervalInSeconds" : 60
}
/pull/pull
Request
POST /res t - api/pull/pull HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Co ntent - Le n g t h : 60
{
"uri" : "wss://demo.flashphoner.com:8443/websocket" ,
"localStreamName" : "6602" ,
"remoteStreamName" : "6602"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Thu , 23 Nov 2017 09 : 47 : 23 GMT
/pull/find_all
Request
POST /res t - api/pull/ f i n d_all HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Le n g t h : 0
Co ntent - Type : applica t io n /jso n
Response
HTTP/ 1.1 200 OK
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Da te : 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
POST /res t - api/pull/pull HTTP/ 1.1
Hos t : 192.168.1.101 : 8081
Co ntent - Type : applica t io n /jso n ;charse t =UTF -8
Co ntent - Le n g t h : 60
{
"uri" : "wss://demo.flashphoner.com:8443/websocket" ,
"localStreamName" : "0d40" ,
"remoteStreamName" : "0d40"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Thu , 23 Nov 2017 09 : 47 : 23 GMT
/pull/terminate
Request
POST /res t - api/pull/ ter mi nate HTTP/ 1.1
HOST : 192.168.1.101 : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 31
{
"uri" : "wss://demo.flashphoner.com:8443/websocket"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Fri , 24 Nov 2017 14 : 55 : 35 GMT
/logger/enable_client_log
Request
POST /res t - api/logger/e na ble_clie nt _log HTTP/ 1.1
HOST : 192.168.1.101 : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 71
{
"sessionId" : "/127.0.0.1:57539/192.168.1.101:8443" ,
"logLevel" : "DEBUG"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Wed , 03 Sep 2018 06 : 58 : 40 GMT
/logger/disable_client_log
Request
POST /res t - api/logger/disable_clie nt _log HTTP/ 1.1
HOST : 192.168.1.101 : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 71
{
"sessionId" : "/127.0.0.1:57539/192.168.1.101:8443"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Wed , 03 Sep 2018 06 : 58 : 40 GMT
/cdn/show_nodes
Request
POST /res t - api/cd n /show_ n odes HTTP/ 1.1
HOST : 192.168.1.101 : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 0
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 224
Da te : 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
POST /res t - api/cd n /show_rou tes HTTP/ 1.1
HOST : 192.168.1.101 : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 0
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 26
Da te : Thu , 06 Dec 2018 4 : 16 : 40 GMT
{
"0-192.168.1.5-0" : "test"
}
/cdn/show_state
Request
POST /res t - api/cd n /show_s tate HTTP/ 1.1
HOST : 192.168.1.101 : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 0
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 19
Da te : Thu , 06 Dec 2018 8 : 26 : 44 GMT
[
"NEW_STREAMS_ALLOWED"
]
/cdn/enforce_state
Request
POST /res t - api/cd n /e nf orce_s tate HTTP/ 1.1
HOST : 192.168.1.101 : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 44
{
"state" : "GROUP_CONNECTIONS_ALLOWED"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Thu , 06 Dec 2018 8 : 36 : 30 GMT
/cdn/stream/show_routes
Request
POST /res t - api/cd n /s trea m/show_rou tes HTTP/ 1.1
HOST : 192.168.1.101 : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 30
{
"streamName" : "test-profile1"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 411
Da te : Mo n , 07 Ja n 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
POST /res t - api/cd n /s trea m/access_lis t /add HTTP/ 1.1
Hos t : test . flas hpho ner .com : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 39
{
"keys" : [
"key1" ,
"key2"
],
"name" : "test"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n
/cdn/stream/access_list/remove
Request
POST /res t - api/cd n /s trea m/access_lis t /remove HTTP/ 1.1
Hos t : test . flas hpho ner .com : 8081
Co ntent - Le n g t h : 32
Co ntent - Type : applica t io n /jso n
{
"keys" : [
"key1"
],
"name" : "test"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n
/cdn/stream/access_list/print
Request
POST /res t - api/cd n /s trea m/access_lis t /pri nt HTTP/ 1.1
Hos t : test . flas hpho ner .com : 8081
Co ntent - Le n g t h : 15
Co ntent - Type : applica t io n /jso n
{
"name" : "test"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Le n g t h : 8
Co ntent - Type : applica t io n /jso n
[
"key2"
]
/cdn/stream/access_list/delete
Request
POST /res t - api/cd n /s trea m/access_lis t /dele te HTTP/ 1.1
Hos t : test . flas hpho ner .com : 8081
Co ntent - Le n g t h : 15
Co ntent - Type : applica t io n /jso n
{
"name" : "test"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n
/cdn/profile/add
Request
POST /res t - api/cd n /pro f ile/add HTTP/ 1.1
Hos t : test . flas hpho ner .com : 8081
Co ntent - Le n g t h : 502
Co ntent - Type : applica t io n /jso n
{
"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
}
}
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n
/cdn/profile/modify
Request
POST /res t - api/cd n /pro f ile/modi f y HTTP/ 1.1
Hos t : test . flas hpho ner .com : 8081
Co ntent - Le n g t h : 15
Co ntent - Type : applica t io n /jso n
{
"name" : "-profile1" ,
"profile" : {
"video" : {
"bitrate" : 400 ,
"quality" : 25
}
}
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n
/cdn/profile/print
Request
POST /res t - api/cd n /pro f ile/pri nt HTTP/ 1.1
Co ntent - Le n g t h : 0
Co ntent - Type : applica t io n /jso n
Hos t : test . flas hpho ner .com : 8081
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n
[
"-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
POST /res t - api/cd n /pro f ile/remove HTTP/ 1.1
Hos t : test . flas hpho ner .com : 8081
Co ntent - Le n g t h : 15
Co ntent - Type : applica t io n /jso n
{
"name" : "-profile1"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n
/cdn/remove_node
Request
POST /res t - api/cd n /remove_ n ode HTTP/ 1.1
Hos t : test . flas hpho ner .com : 8081
Co ntent - Le n g t h : 15
Co ntent - Type : applica t io n /jso n
{
"nodeIp" : "192.168.1.207"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n
/cdn/connection/reset_inbound
Request
POST /res t - api/cd n /co nne c t io n /rese t _i n bou n d HTTP/ 1.1
Hos t : test . flas hpho ner .com : 8081
Co ntent - Le n g t h : 15
Co ntent - Type : applica t io n /jso n
{
"nodeId" : "192.168.1.207"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n
/cdn/connection/reset_outbound
Request
POST /res t - api/cd n /co nne c t io n /rese t _ou t bou n d HTTP/ 1.1
Hos t : test . flas hpho ner .com : 8081
Co ntent - Le n g t h : 15
Co ntent - Type : applica t io n /jso n
{
"nodeId" : "192.168.1.207"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n
/cdn/connection/reset_all
Request
POST /res t - api/cd n /co nne c t io n /rese t _all HTTP/ 1.1
Hos t : test . flas hpho ner .com : 8081
Co ntent - Le n g t h : 0
Co ntent - Type : applica t io n /jso n
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n
/recorder/startup
Request
POST /res t - api/recorder/s tartu p HTTP/ 1.1
Hos t : test . flas hpho ner .com : 8081
Co ntent - Le n g t h : 52
Co ntent - Type : applica t io n /jso n
{
"mediaSessionId" : "5a072377-73c1-4caf-abd3" ,
"config" : {
"fileTemplate" : "{streamName}-{startTime}-{endTime}" ,
"rotation" : "20M"
}
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n
/recorder/terminate
Request
POST /res t - api/recorder/ ter mi nate HTTP/ 1.1
HOST : 192.168.1.101 : 8081
Co ntent - Le n g t h : 26
Co ntent - Type : applica t io n /jso n
{
"mediaSessionId" : "5a072377-73c1-4caf-abd3"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n
/recorder/find_all
Request
POST /res t - api/recorder/ f i n d_all HTTP/ 1.1
HOST : 192.168.1.101 : 8081
co ntent - t ype : applica t io n /jso n
co ntent - le n g t h : 0
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 125
Da te : Thu , 06 Dec 2018 4 : 16 : 40 GMT
[
{
"fileName" : "9c3e-test-1563776083752-{endTime}.mp4" ,
"mediaSessionId" : "5a072377-73c1-4caf-abd3"
}
]
/multipleRecorder/startup
Request
POST /res t - api/mul t ipleRecorder/s tartu p HTTP/ 1.1
Hos t : localhos t : 8081
Co ntent - t ype : applica t io n /jso n
Co ntent - Le n g t h : 22
{
"uri" : "multi-recorder://test-record"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
/multipleRecorder/add
Request
POST /res t - api/mul t ipleRecorder/add HTTP/ 1.1
Hos t : localhos t : 8081
Co ntent - t ype : applica t io n /jso n
Co ntent - Le n g t h : 78
{
"uri" : "multi-recorder://test-record" ,
"mediaSessionId" : "d010f9a0-fe34-11eb-9d0a-fb2207ead79d"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
/multipleRecorder/remove
Request
POST /res t - api/mul t ipleRecorder/remove HTTP/ 1.1
Hos t : localhos t : 8081
Co ntent - t ype : applica t io n /jso n
Co ntent - Le n g t h : 78
{
"uri" : "multi-recorder://test-record" ,
"mediaSessionId" : "d010f9a0-fe34-11eb-9d0a-fb2207ead79d"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
/multipleRecorder/find_all
Request
POST /res t - api/mul t ipleRecorder/ f i n d_all HTTP/ 1.1
Hos t : localhos t : 8081
Co ntent - t ype : applica t io n /jso n
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Access - Co ntr ol - Allow - Crede nt ials : true
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 239
[
{
"mediaSessionsId" : [
"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
Request
POST /res t - api/mul t ipleRecorder/ ter mi nate HTTP/ 1.1
Hos t : localhos t : 8081
Co ntent - t ype : applica t io n /jso n
Co ntent - Le n g t h : 22
{
"uri" : "multi-recorder://test-record"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
/transcoder/startup
Request
POST /res t - api/ trans coder/s tartu p HTTP/ 1.1
HOST : 192.168.1.101 : 8081
co ntent - t ype : applica t io n /jso n
co ntent - le n g t h : 83
{
"uri" : "transcoder://tcode1" ,
"remoteStreamName" : "test" ,
"localStreamName" : "testT" ,
"encoder" : {
"width" : 640 ,
"height" : 480 ,
"keyFrameInterval" : 30 ,
"fps" : 30 ,
"watermark" : "Test.png"
}
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Thu , 06 Dec 2018 4 : 16 : 40 GMT
/transcoder/find
Request
POST /res t - api/ trans coder/ f i n d HTTP/ 1.1
HOST : 192.168.1.101 : 8081
co ntent - t ype : applica t io n /jso n
co ntent - le n g t h : 30
{
"remoteStreamName" : "test"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 286
Da te : 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 ,
"hasVideo" : true ,
"record" : false ,
"encoder" : {
"width" : 640 ,
"height" : 480 ,
"keyFrameInterval" : 30 ,
"fps" : 30 ,
"watermark" : "Test.png"
}
}
]
/transcoder/find_all
Request
POST /res t - api/ trans coder/ f i n d_all HTTP/ 1.1
HOST : 192.168.1.101 : 8081
co ntent - t ype : applica t io n /jso n
co ntent - le n g t h : 0
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 286
Da te : 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 ,
"hasVideo" : true ,
"record" : false ,
"encoder" : {
"width" : 640 ,
"height" : 480 ,
"keyFrameInterval" : 30 ,
"fps" : 30 ,
"watermark" : "Test.png"
}
}
]
/transcoder/terminate
Request
POST /res t - api/ trans coder/ ter mi nate HTTP/ 1.1
HOST : 192.168.1.101 : 8081
co ntent - t ype : applica t io n /jso n
co ntent - le n g t h : 30
{
"uri" : "transcoder://tcode1"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Thu , 06 Dec 2018 4 : 16 : 40 GMT
/transcoder/set_watermark
Request
POST /res t - api/ trans coder/se t _wa ter mark HTTP/ 1.1
Hos t : localhos t : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 72
{
"uri" : "transcoder://t1" ,
"watermark" : "/opt/media/logo.png" ,
"x" : 10 ,
"y" : 10
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Access - Co ntr ol - Allow - Crede nt ials : true
Co ntent - Le n g t h : 0
Da te : Fri , 19 Aug 2022 14 : 55 : 35 GMT
/transcoder2/startup
Request
POST /res t - api/ trans coder 2 /s tartu p HTTP/ 1.1
HOST : 192.168.1.101 : 8081
co ntent - t ype : applica t io n /jso n
co ntent - le n g t h : 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"
}
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Access - Co ntr ol - Allow - Crede nt ials : true
/transcoder2/find
Request
POST /res t - api/ trans coder 2 / f i n d HTTP/ 1.1
HOST : 192.168.1.101 : 8081
co ntent - t ype : applica t io n /jso n
co ntent - le n g t h : 30
{
"remoteStreamName" : "test"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Access - Co ntr ol - Allow - Crede nt ials : true
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 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/find_all
Request
POST /res t - api/ trans coder 2 / f i n d_all HTTP/ 1.1
HOST : 192.168.1.101 : 8081
co ntent - t ype : applica t io n /jso n
co ntent - le n g t h : 0
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Access - Co ntr ol - Allow - Crede nt ials : true
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 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
POST /res t - api/ trans coder 2 / ter mi nate HTTP/ 1.1
HOST : 192.168.1.101 : 8081
co ntent - t ype : applica t io n /jso n
co ntent - le n g t h : 30
{
"uri" : "transcoder2://tcode2"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Access - Co ntr ol - Allow - Crede nt ials : true
/transcoder2/set_watermark
Request
POST /res t - api/ trans coder 2 /se t _wa ter mark HTTP/ 1.1
Hos t : localhos t : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 73
{
"uri" : "transcoder2://t1" ,
"watermark" : "/opt/media/logo.png" ,
"x" : 10 ,
"y" : 10
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Access - Co ntr ol - Allow - Crede nt ials : true
Co ntent - Le n g t h : 0
Da te : Fri , 19 Aug 2022 14 : 55 : 35 GMT
/vod/startup
Request
POST /res t - api/vod/s tartu p HTTP/ 1.1
HOST : 192.168.1.101 : 8081
co ntent - t ype : applica t io n /jso n
co ntent - le n g t h : 83
{
"uri" : "vod-live://sample.mp4" ,
"localStreamName" : "test"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Thu , 06 Dec 2018 4 : 16 : 40 GMT
/vod/find
Request
POST /res t - api/vod/ f i n d HTTP/ 1.1
HOST : 192.168.1.101 : 8081
co ntent - t ype : applica t io n /jso n
co ntent - le n g t h : 30
{
"localStreamName" : "test"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 286
Da te : 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
}
]
/vod/find_all
Request
POST /res t - api/vod/ f i n d_all HTTP/ 1.1
HOST : 192.168.1.101 : 8081
co ntent - t ype : applica t io n /jso n
co ntent - le n g t h : 0
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 286
Da te : 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
}
]
/vod/terminate
Request
POST /res t - api/vod/ ter mi nate HTTP/ 1.1
HOST : 192.168.1.101 : 8081
co ntent - t ype : applica t io n /jso n
co ntent - le n g t h : 30
{
"uri" : "vod-live://sample.mp4" ,
"localStreamName" : "test"
}
Response
HTTP/ 1.1 200 OK
Co ntent - Le n g t h : 0
Da te : Thu , 06 Dec 2018 4 : 16 : 40 GMT
/hls/startup
Request
POST /res t - api/hls/s tartu p HTTP/ 1.1
Hos t : test . flas hpho ner .com : 8081
Co ntent - Le n g t h : 16
Co ntent - Type : applica t io n /jso n
{
"name" : "test"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n
/hls/find_all
Request
POST /res t - api/hls/ f i n d_all HTTP/ 1.1
Hos t : test . flas hpho ner .com : 8081
Co nne c t io n : keep - alive
Co ntent - Le n g t h : 22
{
"offset" : 0 ,
"size" : 10
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Le n g t h : 493
Co ntent - Type : applica t io n /jso n
[
{
"id" : "test" ,
"streamName" : "test" ,
"status" : "ACTIVE" ,
"waitingSize" : 0 ,
"profiles" : [
"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
POST /res t - api/hls/ ter mi nate HTTP/ 1.1
Hos t : test . flas hpho ner .com : 8081
Co ntent - Le n g t h : 16
Co ntent - Type : applica t io n /jso n
{
"name" : "test"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n
/hls/profiles
Request
POST /res t - api/hls/pro f iles HTTP/ 1.1
Hos t : test . flas hpho ner .com : 8081
Co nne c t io n : keep - alive
Co ntent - Le n g t h : 39
{
"hlsId" : "test" ,
"profileName" : "v_test"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Le n g t h : 1183
Co ntent - Type : applica t io n /jso n
{
"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" : 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
Request
POST /res t - api/hls/subscribers HTTP/ 1.1
Hos t : test . flas hpho ner .com : 8081
Co nne c t io n : keep - alive
Co ntent - Le n g t h : 16
{
"hlsId" : "test"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Le n g t h : 501
Co ntent - Type : applica t io n /jso n
[
{
"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" ,
"ip" : "192.168.0.83" ,
"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 ,
"requestsStatuses" : {
"200 OK" : 6536
},
"profileSwitches" : 1 ,
"maxResponseTime" : 13 ,
"minResponseTime" : 0 ,
"avgResponseTime" : 0.4173168119932691
}
}
]
/sfu/stats
Request
POST /res t - api/s fu /s tats HTTP/ 1.1
Hos t : localhos t : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 20
{
"roomName" : "ROOM1"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 1154
{
"participants" : [
{
"nickName" : "User1" ,
"outgoingTracks" : [
{
"id" : "9de9107c-ce5f-4d6b-b7d6-ea233d691d09" ,
"codec" : "opus" ,
"bitrate" : 0 ,
"sampleRate" : 48000 ,
"channels" : 2 ,
"alive" : true ,
"type" : "AUDIO"
},
{
"id" : "237dcef9-c66d-4c72-bd43-0c91aaea3b7e" ,
"composite" : true ,
"tracks" : {
"h send" : {
"id" : "237dcef9-c66d-4c72-bd43-0c91aaea3b7e" ,
"codec" : "H264" ,
"width" : 1280 ,
"height" : 720 ,
"fps" : 30 ,
"bitrate" : 157976 ,
"alive" : true ,
"type" : "VIDEO"
},
"m send" : {
"id" : "237dcef9-c66d-4c72-bd43-0c91aaea3b7e" ,
"codec" : "H264" ,
"width" : 640 ,
"height" : 360 ,
"fps" : 30 ,
"bitrate" : 263952 ,
"alive" : true ,
"type" : "VIDEO"
}
}
}
],
"incomingTracks" : {
"3c2dcd1c-7acd-4b90-8871-331be80cade0" : "h send"
}
},
{
"nickName" : "User2" ,
"outgoingTracks" : [
{
"id" : "3c2dcd1c-7acd-4b90-8871-331be80cade0" ,
"composite" : true ,
"tracks" : {
"h send" : {
"id" : "3c2dcd1c-7acd-4b90-8871-331be80cade0" ,
"codec" : "H264" ,
"width" : 1280 ,
"height" : 720 ,
"fps" : 30 ,
"bitrate" : 238688 ,
"alive" : true ,
"type" : "VIDEO"
},
"m send" : {
"id" : "3c2dcd1c-7acd-4b90-8871-331be80cade0" ,
"codec" : "H264" ,
"width" : 640 ,
"height" : 360 ,
"fps" : 30 ,
"bitrate" : 265368 ,
"alive" : true ,
"type" : "VIDEO"
}
}
}
],
"incomingTracks" : {
"9de9107c-ce5f-4d6b-b7d6-ea233d691d09" : null ,
"237dcef9-c66d-4c72-bd43-0c91aaea3b7e" : "h send"
}
}
]
}
/mpegts/startup
Request
POST /res t - api/mpeg ts /s tartu p HTTP/ 1.1
Hos t : localhos t : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 44
{
"localStreamName" : "test" ,
"transport" : "srt"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 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
Request
POST /res t - api/mpeg ts / f i n d_all HTTP/ 1.1
Hos t : localhos t : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 61
{
"localStreamName" : "test" ,
"uri" : "srt://192.168.1.39:31014"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 238
[
{
"localMediaSessionId" : "32ec1a8e-7df4-4484-9a95-e7eddc45c508" ,
"localStreamName" : "test" ,
"uri" : "srt://192.168.1.39:31014" ,
"status" : "PROCESSED_LOCAL" ,
"hasAudio" : false ,
"hasVideo" : false ,
"record" : false ,
"transport" : "SRT" ,
"cdn" : false ,
"timeout" : 90000 ,
"maxTimestampDiff" : 1 ,
"allowedList" : []
}
]
/mpegts/find_all
Request
POST /res t - api/mpeg ts / f i n d_all HTTP/ 1.1
Hos t : localhos t : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 0
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 238
[
{
"localMediaSessionId" : "32ec1a8e-7df4-4484-9a95-e7eddc45c508" ,
"localStreamName" : "test" ,
"uri" : "srt://192.168.1.39:31014" ,
"status" : "PROCESSED_LOCAL" ,
"hasAudio" : false ,
"hasVideo" : false ,
"record" : false ,
"transport" : "SRT" ,
"cdn" : false ,
"timeout" : 90000 ,
"maxTimestampDiff" : 1 ,
"allowedList" : []
}
]
/mpegts/terminate
Request
POST /res t - api/mpeg ts /s tartu p HTTP/ 1.1
Hos t : localhos t : 8081
Co ntent - Type : applica t io n /jso n
Co ntent - Le n g t h : 26
{
"localStreamName" : "test"
}
Response
HTTP/ 1.1 200 OK
Access - Co ntr ol - Allow - Origi n : *
Co ntent - Type : applica t io n /jso n