The streammanager WebRTC proxy is a communication layer built inside streammanager web application which allows it to act as a proxy gateway for webrtc publishers/subscribers. The target use case of this communication layer is to facilitate a secure browser client to be able to connect to an "unsecure" remote WebSocket endpoint for consuming WebRTC services offered by Red5pro.
Streammanager autoscaling works with dynamic nodes which are associated with dynamic IP addresses and cannot have an SSL attached to them. The proxy layer helps publishers to connect and initiate a WebRTC publish session from a secure
(SSL enabled) domain to an unsecured
Red5pro origin using an IP address.
Please refer to the Basic Publisher Documentation to learn more about the basic setup.
In order to properly run the Stream Manager examples, you will need an autoscale environment. See cloud-specific setup details here.
You also need to ensure that the stream manager proxy layer is
enabled
. The configuration section can be found in the stream manager's config file -red5-web.properties
## WEBSOCKET PROXY SECTION
proxy.enabled=false
The testbed shows how to join a video conference that uses a Red5 Pro mixer to create a composition for the conference that is returned as a single video stream to conference participants along with a mix-minus audio track. The testbed includes two players: one shows the participant's published stream while the other the stream returned by the Mixer.
The mixed stream returned to the participant is created and managed by a Conference Host using the Conference Host Testbed
The page starts by connecting to a WebSocket server and publishing into a waiting room using an RTCPublisher
. The WebSocket server notifies any Conference Host
connected to the same room that can add the participant to the conference.
When a participant is added, its testbed is notified by the WebSocket server. As a result, the participant joins the conference using the RTCConferenceParticipant
publisher that publishes the participant's stream into the conference and receives the mixed video from the mixer and a set of mix-minus audio tracks.
The Conference Participant
testbed can be used as follows:
- Open the
Red5 Pro Testbed Settings Page
, and set WebApp tolive/<room>
, where<room>
is a room scope. On the same page, scroll to theMixer Specific
section and set theBackend WebSocket For Compositions
endpoint to point to the WebSocket server - While on the
Mixer Specific
section, checkEnable Round Trip Authentication
if the Round Trip Authentication was configured in thelive
app. - Head to the
Conference Participant
testbed by clickingTestbed Menu
->Stream Manager Mixer Tests
->Conference Participant
. - If
Enable Round Trip Authentication
was checked at step 3, provide a set of mock username, password, and token then click Submit - Click
Start Broadcast
to join the waiting room of the video conference for the room<room>
configured on theSettings
page. - When the
Conference Host
in the same room adds the participant to the conference, the participant will receive back the mixed conference stream. See the Conference Host Testbed.