Versions Compared

Key

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

...

Запрос

Ответ

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

{
	"name":"stream1",
	"published":true
}
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:05:16 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"
	}
]

...