You can call the AddCasterLayout or ModifyCasterLayout API operation to create or modify a layout. When you call the API operations, you can set parameters to specify a normalized width and height for each video layer. This way, you can scale video layers.
- API operations:
- VideoLayers: the configurations of the video layers that are referenced in the layout, including the reference origin of the coordinates, normalized width and height of the video layers, and positions of the video layers. Make sure that the video layers specified in this parameter are consistent with and in the same order as those specified in the BlendList parameter.
- BlendList: the location IDs of the video layers that are referenced in the layout. The video layers in the layout are overlaid from bottom to top in the order that is specified by this parameter.