The testbed shows how to compose several live streams into a single one using a Red5 Pro Mixer. The page includes a form to create a composition, a section to show the list of currently published streams, and a section to drag and drop the streams to the Mixers that are part of the composition to add, remove, mute or unmute streams in the composition.
The page supports three layouts for the compositions:
- 2x2 Grid: A 2x2 grid that can compose up to 4 streams
- 3x3 Grid: A 3x3 grid that can compose up to 9 streams
- NxN Grid: A NxN grid that can compose several streams and resize as the streams are added to it.
Additionally, the 3x3 and 2x2 grids can be used together to create compositions of compositions.
Before using the testbed publish one or more live streams as follows:
- Open the
Red5 Pro Testbed Settings Page
, and set the Web App tolive
. On the same page, scroll to the Mixer 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. - If the Round Trip Authentication is enabled on the
live
app, head to thePublish - Stream Manager Proxy RoundTrip Authentication
testbed by clickingTestbed Menu
->Stream Manager Tests
->Publish - Stream Manager Proxy RoundTrip Authentication
. Otherwise, head to thePublish - Stream Manager Proxy
testbed by clickingTestbed Menu
->Stream Manager Tests
->Publish - Stream Manager Proxy
- If using the
Publish - Stream Manager Proxy RoundTrip Authentication
, provide a set of mock username, password, and token and clickSubmit
.
Use the Grid Composition Manager
testbed as follows:
- Open the
Red5 Pro Testbed Settings Page
, and set the Web App tolive
. On the same page, scroll to the Mixer Specific section and set theBackend WebSocket For Compositions
endpoint to point to the WebSocket server - Head to the
Grid Composition Manager
testbed by clickingTestbed Menu
->Stream Manager Mixer Tests
->Grid Composition Manager
. - Create a mixer object using the
Create Mixer Objects
form by providing the following values:- Mixer Name - A name for the Mixer.
- Mixing Page - A page to use for the composition.
- Scope - The app/room scope where the Mixer will publish the mixed stream.
- Stream Name - A stream name for the mixed stream
- Destination Mixer Name - The name of a Mixer to forward the composition to, or leave empty to have the mixer publish back to the Red5 Pro Cluster.
- Click
Add Mixer
and verify a Mixer has been added to the UI in theMixers For Composition
section - Create a composition using the following values:
- Event Name - A name for the composition event
- Digest - A password for the mixer
- Transcode Composition - If checked the mixer will publish its mixed stream to a Transcoder node.
- Mixer Region - The name of the region where the Red5 Pro mixer is currently deployed.
- Click
Create Composition
and scroll up to theActive Composition
section where the state of the newly created composition will be shown. - Wait until the composition
State
becomesComposing
and a grid appears on the right-hand side of the page. The grid represents the Mixers that have just been created. - The central section of the testbed will include the streams previously published. Drag and drop the streams' boxes into a Mixer on the right side of the page to add the streams to the mixers, remove, mute, or unmute them.