A production studio in playlist mode lets you quickly combine multiple video programs to create a live channel based on a playlist. This feature enriches your live streaming scenarios and content formats. You can add, delete, modify, and query programs in a playlist, and edit program content. This topic describes how to use a production studio in playlist mode for live streaming.
Prerequisites
The production studio feature is enabled. For more information, see Create and manage production studios. For feature availability, see Supported regions.
A domain name is added to ApsaraVideo Live and a CNAME record is configured for the domain name. For more information, see Add an accelerated domain name and Configure a CNAME record in Alibaba Cloud DNS.
Optional. If you want to select a video source from ApsaraVideo Live, make sure that the domain name of the video source is added to ApsaraVideo Live and that a CNAME record is configured. For more information, see Add an accelerated domain name and Configure a CNAME record in Alibaba Cloud DNS.
Optional. If you want to select a video source from ApsaraVideo VOD, make sure that the domain name of the video source is added to ApsaraVideo VOD and that a CNAME record is configured. For more information, see Add a domain name for CDN and Configure a CNAME record with Alibaba Cloud DNS.
Optional. If you want to record live streams, make sure that the recording feature is enabled. For more information, see Live stream recording.
Background information
A production studio in playlist mode is used to quickly combine multiple video programs and create a playlist-based live channel. You can add, delete, modify, and query programs in a playlist, and edit program content. You can flexibly and easily configure the production studio to efficiently implement your business scenarios. This topic describes the entire process of using a production studio in playlist mode, from setup to starting a real-time live stream.
The production studio service provides a series of API operations. These operations allow you to add, edit, modify, query, and stop programs in a production studio that is in playlist mode. This topic describes how to quickly integrate the production studio service by calling API operations.
You can add a maximum of 1,000 programs to each production studio in playlist mode.
Console operation guide
In the console, you can add media files such as VOD videos, images, and live streams. You can also set the playback duration and sort the playlist. After you add content in batches, you can quickly start the live stream. You can also adjust the playlist order and add or delete content in real time.
Log on to the ApsaraVideo Live console. In the navigation pane on the left, choose .
Find the production studio in playlist mode that you created and click Enter in the Actions column.
The configuration panel appears the first time you enter the production studio interface after you create a production studio instance. After you complete the configuration, click OK.
If you have entered the interface before, you can click Live Stream Settings in the upper-right corner to open the panel and configure the production studio.

Configuration item
Operation
Domain
Click the Domain text box. In the Domain drop-down list, select a live streaming domain name for which you have configured a CNAME record.
Output
In the Output drop-down list, select the original resolution for the live stream. Valid values: Low Definition, Standard Definition, High Definition, Ultra-high Definition, Portrait Low Definition, Portrait Standard Definition, Portrait High Definition, and Portrait Ultra-high Definition.
Background Settings
This configuration item lets you set the playlist background to a live stream, a VOD resource, or an image.
Live Stream
Select from ApsaraVideo Live Console: After you select a domain name, a list of all live streams under the domain name is automatically synchronized and displayed. Select the ingest URL that you want to add to the current production studio instance.
Enter Streaming URL: Enter a valid live stream URL. The URL can be in the RTMP, FLV, or RTS format.
VOD Resource
Click Select. In the media library that appears, select a video from the list of video assets.
Image
Select From Media Library: Click Select Image. In the media library that appears, select an image from the list of image assets.
Local Upload: Upload a local image. You can upload JPG or PNG images. The maximum file size is 10 MB. The uploaded image is stored in the ApsaraVideo VOD media library.
NoteThe background settings take effect only when the VOD videos in the playlist are in the WebM format.
Multi-way Stream Relay
(Optional) Click Add URL to set a relay address.
ImportantAfter you add or delete a relay address, disconnect and restart the Program (PGM) output for the settings to take effect.
If you use third-party platforms, additional relay fees are incurred. By default, you can use three free relay addresses for each domain name. If you use more than three relay addresses, you are charged for the extra addresses. The billing method is the same as the relay billing for the live center. For more information, see Billing of stream relay in the live center.
In the Playlist section, click Add to configure the settings.

Setting
Description
Video Source Name
Optional. By default, the asset name is used.
Video Source Type
The available types are:
Video
Image
Select live stream
Enter live stream
Video
If you set Video source type to Video, click Select to add a VOD video from the media library. You can set the number of loops or the loop duration.
Image
If you set Video source type to Image, click Select Image to add an image from the media library. You must set the playback duration.
Domain Name/Live Stream/Live Stream URL
If you set Video source type to Select Live Stream or Specify Live Stream, select an online live stream from the live center or enter a live stream URL. The URL can be in the RTMP, FLV, or RTS format. You can set the playback duration.
Loop
The loop settings vary based on the video source type. Set the number of loops and the playback duration as needed.
After you complete the settings, click OK.
Click Start. You can then perform the following operations on the content that is being streamed.

Setting
Operation description
①
Stop or start the live stream at any time.
②
Set the number of loops for the entire playlist.
③
Switch to a specific program.
④
Adjust the order of the playlist.
⑤
Add or delete a single program.
API operation guide
You can call API operations to quickly integrate and use the production studio service in playlist mode. The process is as follows:
Create and configure a new production studio in playlist mode. For more information, see CreateCaster and SetCasterConfig.
Add a program to or remove a program from the playlist. For more information, see AddShowIntoShowList and RemoveShowFromShowList.
(Optional) Query the details of the playlist and modify the playlist properties. For more information, see DescribeShowList and ModifyShowList.
Start the production studio in playlist mode. For more information, see StartCaster.
Stop the production studio in playlist mode. For more information, see StopCaster.
(Optional) Create a scheduled task to automatically start and stop streaming the playlist. For more information, see InitializeAutoShowListTask.