Versions Compared

Key

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

...

Запрос

Ответ

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

{
	"uri": "rtsp://s1.media-planet.sk:80/live/bardejov1",
    "toStream": "stream1"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Tue, 28 Mar 2017 13:18:01 GMT

...

Запрос

Ответ

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",
      "toStream":"stream1",
      "status":"PLAYING"
	},{
	  "uri":"rtsp://str81.creacast.com/grandlilletv/high",
      "toStream":"rtsp://str81.creacast.com/grandlilletv/high",
      "status":"PLAYING"
	}
]


/rtsp/find

Запрос

Ответ

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",
        "toStream":"rtsp://str81.creacast.com/grandlilletv/high",
        "status":"PLAYING"
	}
]


/rtsp/terminate

...

Запрос

Ответ

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

{
	"uri":"rtmp://rtmp.flashphoner.com:1935/live/rtmp_stream1",
    "localStreamName":"stream1"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 23 Nov 2017 09:47:23 GMT

...

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/pull/rtmp/find_all HTTP/1.1
Host: 192.168.1.101:8081
Content-Length: 0
Content-Type: application/json
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Fri, 24 Nov 2017 14:27:35 GMT

[
	{
		"localMediaSessionId":"69695ed6-6e78-455c-9fee-ae1af8d4a0b5",
		"remoteMediaSessionIdlocalStreamName":null"stream1",
		"localStreamNameuri":"rtmp://rtmp.flashphoner.com:1935/live/stream1",
		"remoteStreamNamestatus":null,
		"uri":"rtmp://rtmp.flashphoner.com:1935/live/stream1",
		"status":"PROCESSED_REMOTE""PROCESSED_REMOTE",
        "hasAudio": true,
        "hasVideo": true,
        "record" false
	},{
		"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",
        "hasAudio": true,
        "hasVideo": true,
        "record" false
	}
]


/pull/rtmp/terminate

Запрос

Ответ

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

{
	"uri":"rtmp://rtmp.flashphoner.com:1935/live/rtmp_stream1"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 23 Nov 2017 09:47:31 GMT

...

Запрос

Ответ

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

{
	"uri":"wss://demo.flashphoner.com:8443/websocket"
	"localStreamName": "6602"
	"remoteStreamName": "6602"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 23 Nov 2017 09:47:23 GMT

...

Запрос

Ответ

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

{
	"uri":"wss://demo.flashphoner.com:8443/websocket"
	"localStreamName": "0d40"
	"remoteStreamName": "0d40"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 23 Nov 2017 09:47:23 GMT

...

Запрос

Ответ

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

{
	"uri": "wss://demo.flashphoner.com:8443/websocket"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 24 Nov 2017 14:55:35 GMT


 

...