This topic describes the procedure for calling API operations to use a virtual 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 add, delete, query, and edit virtual studios.
- If you want to use a virtual studio in the console, see Console guide.
Procedure
Use the virtual studio feature by performing the following steps:
- Call the CreateCaster and SetCasterConfig operations to create and configure a production studio in virtual studio mode.
- Call the AddCasterVideoResource operation to add video sources to the virtual studio.
- (Optional) Call the AddCasterComponent operation to add components to the virtual studio.
- Call the StartCaster operation to start the virtual studio.
- Call the SetCasterSceneConfig operation to configure a layout for a scene of the virtual studio.
- Call the StopCaster operation to stop the virtual 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.