Versions Compared

Key

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

...

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/mixer/find_all HTTP/1.1
HOST: 192.168.1.101:8081
content-type: application/json
content-length: 0
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
ServerAccess-Control-Allow-Origin: Apache-Coyote/1.1*
Access-Control-Allow-Credentials: true
Content-Type: application/json;charset=UTF-8
Date: Fri, 24 Nov 2017 15:01:23 GMT

[
	{
		
Content-Length: 574
 
[
  {
    "localMediaSessionId": "b38c284de2fa5c8b-2d8c16f3-4c1b4917-9a9b9d5f-c3049e5fe870557dde75db07",
		"remoteMediaSessionId":null,
		"    "localStreamName": "mixer2m1",
		"remoteStreamName":null,
		    "uri": "mixer://mixer2m1",
		    "status": "PROCESSED_LOCAL",
		"mediaSessions":[]
	},{
		"localMediaSessionId":"cafdd756-3451-4c0c-bf04-049cc2d5994a",
		"remoteMediaSessionId":null,
		"localStreamName":"mixer1_stream",
		"remoteStreamName":null,
		"uri":"mixer://mixer1",
		"status":"PROCESSED_LOCAL",
		"mediaSessions":[]
	}
]

...

    "hasAudio": true,
    "hasVideo": true,
    "record": false,
    "mediaSessions": [
      {
        "localMediaSessionId": "3dd763b0-2ae7-11eb-aa72-37b2cbcbf6b9",
        "audioLevel": 0,
        "videoMuted": true,
        "localStreamName": "stream1"
      },
      {
        "localMediaSessionId": "8af64760-2ae7-11eb-b086-cdf035231b9d",
        "audioLevel": 100,
        "videoMuted": false,
        "localStreamName": "desktop"
      },
      {
        "localMediaSessionId": "7cc4b410-2ae7-11eb-b34c-a5240fe9f151",
        "audioLevel": 0,
        "videoMuted": false,
        "localStreamName": "stream2"
      }
    ]
  }
]


/mixer/terminate

Запрос

Ответ

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

{
	"uri": "mixer://mixer1"
}
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


 

/mixer/setAudioVideo

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/mixer/
terminate
setAudioVideo HTTP/1.1
HOST
Host: 
192.168.1.101
localhost:8081
content-type
Accept: */*
Content-Type: application/json
content
Content-
length
Length: 
31
62
 
{
 "uri": "mixer://
mixer1"
m1",
 "streams": "^stream.*",
 "audioLevel": 0,
 "videoMuted": true
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server
Access-Control-Allow-Origin: 
Apache-Coyote/1.1
*
Access-Control-Allow-Credentials: true
Content-Length: 0
Date: Fri, 24 Nov 
2017
2020 14:55:35 GMT


 

/mixer/test/start

Запрос

Ответ

Code Block
languagejs
themeRDark
POST /rest-api/mixer/test/start HTTP/1.1
HOST: 192.168.1.101:8081
Content-type: application/json
Content-length: 107

{
	"feedingStreams": [
		"s1",
		"s2"
    ],
    "mixerCount": 3,
    "streamsInMixer": 1,
    "intervalInSeconds": 60
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Wed, 22 Aug 2018 08:53:26 GMT

...