Versions Compared

Key

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

...

Request

Response

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


/mixer/startup

Request

Response

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

{
  "uri": "mixer://mixer1",
  "localStreamName": "mixer1_stream"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 24 Nov 2017 14:55:26 GMT


/mixer/add

Request

Response

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

{
"uri": "mixer://mixer1",
"remoteStreamName": "rtmp://rtmp.flashphoner.com:1935/live/stream1"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 24 Nov 2017 15:21:06 GMT


/mixer/remove

Request

Response

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

{
"uri": "mixer://mixer1",
"remoteStreamName": "rtmp://rtmp.flashphoner.com:1935/live/stream1"
}
Code Block
languagejs
themeRDark
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 24 Nov 2017 15:21:12 GMT


/mixer/find_all

Request

Response

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
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Fri, 24 Nov 2017 15:01:23 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

Request

Response

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/test/start

Request

Response

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

...