This topic describes the procedure for calling API operations to use a production studio and provides API references.
Prerequisites
- The production studio feature is enabled. For more information, see Enable the production studio feature.
- A domain name for which you want to perform production is added, and a CNAME record is configured for the domain name. For more information, see Add a domain name and Configure a CNAME record in Alibaba Cloud DNS.
- A domain name used for the live streaming of your video source is added to ApsaraVideo Live, and a CNAME record is configured for the domain name. These operations are required only if you select your video source from the ApsaraVideo Live console. For more information, see Add a domain name and Configure a CNAME record in Alibaba Cloud DNS.
- A domain name is added to ApsaraVideo VOD, and a CNAME record is configured for the domain name. These operations are required only if you select your video source from the media asset library. For more information, see Add a domain name for CDN and Configure a CNAME record in Alibaba Cloud DNS.
- You understand the API operations that are related to the production studio feature, as described in Developer guide.
Background information
- The production studio feature provides API operations that you can use to manage the streaming panel, input source, layout, component, episode list and user interface, scene and audio, channels, and standby videos.
- If you want to use a production studio in the console, see Console guide.
Procedure
You can call operations to create and use production studios by performing the following
steps:
- Call the CreateCaster and SetCasterConfig operations to create and configure a production studio in studio mode.
- Call the AddCasterVideoResource operation to add video sources to the production studio.
- Call the AddCasterLayout to configure the layout of the production studio.
- (Optional) Call the AddCasterComponent operation to add components to the production studio.
- Call the StartCaster operation to start the production studio.
- Call the SetCasterSceneConfig operation to configure a layout for a scene of the production studio.
- Call the StopCaster operation to stop the production studio.
API reference
You can call API operations to manage your production studio, such as editing and outputting content and changing configurations of the production studio. For more information about related operations, see List of operations by function.