...
- The browser connects to the WCS1 server via Websocket and sends the publish command.
- The browser captures the microphone and the camera and sends the WebRTC stream to the server.
- The REST client sends to the WCS2 server the /pull/pull query.
- WCS2 requests the stream from WCS1.
- WCS2 receives the WebRTC stream from WCS1.
- The second browser establishes a connection to the WCS2 server via Websokcet and sends the play command.
- The second browser receives the WebRTC stream and plays this stream on the page.
REST-queries
RESTREST-query must be an HTTP/HTTPS POST request as follows:
- - HTTP: http://test.flashphoner.com:
...
- 8081/rest-api/pull/rtmp/pull
- - HTTPS: https://test.flashphoner.com:
...
- 8444/rest-api/pull/rtmp/pull
Where:
- - test.flashphoner.com - is the address of the WCS server
- -
...
- 8081 - is the standard REST / HTTP port of the WCS server
- -
...
- 8444 - is the standard HTTPS port
- - rest-api - is the required part of the URL
- - /pull/rtmp/pull - is the REST method used
REST-methods and response statuses
...