Versions Compared

Key

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

...

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/call/send_dtmf HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 83
Content-Type: application/json

{
"callId" : "52173e00-13b6-11e7-b817-c1649197cae8",
"dtmf":"9",
"type":"RFC2833"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Tue, 28 Mar 2017 13:00:34 GMT


/call/inject_

...

sound

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/call/inject_
stream/startup
sound HTTP/1.1
Host: 192.168.1.101:8081
Content-Type: application/json;charset=UTF-8
Content-Length: 69

{
"callId":"yOh8vRDfr-lko7fXTg-pKJDHXQ-TW8PhcS",
"
streamName
fileName":"
mixer1
test.wav"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 23 Nov 2017 09:47:57 GMT

/call/inject_stream/

...

startup

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/call/inject_stream/terminatestartup HTTP/1.1
Host: 192.168.1.101:8081
Content-Type: application/json;charset=UTF-8
Content-Length: 69

{
"callId":"yOh8vRDfr-lko7fXTg-pKJDHXQ-TW8PhcS",
"streamName":"mixer1"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 23 Nov 2017 1209:4247:5257 GMT


/call/

...

inject_stream/

...

terminate

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/call/rtspinject_stream/startupterminate HTTP/1.1
Host: 192.168.1.101:8081
Content-LengthType: 56application/json;charset=UTF-8
Content-TypeLength: application/json69

{
"uricallId": "rtsp://s1.media-planet.sk:80/live/bardejov1"yOh8vRDfr-lko7fXTg-pKJDHXQ-TW8PhcS"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: TueThu, 2823 MarNov 2017 1312:1842:0152 GMT


/rtsp/

...

startup

Запрос

Ответ

js
Code Block
languagejs
themeRDark
POST /rest-api/rtsp/find_allstartup HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 056
Content-Type: application/json
Code Block
language


{
"uri": "rtsp://s1.media-planet.sk:80/live/bardejov1"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-TypeLength: application/json;charset=UTF-80
Date: Tue, 28 Mar 2017 1413:4718:08 GMT

[{
"uri":"rtsp://s1.media-planet.sk:80/live/bardejov1","status":"PLAYING"
},{
"uri":"rtsp://str81.creacast.com/grandlilletv/high","status":"PLAYING"
}]01 GMT


/rtsp/find_all

Запрос

Ответ

code
Code Block
languagejs
themeRDark
POST /rest-api/rtsp/find_all HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 720
Content-Type: application/json

{
"uri":"rtsp://str81.creacast.com/grandlilletv/high","status":"PLAYING"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Tue, 28 Mar 2017 14:5747:0508 GMT

[{
"uri":"rtsp://s1.media-planet.sk:80/live/bardejov1","status":"PLAYING"
},{
"uri":"rtsp://str81.creacast.com/grandlilletv/high","status":"PLAYING"
}]


/rtsp/

...

find

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/rtsp/terminatefind HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 5372
Content-Type: application/json

{
"uri":"rtsp://s1str81.media-planet.sk:80/live/bardejov1creacast.com/grandlilletv/high","status":"PLAYING"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-LengthType: 0application/json;charset=UTF-8
Date: Tue, 28 Mar 2017 1514:0257:07 GMT

...

05 GMT

[{
"uri":"rtsp://str81.creacast.com/grandlilletv/high","status":"PLAYING"
}]


/rtsp/terminate

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/streamrtsp/find_allterminate HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 053
Content-Type: application/json

{
"uri":"rtsp://s1.media-planet.sk:80/live/bardejov1"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-TypeLength: application/json;charset=UTF-80
Date: Tue, 28 Mar 2017 15:1002:38 GMT

[{
"custom":{},
"nodeId":null,
"appKey":"defaultApp",
"sessionId":"/192.168.1.102:13252/07 GMT


/stream/find_all

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/stream/find_all HTTP/1.1
Host: 192.168.1.101:8443",
"mediaSessionId":"9e7a6da0-13c8-11e7-a92a-b50084e40e7d",
"remoteMediaElementId":null,
"8081
Content-Length: 0
Content-Type: application/json
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Tue, 28 Mar 2017 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,
"streamInfo":{
    "custom":{},
    "nodeId":null,
    "appKey":null,
    "sessionId":null,
    "mediaSessionId":"9e7a6da0-13c8-11e7-a92a-b50084e40e7d",
    "name":"stream1",
    "samplingTime":null,
    "recordTimestamp":null,
    "recordStarted":false
},
"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,
"streamInfo":{
    "custom":{},
    "nodeId":null,
    "appKey":null,
    "sessionId":null,
    "mediaSessionId":"06844ffd-1dce-4a77-a2c2-37629f0e4d13",
    "name":"stream1",
    "samplingTime":null,
    "recordTimestamp":null,
    "recordStarted":false
},
"mediaProvider":"Flash"
}]

...

Запрос

Ответ

Code Block
languagejs
themeRDark
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
languagejs
themeRDark
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"
}

...

/P7v/z5+7/d+D7/7u7+L3/md3xELVl6PoaOj4"
}


/stream/startRecording 

Запрос

Ответ

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

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


/stream/stopRecording 

Запрос

Ответ

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

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


/data/send

Запрос

Ответ

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

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


/connection/find_all

Запрос

Ответ

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

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

...