Versions Compared

Key

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

...

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/rtsp/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 14:47:08 GMT

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


/rtsp/find

Request

Response

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

{
"uri":"rtsp://str81.creacast.com/grandlilletv/high","status":"PLAYING"
}
Code Block
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:57:05 GMT

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


/rtsp/terminate

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/rtsp/terminate HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 53
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-Length: 0
Date: Tue, 28 Mar 2017 15:02:07 GMT


/stream/find_all

Request

Response

Code Block
languagejs
themeRDark
POST /rest-api/stream/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 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"
}]

...