To use the co-streaming feature, you must create a co-streaming application and configure the ingest and streaming domains for co-streaming and the streaming domain of viewers. This topic describes how to perform these operations.
Create a co-streaming application
- Log on to the ApsaraVideo Live console.
- In the left-side navigation pane, choose Scenario-based Services > .
- Click Create Co-streaming Application. The buy page is displayed, as shown in the following figure.
- Enter a custom name in the Instance Name field, tick the Terms of Service checkbox, and then click Buy Now.
After a success prompt appears, refresh the Co-streaming Applications page. You can see the created co-streaming application.
NoteCo-streaming is a pay-as-you-go feature. You are not charged fees when you enable the feature.
Configure the ingest and streaming domains for co-streaming
If there are no streaming and ingest domains for co-streaming on the Domain Management page, you must add corresponding domain names first. For more information, see Add a domain name.Enable RTS 2.0 for the ingest and streaming domains
Co-streaming for ingest and streaming domains is built based on RTS 2.0. RTS 2.0 provides a co-streaming latency of 200 ms to 400 ms.
- In the left-side navigation pane of the ApsaraVideo Live console, click Domains. The Domain Management page appears.
- Find the ingest domain for co-streaming and click Domain Settings in the Actions column.
- On the page that appears, choose Streaming Management > RTS-based Stream Ingest. Then, turn on RTS-based Stream Ingest.
- Select RTS 2.0 for Stream Ingest for Version. Stream relay is not required for co-streaming.
- Click OK.
- Return to the Domain Management page. Find the streaming domain for co-streaming and click Domain Settings in the Actions column.
- On the page that appears, choose RTS. . Then, turn on
- Select RTS 2.0 for Version and select Communication and Interaction for Scenario.
- Click OK.
Configure the ingest and streaming domains for co-streaming
- In the left-side navigation pane of the ApsaraVideo Live console, choose Scenario-based Services > .
- On the Co-streaming Applications page, find the application that you want to configure and click Manage in the Actions column.
- On the Application Information tab, click Configure Domain Name in the Ingest and Streaming Domains for Co-streaming section.
- In the dialog box that appears, select the ingest domain and streaming domain for which RTS 2.0 is enabled.
- Click OK.
Configure the streaming domain of viewers
If there is no streaming domain of viewers on the Domain Management page, you must add the domain name first. For more information, see Add a domain name.
Check whether RTS 2.0 is enabled for the streaming domain of viewers
- In the left-side navigation pane of the ApsaraVideo Live console, click Domains. The Domain Management page appears.
- Find the streaming domain of viewers and click Domain Settings in the Actions column.
- On the page that appears, choose .
- On the page that appears, check whether the version of RTS is RTS 2.0.
If the version of RTS is RTS 2.0, change the version to RTS 1.0 or turn off RTS.
Configure the streaming domain of viewers
On the Application Information tab of the page for managing the co-streaming application, click Configure Domain Name in the Streaming Domain of Viewers section.
Configure stream mixing
On the Mixed-Stream Configuration page, you can learn from the notes and sample code about how to implement stream mixing in interactive co-streaming scenarios. You can click iOS or Android to view the sample code for iOS or Android.