Versions Compared

Key

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

/call/startup

Запрос

Ответ


>>

Code Block
languagejs
themeRDark
POST /rest-api/call/startup HTTP/1.1
HOST: 192.168.1.59:9091
content-length: 417
content-type: application/json

{  
   "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"
}
<<



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Mon, 27 Mar 2017 03:23:54 GMT


...

/call/find_all

>>
ЗапросОтвет


Code Block
languagejs
themeRDark
POST /rest-api/call/find_all HTTP/1.1
Host: 192.168.1.101:9091
Content-Length: 0
Content-Type: application/json
<<



Code Block
languagejs
themeRDark
[
   {
      "custom":{

      },
      HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Tue, 28 Mar 2017 12:13:24 GMT

[{
"custom" {},
"nodeId":null,
      "appKey":null,
      "sessionId":null,
      "callId""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""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 

>>

Запрос

Ответ


Code Block
languagejs
themeRDark
POST /rest-api/call/find HTTP/1.1
Host: 192.168.1.101:9091
Content-Length: 70
Content-Type: application/json

{
   "status" : "ESTABLISHED",
   "rtmpUrl" : "rtmp://localhost:1935/live"
}

<<



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: 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""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

Запрос

Ответ


>>

Code Blockcode
languagejs
themeRDark
POST POST /rest-api/call/terminate HTTPterminate HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Length: 53 53
Content-Type: application application/json

{
"callId"  :  "becee2c0-13b4-11e7-b817-c1649197cae8"
}
<<



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Tue, 28 Mar 2017 12 Tue, 28 Mar 2017 12:48:29 GMT29 GMT


 

/call/send_dtmf

Запрос

Ответ


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

{
"callId"  :  "52173e00-13b6-11e7-b817-c1649197cae8",
"dtmf":"9",
"type":"RFC2833"
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Tue, 28 Mar 2017 13 Tue, 28 Mar 2017 13:00:34 GMT34 GMT


 

/call/inject_stream

Запрос

Ответ


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

{
"callId":"yOh8vRDfr-lko7fXTg-pKJDHXQ-TW8PhcS",
"streamName":"mixer1"
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Thu, 23 Nov 2017 09 Thu, 23 Nov 2017 09:47:57 GMT57 GMT


 

/rtsp/startup

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/rtsp/startup HTTPstartup HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Length: 56 56
Content-Type: application application/json

{
"uri":  "rtsp://s1.media-planet.sk:80/live/bardejov1"
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Tue, 28 Mar 2017 13 Tue, 28 Mar 2017 13:18:01 GMT01 GMT


 

/rtsp/find_all

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/rtsp/find_all HTTPall HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Length: 0 0
Content-Type: application application/json



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Type: application application/json;charset=UTF-8
Date: Tue, 28 Mar 2017 14 Tue, 28 Mar 2017 14:47:08 GMT08 GMT

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


...

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/rtsp/find HTTPfind HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Length: 72 72
Content-Type: application application/json

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



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Type: application application/json;charset=UTF-8
Date: Tue, 28 Mar 2017 14 Tue, 28 Mar 2017 14:57:05 GMT05 GMT

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


...

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/rtsp/terminate HTTPterminate HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Length: 53 53
Content-Type: application application/json

{
"uri":"rtsp://s1.media-planet.sk:80/live/bardejov1"
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Tue, 28 Mar 2017 15 Tue, 28 Mar 2017 15:02:07 GMT07 GMT


 

/stream/find_all

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/stream/find_all HTTPall HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Length: 0 0
Content-Type: application application/json



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Type: application application/json;charset=UTF-8
Date: Tue, 28 Mar 2017 15 Tue, 28 Mar 2017 15:10:38 GMT38 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"

}]


 

/stream/find

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/stream/find HTTPfind HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Length: 40 40
Content-Type: application application/json

{
"name":"stream1",
"published":true
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Type: application application/json;charset=UTF-8
Date: Tue, 28 Mar 2017 16 Tue, 28 Mar 2017 16:05:16 GMT16 GMT

[{
"custom":{},
"nodeId":null,
"appKey":"defaultApp",
"sessionId":"/192.168.1.102:34500/192.168.1.101:8080",
"mediaSessionId":"4f112b20-13d0-11e7-b521-59a9cb7eddeb",
"remoteMediaElementId":null,
"name":"stream1",
"published":true,
"hasVideo":true,
"hasAudio":true,
"status":"PUBLISHING",
"sdp":".....",
"info":null,
"record":true,
"recordName":"stream-4f112b20-13d0-11e7-b521-59a9cb7eddeb-737lrm8t053nlg8c2n23ctco33.mp4",
"width":0,
"height":0,
"bitrate":0,
"quality":0,
"rtmpUrl":null,
"streamInfo":{
        "custom":{},
        "nodeId":null,
        "appKey":null,
        "sessionId":null,
        "mediaSessionId":"4f112b20-13d0-11e7-b521-59a9cb7eddeb",
        "name":"stream1",
        "samplingTime":1490717116551,
        "recordTimestamp":7640,
        "recordStarted":true
},
"mediaProvider":"Flash"
}]


...

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/stream/terminate HTTPterminate HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Length: 57 57
Content-Type: application application/json

{
"mediaSessionId":"4f112b20-13d0-11e7-b521-59a9cb7eddeb"
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Tue, 28 Mar 2017 16 Tue, 28 Mar 2017 16:11:48 GMT48 GMT


 

/data/send

Запрос

Ответ


POST /
Code Block
languagejs
themeRDark
POST /rest-api/data/send HTTPsend HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Length: 201 201
Content-Type: application 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 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Tue, 28 Mar 2017 16 Tue, 28 Mar 2017 16:21:18 GMT18 GMT


 

/connection/find_all

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/connection/find_all HTTPall HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Length: 0 0
Content-Type: application application/json



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Type: application application/json;charset=UTF-8
Date: Tue, 28 Mar 2017 16 Tue, 28 Mar 2017 16:42:07 GMT07 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 60 (Windows NT 6.3; Win64 Win64; x64 x64)  ...",
"clientBrowserVersion":"... Chrome Chrome/57.0.2987.110 110 ..."
}]


 

/connection/find

Запрос

Ответ


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

{
"appKey":"roomApp",
"clientVersion":"0.5.18"
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Type: application application/json;charset=UTF-8
Date: Tue, 28 Mar 2017 17 Tue, 28 Mar 2017 17:12:38 GMT38 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 60 (Windows NT 6.3; Win64 Win64; x64 x64)  ...",
"clientBrowserVersion":"... Chrome Chrome/57.0.2987.110 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 60 (Windows NT 6.3; WOW64 WOW64; Trident Trident/7.0...",
"clientBrowserVersion":"Mozilla/5.0 (Windows NT 60 (Windows NT 6.3; WOW64 WOW64; Trident Trident/7.0..."

}]


 

/connection/terminate

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/connection/terminate HTTPterminate HTTP/1.1
Host:192.168.1.101:9091
Content-Length: 55 55
Content-Type: application application/json

{
"sessionId":"/192.168.1.102:39564/192.168.1.101:8443"
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Tue, 28 Mar 2017 17 Tue, 28 Mar 2017 17:21:40 GM
T
40 GMT


 

/push/startup

Запрос

Ответ


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

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



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

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


...

Запрос

Ответ


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

{
"rtmpUrl":"rtmp://localhost:1935/live"
}



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

[{
"mediaSessionId":"bung2cu1npigp8u4bd75ha4c5r",
"streamName":"rtmp_4be7",
"rtmpUrl":"rtmp://localhost:1935/live"

},{

"mediaSessionId":"hs4khbl7g3abmnkeli217lrcmf",
"streamName":"rtmp_f85d",
"rtmpUrl":"rtmp://localhost:1935/live"

}]


 

/push/find_all

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/push/find_all HTTPall HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Length: 0 0
Content-Type: application application/json



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Type: application application/json;charset=UTF-8
Date: Fri, 28 Apr 2017 12 Fri, 28 Apr 2017 12:56:04 GMT04 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

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/push/terminate HTTPterminate HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Length: 48 48
Content-Type: application application/json
 
{
"mediaSessionId":  "6dk1l0m3cm17c68232bccm52f1"
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Fri, 28 Apr 2017 12 Fri, 28 Apr 2017 12:56:51 GMT51 GMT


 

/push/mute

Запрос

Ответ


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

{
"mediaSessionId":  "gocrv1ncahlkcqht9k2nbs8tbc"
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Mon, 03 Jul 2017 09 Mon, 03 Jul 2017 09:06:14 GMT14 GMT


 

/push/unmute

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/push/unmute HTTPunmute HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Length: 48 48

Content-Type: application application/json

{
"mediaSessionId":  "gocrv1ncahlkcqht9k2nbs8tbc"
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Mon, 03 Jul 2017 09 Mon, 03 Jul 2017 09:07:27 GMT27 GMT


 

/push/sound_on

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/push/sound_on HTTPon HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Length: 88 88
Content-Type: application application/json

{
"mediaSessionId":  "gocrv1ncahlkcqht9k2nbs8tbc",
"soundFile":"sample.wav",
"loop": true true
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Mon, 03 Jul 2017 09:11:42 GMT Mon, 03 Jul 2017 09:11:42 GMT


 

/push/sound_off

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/push/sound_off HTTPoff HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Length: 48 48
Content-Type: application application/json

{
"mediaSessionId":  "gocrv1ncahlkcqht9k2nbs8tbc"
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Mon, 03 Jul 2017 09 Mon, 03 Jul 2017 09:12:25 GMT25 GMT


 

/pull/rtmp/pull

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/pull/rtmp/pull HTTPpull HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Type: application application/json;charset=UTF-8
Content-Length: 60 60

{
"uri":"rtmp://rtmp.flashphoner.com:1935/live/rtmp_stream1"
"record":"true"
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Thu, 23 Nov 2017 09 Thu, 23 Nov 2017 09:47:23 GMT23 GMT


 

/pull/rtmp/find_all

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/pull/rtmp/find_all HTTPall HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Length: 0 0
Content-Type: application application/json



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Type: application application/json;charset=UTF-8
Date: Fri, 24 Nov 2017 14 Fri, 24 Nov 2017 14:27:35 GMT35 GMT

[{

"localMediaSessionId":"69695ed6-6e78-455c-9fee-ae1af8d4a0b5",
"remoteMediaSessionId":null,
"localStreamName":"rtmp://rtmp.flashphoner.com:1935/live/stream1",
"remoteStreamName":null,
"uri":"rtmp://rtmp.flashphoner.com:1935/live/stream1",
"status":"PROCESSED_REMOTE"

},{

"localMediaSessionId":"dfae1a1c-f99b-4e56-9f19-7dc7903ede8d",
"remoteMediaSessionId":null,
"localStreamName":"rtmp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov",
"remoteStreamName":null,
"uri":"rtmp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov",
"status":"PROCESSED_REMOTE"
}]


...

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/pull/rtmp/terminate HTTPterminate HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Type: application application/json;charset=UTF-8
Content-Length: 60 60

{
"uri":"rtmp://rtmp.flashphoner.com:1935/live/rtmp_stream1"
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Thu, 23 Nov 2017 09 Thu, 23 Nov 2017 09:47:31 GMT31 GMT


 

/mixer/startup

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/mixer/startup HTTPstartup HTTP/1.1
HOST: 192 192.168.1.101:9091
content-type: application application/json
content-length: 70 70

{
    "uri":  "mixer://mixer1",
    "localStreamName":  "mixer1_stream"
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Fri, 24 Nov 2017 14 Fri, 24 Nov 2017 14:55:26 GMT26 GMT


 

/mixer/add

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/mixer/add HTTPadd HTTP/1.1
HOST: 192 192.168.1.101:9091
content-type: application application/json
content-length: 99 99

{
"uri":  "mixer://mixer1",
"remoteStreamName":  "rtmp://rtmp.flashphoner.com:1935/live/stream1"
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Fri, 24 Nov 2017 15 Fri, 24 Nov 2017 15:21:06 GMT06 GMT


 

/mixer/remove

Запрос

Ответ


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

{
"uri":  "mixer://mixer1",
"remoteStreamName":  "rtmp://rtmp.flashphoner.com:1935/live/stream1"

}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Fri, 24 Nov 2017 15 Fri, 24 Nov 2017 15:21:12 GMT12 GMT


 

/mixer/find_all

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/mixer/find_all HTTPall HTTP/1.1
HOST: 192 192.168.1.101:9091
content-type: application application/json
content-length: 0 0



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Type: application application/json;charset=UTF-8
Date: Fri, 24 Nov 2017 15 Fri, 24 Nov 2017 15:01:23 GMT23 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

Запрос

Ответ


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

{
  "uri": "mixer://mixer1"
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Fri, 24 Nov 2017 14 Fri, 24 Nov 2017 14:55:35 GMT35 GMT


 

 

/pull/pull

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/pull/pull HTTPpull HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Type: application application/json;charset=UTF-8
Content-Length: 60 60

{
"uri":"wss://demo.flashphoner.com:8443"
"localStreamName":  "6602"
"remoteStreamName":  "6602"
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Thu, 23 Nov 2017 09 Thu, 23 Nov 2017 09:47:23 GMT23 GMT


 

/pull/find_all

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/pull/find_all HTTPall HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Length: 0 0
Content-Type: application application/json



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Type: application application/json;charset=UTF-8
Date: Fri, 24 Nov 2017 14 Fri, 24 Nov 2017 14:27:35 GMT35 GMT

[{
"localMediaSessionId":"da157e2b-2159-40c9-9560-ae1af8d4a0b5",
"remoteMediaSessionId":null,
"localStreamName":"6602",
"remoteStreamName":"660s",
"uri":"wss://demo.flashphoner.com:8443/websocket",
"status":"NEW"
}]


...

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/pull/pull HTTPpull HTTP/1.1
Host: 192 192.168.1.101:9091
Content-Type: application application/json;charset=UTF-8
Content-Length: 60 60

{
"uri":"wss://demo.flashphoner.com:8443"
"localStreamName":  "0d40"
"remoteStreamName":  "0d40"
}



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Thu, 23 Nov 2017 09 Thu, 23 Nov 2017 09:47:23 GMT23 GMT


 

/pull/terminate

Запрос

Ответ


POST 
Code Block
languagejs
themeRDark
POST /rest-api/pull/terminate HTTPterminate HTTP/1.1
HOST: 192 192.168.1.101:9091
content-type: application application/json
content-length: 31  31

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



Code Block
languagejs
themeRDark
HTTP/1.1 200 OK1 200 OK
Server: Apache Apache-Coyote/1.1
Content-Length: 0 0
Date: Fri, 24 Nov 2017 14 Fri, 24 Nov 2017 14:55:35 GMT

 

 

 

...

35 GMT