This topic uses the recording module of ApsaraVideo Live as an example to show how to relay Web Real-Time Communication (WebRTC) streams to a live center and implement cloud-based recording.
Method 1: Configure global stream relay and recording
Log on to the ApsaraVideo Live console and configure a streaming domain for stream relay. For more information, see Method 2 in Configure stream relay.
Find the streaming domain that you configured in Step 1 on the Domain Management page and configure recording settings to store recordings in Object Storage Service (OSS) or ApsaraVideo VOD. For information about how to configure recording settings, see Live stream recording.
NoteIf you want to record a stream after the stream is relayed to a live center, make sure that the value of AppName in the recording template is the same as the value of AppName specified in the global stream relay settings.
Method 2: Specify streams to relay and configure recording
You can call client or server API operations to specify streams that you want to relay to ApsaraVideo Live or a third-party platform, and configure cloud-based recording for the relayed streams. This method enables recording for specified streams but increases the development costs. For more information, see StartLiveMPUTask (new).