A playlist mode production studio assembles multiple video programs into a single live stream. You can add, edit, reorder, and remove programs in the playlist.
Prerequisites
-
You have activated Media Production Studio. For more information, see Activate Media Production Studio.
-
You have added a domain name for production and configured its CNAME record. For more information, see Add an accelerated domain name and Configure a CNAME record for live streaming.
-
(Optional) To select a video source from the ApsaraVideo Live console, add a live streaming domain name and configure a CNAME record for it. For more information, see Add a live streaming domain name and Configure a CNAME record for live streaming.
-
(Optional) To select a video source from the media library, add an ApsaraVideo VOD domain name and configure a CNAME record for it. For more information, see Add an ApsaraVideo VOD domain name and Configure a CNAME record for ApsaraVideo VOD.
-
(Optional) To use the live recording feature, activate the storage service for recordings. For more information, see Record live streams to OSS.
-
You have read the API development guide. For more information, see Development guide.
Overview
-
Assemble multiple videos into a playlist-based live stream. Create, query, update, delete, and edit programs in the playlist.
-
API operations are available to add, edit, query, and stop programs for quick integration.
-
Each production studio in playlist mode can contain up to 1,000 programs.
Use the console
Add VOD resources, images, and live streams to the playlist. Set playback durations, manage the order, and start streaming.
-
Log on to the ApsaraVideo Live console. In the left navigation pane, choose .
-
Find the target production studio and click Open in the Actions column.
-
A newly created production studio displays the configuration panel on first open. Configure the settings and click OK.
To reconfigure later, click Live Stream Settings in the upper-right corner. The panel includes Name (up to 32 characters), live center (region, such as China (Shanghai)), and resource group.
Parameter
Description
Domain
Click the Domain text box. In the Domain drop-down list, select the live streaming domain name that you want to use and for which you have configured a CNAME record.
Output
From the Output drop-down list, select the original resolution of the live stream. Options include Low Definition, Standard Definition, High Definition, Ultra High Definition 1080p (1920 × 1080), Portrait Low Definition, Portrait Standard Definition, Portrait High Definition, and Portrait Ultra High Definition 1080p (1080 × 1920).
Background Settings
Set the playlist background to a live stream, VOD resource, or image.
Live Stream
-
Select from ApsaraVideo Live Console: Select a domain name. Available ingest URLs under that domain are displayed. Select one to add it.
-
Enter Streaming URL: Enter a valid live stream URL. Supported formats: RTMP, FLV, and RTS.
VOD Resource
-
Click Select and select a video from the media library panel that opens.
Image
-
Select From Media Library: Click Select Image and select an image from the media library panel that opens.
-
Local Upload: Upload a JPG or PNG image from your computer. Maximum file size: 10 MB. The image is stored in the ApsaraVideo VOD media library.
NoteThe background setting takes effect only if the VOD videos in the playlist are in WebM format.
Multi-way Stream Relay
(Optional) Click Add URL to set a destination URL for stream relay.
Important-
Changes to relay URLs take effect only after you disconnect and restart the PGM output.
-
Relaying to third-party platforms incurs additional stream relay fees. You get three free relay URLs per domain by default. Additional URLs are billed at the live center stream relay rate. Billing of live center stream relay.
-
-
Below the Playlist, click Add to configure a program.
Parameter
Description
Video Source Name
Optional. Defaults to the asset name.
Video Source Type
Select a type:
-
Video
-
Image
-
Select Live Stream
-
Enter Live Stream
Video
If Video Source Type is Video, click Select to add a VOD resource from the media library. Specify loop count or loop duration.
Image
If Video Source Type is Image, click Select Image to add an image from the media library. Specify the playback duration.
Domain Name/Live Stream/Streaming URL
If Video Source Type is Select Live Stream or Specify Live Stream, select an active live stream or enter a URL (RTMP, FLV, or RTS). Specify the playback duration.
Loop
Loop settings vary by source type. Configure loop count and playback duration as needed.
After you complete the configuration, click OK.
-
-
Click Start. While streaming, manage playback in real time. Click Stop Live Stream to end the broadcast. Enable Playlist Loop and set repetitions. In the Playlist panel, click +Add to add assets, Start Playback to switch programs, drag to reorder, or click delete to remove items.
Action
Description
①
Start or stop the live stream.
②
Set the number of times the entire playlist loops.
③
Switch playback to a specific program.
④
Adjust the order of programs in the playlist.
⑤
Add or remove individual programs.
API operations
To integrate using the API:
-
Call CreateCaster and SetCasterConfig to create and configure a new production studio.
-
Call AddShowIntoShowList and RemoveShowFromShowList to add or remove programs from the playlist.
-
(Optional) Call DescribeShowList and ModifyShowList to query playlist details or modify playlist properties.
-
Call StartCaster to start streaming from the production studio.
-
Call StopCaster to stop streaming from the production studio.
-
(Optional) Call InitializeAutoShowListTask to create a scheduled task to automatically start and stop the playlist.
Web SDK
You can also integrate with the Web SDK. Integrate the Live Producer Web SDK.