1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. VodSuperPlayerConfig
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.VodSuperPlayerConfig

Explore with Pulumi AI

Provide a resource to create a VOD super player config.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const fooVodAdaptiveDynamicStreamingTemplate = new tencentcloud.VodAdaptiveDynamicStreamingTemplate("fooVodAdaptiveDynamicStreamingTemplate", {
    format: "HLS",
    drmType: "SimpleAES",
    disableHigherVideoBitrate: false,
    disableHigherVideoResolution: false,
    comment: "test",
    streamInfos: [
        {
            video: {
                codec: "libx265",
                fps: 4,
                bitrate: 129,
                resolutionAdaptive: false,
                width: 128,
                height: 128,
                fillType: "stretch",
            },
            audio: {
                codec: "libmp3lame",
                bitrate: 129,
                sampleRate: 44100,
                audioChannel: "dual",
            },
            removeAudio: false,
        },
        {
            video: {
                codec: "libx264",
                fps: 4,
                bitrate: 256,
            },
            audio: {
                codec: "libfdk_aac",
                bitrate: 256,
                sampleRate: 44100,
            },
            removeAudio: true,
        },
    ],
});
const fooVodImageSpriteTemplate = new tencentcloud.VodImageSpriteTemplate("fooVodImageSpriteTemplate", {
    sampleType: "Percent",
    sampleInterval: 10,
    rowCount: 3,
    columnCount: 3,
    comment: "test",
    fillType: "stretch",
    width: 128,
    height: 128,
    resolutionAdaptive: false,
});
const fooVodSuperPlayerConfig = new tencentcloud.VodSuperPlayerConfig("fooVodSuperPlayerConfig", {
    drmSwitch: true,
    drmStreamingInfo: {
        simpleAesDefinition: fooVodAdaptiveDynamicStreamingTemplate.vodAdaptiveDynamicStreamingTemplateId,
    },
    imageSpriteDefinition: fooVodImageSpriteTemplate.vodImageSpriteTemplateId,
    resolutionNames: [
        {
            minEdgeLength: 889,
            name: "test1",
        },
        {
            minEdgeLength: 890,
            name: "test2",
        },
    ],
    domain: "Default",
    scheme: "Default",
    comment: "test",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

foo_vod_adaptive_dynamic_streaming_template = tencentcloud.VodAdaptiveDynamicStreamingTemplate("fooVodAdaptiveDynamicStreamingTemplate",
    format="HLS",
    drm_type="SimpleAES",
    disable_higher_video_bitrate=False,
    disable_higher_video_resolution=False,
    comment="test",
    stream_infos=[
        {
            "video": {
                "codec": "libx265",
                "fps": 4,
                "bitrate": 129,
                "resolution_adaptive": False,
                "width": 128,
                "height": 128,
                "fill_type": "stretch",
            },
            "audio": {
                "codec": "libmp3lame",
                "bitrate": 129,
                "sample_rate": 44100,
                "audio_channel": "dual",
            },
            "remove_audio": False,
        },
        {
            "video": {
                "codec": "libx264",
                "fps": 4,
                "bitrate": 256,
            },
            "audio": {
                "codec": "libfdk_aac",
                "bitrate": 256,
                "sample_rate": 44100,
            },
            "remove_audio": True,
        },
    ])
foo_vod_image_sprite_template = tencentcloud.VodImageSpriteTemplate("fooVodImageSpriteTemplate",
    sample_type="Percent",
    sample_interval=10,
    row_count=3,
    column_count=3,
    comment="test",
    fill_type="stretch",
    width=128,
    height=128,
    resolution_adaptive=False)
foo_vod_super_player_config = tencentcloud.VodSuperPlayerConfig("fooVodSuperPlayerConfig",
    drm_switch=True,
    drm_streaming_info={
        "simple_aes_definition": foo_vod_adaptive_dynamic_streaming_template.vod_adaptive_dynamic_streaming_template_id,
    },
    image_sprite_definition=foo_vod_image_sprite_template.vod_image_sprite_template_id,
    resolution_names=[
        {
            "min_edge_length": 889,
            "name": "test1",
        },
        {
            "min_edge_length": 890,
            "name": "test2",
        },
    ],
    domain="Default",
    scheme="Default",
    comment="test")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooVodAdaptiveDynamicStreamingTemplate, err := tencentcloud.NewVodAdaptiveDynamicStreamingTemplate(ctx, "fooVodAdaptiveDynamicStreamingTemplate", &tencentcloud.VodAdaptiveDynamicStreamingTemplateArgs{
			Format:                       pulumi.String("HLS"),
			DrmType:                      pulumi.String("SimpleAES"),
			DisableHigherVideoBitrate:    pulumi.Bool(false),
			DisableHigherVideoResolution: pulumi.Bool(false),
			Comment:                      pulumi.String("test"),
			StreamInfos: tencentcloud.VodAdaptiveDynamicStreamingTemplateStreamInfoArray{
				&tencentcloud.VodAdaptiveDynamicStreamingTemplateStreamInfoArgs{
					Video: &tencentcloud.VodAdaptiveDynamicStreamingTemplateStreamInfoVideoArgs{
						Codec:              pulumi.String("libx265"),
						Fps:                pulumi.Float64(4),
						Bitrate:            pulumi.Float64(129),
						ResolutionAdaptive: pulumi.Bool(false),
						Width:              pulumi.Float64(128),
						Height:             pulumi.Float64(128),
						FillType:           pulumi.String("stretch"),
					},
					Audio: &tencentcloud.VodAdaptiveDynamicStreamingTemplateStreamInfoAudioArgs{
						Codec:        pulumi.String("libmp3lame"),
						Bitrate:      pulumi.Float64(129),
						SampleRate:   pulumi.Float64(44100),
						AudioChannel: pulumi.String("dual"),
					},
					RemoveAudio: pulumi.Bool(false),
				},
				&tencentcloud.VodAdaptiveDynamicStreamingTemplateStreamInfoArgs{
					Video: &tencentcloud.VodAdaptiveDynamicStreamingTemplateStreamInfoVideoArgs{
						Codec:   pulumi.String("libx264"),
						Fps:     pulumi.Float64(4),
						Bitrate: pulumi.Float64(256),
					},
					Audio: &tencentcloud.VodAdaptiveDynamicStreamingTemplateStreamInfoAudioArgs{
						Codec:      pulumi.String("libfdk_aac"),
						Bitrate:    pulumi.Float64(256),
						SampleRate: pulumi.Float64(44100),
					},
					RemoveAudio: pulumi.Bool(true),
				},
			},
		})
		if err != nil {
			return err
		}
		fooVodImageSpriteTemplate, err := tencentcloud.NewVodImageSpriteTemplate(ctx, "fooVodImageSpriteTemplate", &tencentcloud.VodImageSpriteTemplateArgs{
			SampleType:         pulumi.String("Percent"),
			SampleInterval:     pulumi.Float64(10),
			RowCount:           pulumi.Float64(3),
			ColumnCount:        pulumi.Float64(3),
			Comment:            pulumi.String("test"),
			FillType:           pulumi.String("stretch"),
			Width:              pulumi.Float64(128),
			Height:             pulumi.Float64(128),
			ResolutionAdaptive: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = tencentcloud.NewVodSuperPlayerConfig(ctx, "fooVodSuperPlayerConfig", &tencentcloud.VodSuperPlayerConfigArgs{
			DrmSwitch: pulumi.Bool(true),
			DrmStreamingInfo: &tencentcloud.VodSuperPlayerConfigDrmStreamingInfoArgs{
				SimpleAesDefinition: fooVodAdaptiveDynamicStreamingTemplate.VodAdaptiveDynamicStreamingTemplateId,
			},
			ImageSpriteDefinition: fooVodImageSpriteTemplate.VodImageSpriteTemplateId,
			ResolutionNames: tencentcloud.VodSuperPlayerConfigResolutionNameArray{
				&tencentcloud.VodSuperPlayerConfigResolutionNameArgs{
					MinEdgeLength: pulumi.Float64(889),
					Name:          pulumi.String("test1"),
				},
				&tencentcloud.VodSuperPlayerConfigResolutionNameArgs{
					MinEdgeLength: pulumi.Float64(890),
					Name:          pulumi.String("test2"),
				},
			},
			Domain:  pulumi.String("Default"),
			Scheme:  pulumi.String("Default"),
			Comment: pulumi.String("test"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var fooVodAdaptiveDynamicStreamingTemplate = new Tencentcloud.VodAdaptiveDynamicStreamingTemplate("fooVodAdaptiveDynamicStreamingTemplate", new()
    {
        Format = "HLS",
        DrmType = "SimpleAES",
        DisableHigherVideoBitrate = false,
        DisableHigherVideoResolution = false,
        Comment = "test",
        StreamInfos = new[]
        {
            new Tencentcloud.Inputs.VodAdaptiveDynamicStreamingTemplateStreamInfoArgs
            {
                Video = new Tencentcloud.Inputs.VodAdaptiveDynamicStreamingTemplateStreamInfoVideoArgs
                {
                    Codec = "libx265",
                    Fps = 4,
                    Bitrate = 129,
                    ResolutionAdaptive = false,
                    Width = 128,
                    Height = 128,
                    FillType = "stretch",
                },
                Audio = new Tencentcloud.Inputs.VodAdaptiveDynamicStreamingTemplateStreamInfoAudioArgs
                {
                    Codec = "libmp3lame",
                    Bitrate = 129,
                    SampleRate = 44100,
                    AudioChannel = "dual",
                },
                RemoveAudio = false,
            },
            new Tencentcloud.Inputs.VodAdaptiveDynamicStreamingTemplateStreamInfoArgs
            {
                Video = new Tencentcloud.Inputs.VodAdaptiveDynamicStreamingTemplateStreamInfoVideoArgs
                {
                    Codec = "libx264",
                    Fps = 4,
                    Bitrate = 256,
                },
                Audio = new Tencentcloud.Inputs.VodAdaptiveDynamicStreamingTemplateStreamInfoAudioArgs
                {
                    Codec = "libfdk_aac",
                    Bitrate = 256,
                    SampleRate = 44100,
                },
                RemoveAudio = true,
            },
        },
    });

    var fooVodImageSpriteTemplate = new Tencentcloud.VodImageSpriteTemplate("fooVodImageSpriteTemplate", new()
    {
        SampleType = "Percent",
        SampleInterval = 10,
        RowCount = 3,
        ColumnCount = 3,
        Comment = "test",
        FillType = "stretch",
        Width = 128,
        Height = 128,
        ResolutionAdaptive = false,
    });

    var fooVodSuperPlayerConfig = new Tencentcloud.VodSuperPlayerConfig("fooVodSuperPlayerConfig", new()
    {
        DrmSwitch = true,
        DrmStreamingInfo = new Tencentcloud.Inputs.VodSuperPlayerConfigDrmStreamingInfoArgs
        {
            SimpleAesDefinition = fooVodAdaptiveDynamicStreamingTemplate.VodAdaptiveDynamicStreamingTemplateId,
        },
        ImageSpriteDefinition = fooVodImageSpriteTemplate.VodImageSpriteTemplateId,
        ResolutionNames = new[]
        {
            new Tencentcloud.Inputs.VodSuperPlayerConfigResolutionNameArgs
            {
                MinEdgeLength = 889,
                Name = "test1",
            },
            new Tencentcloud.Inputs.VodSuperPlayerConfigResolutionNameArgs
            {
                MinEdgeLength = 890,
                Name = "test2",
            },
        },
        Domain = "Default",
        Scheme = "Default",
        Comment = "test",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.VodAdaptiveDynamicStreamingTemplate;
import com.pulumi.tencentcloud.VodAdaptiveDynamicStreamingTemplateArgs;
import com.pulumi.tencentcloud.inputs.VodAdaptiveDynamicStreamingTemplateStreamInfoArgs;
import com.pulumi.tencentcloud.inputs.VodAdaptiveDynamicStreamingTemplateStreamInfoVideoArgs;
import com.pulumi.tencentcloud.inputs.VodAdaptiveDynamicStreamingTemplateStreamInfoAudioArgs;
import com.pulumi.tencentcloud.VodImageSpriteTemplate;
import com.pulumi.tencentcloud.VodImageSpriteTemplateArgs;
import com.pulumi.tencentcloud.VodSuperPlayerConfig;
import com.pulumi.tencentcloud.VodSuperPlayerConfigArgs;
import com.pulumi.tencentcloud.inputs.VodSuperPlayerConfigDrmStreamingInfoArgs;
import com.pulumi.tencentcloud.inputs.VodSuperPlayerConfigResolutionNameArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var fooVodAdaptiveDynamicStreamingTemplate = new VodAdaptiveDynamicStreamingTemplate("fooVodAdaptiveDynamicStreamingTemplate", VodAdaptiveDynamicStreamingTemplateArgs.builder()
            .format("HLS")
            .drmType("SimpleAES")
            .disableHigherVideoBitrate(false)
            .disableHigherVideoResolution(false)
            .comment("test")
            .streamInfos(            
                VodAdaptiveDynamicStreamingTemplateStreamInfoArgs.builder()
                    .video(VodAdaptiveDynamicStreamingTemplateStreamInfoVideoArgs.builder()
                        .codec("libx265")
                        .fps(4)
                        .bitrate(129)
                        .resolutionAdaptive(false)
                        .width(128)
                        .height(128)
                        .fillType("stretch")
                        .build())
                    .audio(VodAdaptiveDynamicStreamingTemplateStreamInfoAudioArgs.builder()
                        .codec("libmp3lame")
                        .bitrate(129)
                        .sampleRate(44100)
                        .audioChannel("dual")
                        .build())
                    .removeAudio(false)
                    .build(),
                VodAdaptiveDynamicStreamingTemplateStreamInfoArgs.builder()
                    .video(VodAdaptiveDynamicStreamingTemplateStreamInfoVideoArgs.builder()
                        .codec("libx264")
                        .fps(4)
                        .bitrate(256)
                        .build())
                    .audio(VodAdaptiveDynamicStreamingTemplateStreamInfoAudioArgs.builder()
                        .codec("libfdk_aac")
                        .bitrate(256)
                        .sampleRate(44100)
                        .build())
                    .removeAudio(true)
                    .build())
            .build());

        var fooVodImageSpriteTemplate = new VodImageSpriteTemplate("fooVodImageSpriteTemplate", VodImageSpriteTemplateArgs.builder()
            .sampleType("Percent")
            .sampleInterval(10)
            .rowCount(3)
            .columnCount(3)
            .comment("test")
            .fillType("stretch")
            .width(128)
            .height(128)
            .resolutionAdaptive(false)
            .build());

        var fooVodSuperPlayerConfig = new VodSuperPlayerConfig("fooVodSuperPlayerConfig", VodSuperPlayerConfigArgs.builder()
            .drmSwitch(true)
            .drmStreamingInfo(VodSuperPlayerConfigDrmStreamingInfoArgs.builder()
                .simpleAesDefinition(fooVodAdaptiveDynamicStreamingTemplate.vodAdaptiveDynamicStreamingTemplateId())
                .build())
            .imageSpriteDefinition(fooVodImageSpriteTemplate.vodImageSpriteTemplateId())
            .resolutionNames(            
                VodSuperPlayerConfigResolutionNameArgs.builder()
                    .minEdgeLength(889)
                    .name("test1")
                    .build(),
                VodSuperPlayerConfigResolutionNameArgs.builder()
                    .minEdgeLength(890)
                    .name("test2")
                    .build())
            .domain("Default")
            .scheme("Default")
            .comment("test")
            .build());

    }
}
Copy
resources:
  fooVodAdaptiveDynamicStreamingTemplate:
    type: tencentcloud:VodAdaptiveDynamicStreamingTemplate
    properties:
      format: HLS
      drmType: SimpleAES
      disableHigherVideoBitrate: false
      disableHigherVideoResolution: false
      comment: test
      streamInfos:
        - video:
            codec: libx265
            fps: 4
            bitrate: 129
            resolutionAdaptive: false
            width: 128
            height: 128
            fillType: stretch
          audio:
            codec: libmp3lame
            bitrate: 129
            sampleRate: 44100
            audioChannel: dual
          removeAudio: false
        - video:
            codec: libx264
            fps: 4
            bitrate: 256
          audio:
            codec: libfdk_aac
            bitrate: 256
            sampleRate: 44100
          removeAudio: true
  fooVodImageSpriteTemplate:
    type: tencentcloud:VodImageSpriteTemplate
    properties:
      sampleType: Percent
      sampleInterval: 10
      rowCount: 3
      columnCount: 3
      comment: test
      fillType: stretch
      width: 128
      height: 128
      resolutionAdaptive: false
  fooVodSuperPlayerConfig:
    type: tencentcloud:VodSuperPlayerConfig
    properties:
      drmSwitch: true
      drmStreamingInfo:
        simpleAesDefinition: ${fooVodAdaptiveDynamicStreamingTemplate.vodAdaptiveDynamicStreamingTemplateId}
      imageSpriteDefinition: ${fooVodImageSpriteTemplate.vodImageSpriteTemplateId}
      resolutionNames:
        - minEdgeLength: 889
          name: test1
        - minEdgeLength: 890
          name: test2
      domain: Default
      scheme: Default
      comment: test
Copy

Create VodSuperPlayerConfig Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new VodSuperPlayerConfig(name: string, args?: VodSuperPlayerConfigArgs, opts?: CustomResourceOptions);
@overload
def VodSuperPlayerConfig(resource_name: str,
                         args: Optional[VodSuperPlayerConfigArgs] = None,
                         opts: Optional[ResourceOptions] = None)

@overload
def VodSuperPlayerConfig(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         adaptive_dynamic_streaming_definition: Optional[str] = None,
                         comment: Optional[str] = None,
                         domain: Optional[str] = None,
                         drm_streaming_info: Optional[VodSuperPlayerConfigDrmStreamingInfoArgs] = None,
                         drm_switch: Optional[bool] = None,
                         image_sprite_definition: Optional[str] = None,
                         name: Optional[str] = None,
                         resolution_names: Optional[Sequence[VodSuperPlayerConfigResolutionNameArgs]] = None,
                         scheme: Optional[str] = None,
                         sub_app_id: Optional[float] = None,
                         vod_super_player_config_id: Optional[str] = None)
func NewVodSuperPlayerConfig(ctx *Context, name string, args *VodSuperPlayerConfigArgs, opts ...ResourceOption) (*VodSuperPlayerConfig, error)
public VodSuperPlayerConfig(string name, VodSuperPlayerConfigArgs? args = null, CustomResourceOptions? opts = null)
public VodSuperPlayerConfig(String name, VodSuperPlayerConfigArgs args)
public VodSuperPlayerConfig(String name, VodSuperPlayerConfigArgs args, CustomResourceOptions options)
type: tencentcloud:VodSuperPlayerConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args VodSuperPlayerConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args VodSuperPlayerConfigArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args VodSuperPlayerConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args VodSuperPlayerConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. VodSuperPlayerConfigArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

VodSuperPlayerConfig Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The VodSuperPlayerConfig resource accepts the following input properties:

AdaptiveDynamicStreamingDefinition string
ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if drm_switch is false.
Comment string
Template description. Length limit: 256 characters.
Domain string
Domain name used for playback. If it is left empty or set to Default, the domain name configured in Default Distribution Configuration will be used. Default by default.
DrmStreamingInfo VodSuperPlayerConfigDrmStreamingInfo
Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if drm_switch is true.
DrmSwitch bool
Switch of DRM-protected adaptive bitstream playback: true: enabled, indicating to play back only output adaptive bitstreams protected by DRM; false: disabled, indicating to play back unencrypted output adaptive bitstreams. Default value: false.
ImageSpriteDefinition string
ID of the image sprite template that allows output.
Name string
Player configuration name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
ResolutionNames List<VodSuperPlayerConfigResolutionName>
Display name of player for substreams with different resolutions. If this parameter is left empty or an empty array, the default configuration will be used: min_edge_length: 240, name: LD; min_edge_length: 480, name: SD; min_edge_length: 720, name: HD; min_edge_length: 1080, name: FHD; min_edge_length: 1440, name: 2K; min_edge_length: 2160, name: 4K; min_edge_length: 4320, name: 8K.
Scheme string
Scheme used for playback. If it is left empty or set to Default, the scheme configured in Default Distribution Configuration will be used. Other valid values: HTTP; HTTPS.
SubAppId double
Subapplication ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
VodSuperPlayerConfigId string
ID of the resource.
AdaptiveDynamicStreamingDefinition string
ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if drm_switch is false.
Comment string
Template description. Length limit: 256 characters.
Domain string
Domain name used for playback. If it is left empty or set to Default, the domain name configured in Default Distribution Configuration will be used. Default by default.
DrmStreamingInfo VodSuperPlayerConfigDrmStreamingInfoArgs
Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if drm_switch is true.
DrmSwitch bool
Switch of DRM-protected adaptive bitstream playback: true: enabled, indicating to play back only output adaptive bitstreams protected by DRM; false: disabled, indicating to play back unencrypted output adaptive bitstreams. Default value: false.
ImageSpriteDefinition string
ID of the image sprite template that allows output.
Name string
Player configuration name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
ResolutionNames []VodSuperPlayerConfigResolutionNameArgs
Display name of player for substreams with different resolutions. If this parameter is left empty or an empty array, the default configuration will be used: min_edge_length: 240, name: LD; min_edge_length: 480, name: SD; min_edge_length: 720, name: HD; min_edge_length: 1080, name: FHD; min_edge_length: 1440, name: 2K; min_edge_length: 2160, name: 4K; min_edge_length: 4320, name: 8K.
Scheme string
Scheme used for playback. If it is left empty or set to Default, the scheme configured in Default Distribution Configuration will be used. Other valid values: HTTP; HTTPS.
SubAppId float64
Subapplication ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
VodSuperPlayerConfigId string
ID of the resource.
adaptiveDynamicStreamingDefinition String
ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if drm_switch is false.
comment String
Template description. Length limit: 256 characters.
domain String
Domain name used for playback. If it is left empty or set to Default, the domain name configured in Default Distribution Configuration will be used. Default by default.
drmStreamingInfo VodSuperPlayerConfigDrmStreamingInfo
Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if drm_switch is true.
drmSwitch Boolean
Switch of DRM-protected adaptive bitstream playback: true: enabled, indicating to play back only output adaptive bitstreams protected by DRM; false: disabled, indicating to play back unencrypted output adaptive bitstreams. Default value: false.
imageSpriteDefinition String
ID of the image sprite template that allows output.
name String
Player configuration name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
resolutionNames List<VodSuperPlayerConfigResolutionName>
Display name of player for substreams with different resolutions. If this parameter is left empty or an empty array, the default configuration will be used: min_edge_length: 240, name: LD; min_edge_length: 480, name: SD; min_edge_length: 720, name: HD; min_edge_length: 1080, name: FHD; min_edge_length: 1440, name: 2K; min_edge_length: 2160, name: 4K; min_edge_length: 4320, name: 8K.
scheme String
Scheme used for playback. If it is left empty or set to Default, the scheme configured in Default Distribution Configuration will be used. Other valid values: HTTP; HTTPS.
subAppId Double
Subapplication ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
vodSuperPlayerConfigId String
ID of the resource.
adaptiveDynamicStreamingDefinition string
ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if drm_switch is false.
comment string
Template description. Length limit: 256 characters.
domain string
Domain name used for playback. If it is left empty or set to Default, the domain name configured in Default Distribution Configuration will be used. Default by default.
drmStreamingInfo VodSuperPlayerConfigDrmStreamingInfo
Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if drm_switch is true.
drmSwitch boolean
Switch of DRM-protected adaptive bitstream playback: true: enabled, indicating to play back only output adaptive bitstreams protected by DRM; false: disabled, indicating to play back unencrypted output adaptive bitstreams. Default value: false.
imageSpriteDefinition string
ID of the image sprite template that allows output.
name string
Player configuration name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
resolutionNames VodSuperPlayerConfigResolutionName[]
Display name of player for substreams with different resolutions. If this parameter is left empty or an empty array, the default configuration will be used: min_edge_length: 240, name: LD; min_edge_length: 480, name: SD; min_edge_length: 720, name: HD; min_edge_length: 1080, name: FHD; min_edge_length: 1440, name: 2K; min_edge_length: 2160, name: 4K; min_edge_length: 4320, name: 8K.
scheme string
Scheme used for playback. If it is left empty or set to Default, the scheme configured in Default Distribution Configuration will be used. Other valid values: HTTP; HTTPS.
subAppId number
Subapplication ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
vodSuperPlayerConfigId string
ID of the resource.
adaptive_dynamic_streaming_definition str
ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if drm_switch is false.
comment str
Template description. Length limit: 256 characters.
domain str
Domain name used for playback. If it is left empty or set to Default, the domain name configured in Default Distribution Configuration will be used. Default by default.
drm_streaming_info VodSuperPlayerConfigDrmStreamingInfoArgs
Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if drm_switch is true.
drm_switch bool
Switch of DRM-protected adaptive bitstream playback: true: enabled, indicating to play back only output adaptive bitstreams protected by DRM; false: disabled, indicating to play back unencrypted output adaptive bitstreams. Default value: false.
image_sprite_definition str
ID of the image sprite template that allows output.
name str
Player configuration name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
resolution_names Sequence[VodSuperPlayerConfigResolutionNameArgs]
Display name of player for substreams with different resolutions. If this parameter is left empty or an empty array, the default configuration will be used: min_edge_length: 240, name: LD; min_edge_length: 480, name: SD; min_edge_length: 720, name: HD; min_edge_length: 1080, name: FHD; min_edge_length: 1440, name: 2K; min_edge_length: 2160, name: 4K; min_edge_length: 4320, name: 8K.
scheme str
Scheme used for playback. If it is left empty or set to Default, the scheme configured in Default Distribution Configuration will be used. Other valid values: HTTP; HTTPS.
sub_app_id float
Subapplication ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
vod_super_player_config_id str
ID of the resource.
adaptiveDynamicStreamingDefinition String
ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if drm_switch is false.
comment String
Template description. Length limit: 256 characters.
domain String
Domain name used for playback. If it is left empty or set to Default, the domain name configured in Default Distribution Configuration will be used. Default by default.
drmStreamingInfo Property Map
Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if drm_switch is true.
drmSwitch Boolean
Switch of DRM-protected adaptive bitstream playback: true: enabled, indicating to play back only output adaptive bitstreams protected by DRM; false: disabled, indicating to play back unencrypted output adaptive bitstreams. Default value: false.
imageSpriteDefinition String
ID of the image sprite template that allows output.
name String
Player configuration name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
resolutionNames List<Property Map>
Display name of player for substreams with different resolutions. If this parameter is left empty or an empty array, the default configuration will be used: min_edge_length: 240, name: LD; min_edge_length: 480, name: SD; min_edge_length: 720, name: HD; min_edge_length: 1080, name: FHD; min_edge_length: 1440, name: 2K; min_edge_length: 2160, name: 4K; min_edge_length: 4320, name: 8K.
scheme String
Scheme used for playback. If it is left empty or set to Default, the scheme configured in Default Distribution Configuration will be used. Other valid values: HTTP; HTTPS.
subAppId Number
Subapplication ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
vodSuperPlayerConfigId String
ID of the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the VodSuperPlayerConfig resource produces the following output properties:

CreateTime string
Creation time of template in ISO date format.
Id string
The provider-assigned unique ID for this managed resource.
UpdateTime string
Last modified time of template in ISO date format.
CreateTime string
Creation time of template in ISO date format.
Id string
The provider-assigned unique ID for this managed resource.
UpdateTime string
Last modified time of template in ISO date format.
createTime String
Creation time of template in ISO date format.
id String
The provider-assigned unique ID for this managed resource.
updateTime String
Last modified time of template in ISO date format.
createTime string
Creation time of template in ISO date format.
id string
The provider-assigned unique ID for this managed resource.
updateTime string
Last modified time of template in ISO date format.
create_time str
Creation time of template in ISO date format.
id str
The provider-assigned unique ID for this managed resource.
update_time str
Last modified time of template in ISO date format.
createTime String
Creation time of template in ISO date format.
id String
The provider-assigned unique ID for this managed resource.
updateTime String
Last modified time of template in ISO date format.

Look up Existing VodSuperPlayerConfig Resource

Get an existing VodSuperPlayerConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: VodSuperPlayerConfigState, opts?: CustomResourceOptions): VodSuperPlayerConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adaptive_dynamic_streaming_definition: Optional[str] = None,
        comment: Optional[str] = None,
        create_time: Optional[str] = None,
        domain: Optional[str] = None,
        drm_streaming_info: Optional[VodSuperPlayerConfigDrmStreamingInfoArgs] = None,
        drm_switch: Optional[bool] = None,
        image_sprite_definition: Optional[str] = None,
        name: Optional[str] = None,
        resolution_names: Optional[Sequence[VodSuperPlayerConfigResolutionNameArgs]] = None,
        scheme: Optional[str] = None,
        sub_app_id: Optional[float] = None,
        update_time: Optional[str] = None,
        vod_super_player_config_id: Optional[str] = None) -> VodSuperPlayerConfig
func GetVodSuperPlayerConfig(ctx *Context, name string, id IDInput, state *VodSuperPlayerConfigState, opts ...ResourceOption) (*VodSuperPlayerConfig, error)
public static VodSuperPlayerConfig Get(string name, Input<string> id, VodSuperPlayerConfigState? state, CustomResourceOptions? opts = null)
public static VodSuperPlayerConfig get(String name, Output<String> id, VodSuperPlayerConfigState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:VodSuperPlayerConfig    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AdaptiveDynamicStreamingDefinition string
ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if drm_switch is false.
Comment string
Template description. Length limit: 256 characters.
CreateTime string
Creation time of template in ISO date format.
Domain string
Domain name used for playback. If it is left empty or set to Default, the domain name configured in Default Distribution Configuration will be used. Default by default.
DrmStreamingInfo VodSuperPlayerConfigDrmStreamingInfo
Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if drm_switch is true.
DrmSwitch bool
Switch of DRM-protected adaptive bitstream playback: true: enabled, indicating to play back only output adaptive bitstreams protected by DRM; false: disabled, indicating to play back unencrypted output adaptive bitstreams. Default value: false.
ImageSpriteDefinition string
ID of the image sprite template that allows output.
Name string
Player configuration name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
ResolutionNames List<VodSuperPlayerConfigResolutionName>
Display name of player for substreams with different resolutions. If this parameter is left empty or an empty array, the default configuration will be used: min_edge_length: 240, name: LD; min_edge_length: 480, name: SD; min_edge_length: 720, name: HD; min_edge_length: 1080, name: FHD; min_edge_length: 1440, name: 2K; min_edge_length: 2160, name: 4K; min_edge_length: 4320, name: 8K.
Scheme string
Scheme used for playback. If it is left empty or set to Default, the scheme configured in Default Distribution Configuration will be used. Other valid values: HTTP; HTTPS.
SubAppId double
Subapplication ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
UpdateTime string
Last modified time of template in ISO date format.
VodSuperPlayerConfigId string
ID of the resource.
AdaptiveDynamicStreamingDefinition string
ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if drm_switch is false.
Comment string
Template description. Length limit: 256 characters.
CreateTime string
Creation time of template in ISO date format.
Domain string
Domain name used for playback. If it is left empty or set to Default, the domain name configured in Default Distribution Configuration will be used. Default by default.
DrmStreamingInfo VodSuperPlayerConfigDrmStreamingInfoArgs
Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if drm_switch is true.
DrmSwitch bool
Switch of DRM-protected adaptive bitstream playback: true: enabled, indicating to play back only output adaptive bitstreams protected by DRM; false: disabled, indicating to play back unencrypted output adaptive bitstreams. Default value: false.
ImageSpriteDefinition string
ID of the image sprite template that allows output.
Name string
Player configuration name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
ResolutionNames []VodSuperPlayerConfigResolutionNameArgs
Display name of player for substreams with different resolutions. If this parameter is left empty or an empty array, the default configuration will be used: min_edge_length: 240, name: LD; min_edge_length: 480, name: SD; min_edge_length: 720, name: HD; min_edge_length: 1080, name: FHD; min_edge_length: 1440, name: 2K; min_edge_length: 2160, name: 4K; min_edge_length: 4320, name: 8K.
Scheme string
Scheme used for playback. If it is left empty or set to Default, the scheme configured in Default Distribution Configuration will be used. Other valid values: HTTP; HTTPS.
SubAppId float64
Subapplication ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
UpdateTime string
Last modified time of template in ISO date format.
VodSuperPlayerConfigId string
ID of the resource.
adaptiveDynamicStreamingDefinition String
ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if drm_switch is false.
comment String
Template description. Length limit: 256 characters.
createTime String
Creation time of template in ISO date format.
domain String
Domain name used for playback. If it is left empty or set to Default, the domain name configured in Default Distribution Configuration will be used. Default by default.
drmStreamingInfo VodSuperPlayerConfigDrmStreamingInfo
Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if drm_switch is true.
drmSwitch Boolean
Switch of DRM-protected adaptive bitstream playback: true: enabled, indicating to play back only output adaptive bitstreams protected by DRM; false: disabled, indicating to play back unencrypted output adaptive bitstreams. Default value: false.
imageSpriteDefinition String
ID of the image sprite template that allows output.
name String
Player configuration name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
resolutionNames List<VodSuperPlayerConfigResolutionName>
Display name of player for substreams with different resolutions. If this parameter is left empty or an empty array, the default configuration will be used: min_edge_length: 240, name: LD; min_edge_length: 480, name: SD; min_edge_length: 720, name: HD; min_edge_length: 1080, name: FHD; min_edge_length: 1440, name: 2K; min_edge_length: 2160, name: 4K; min_edge_length: 4320, name: 8K.
scheme String
Scheme used for playback. If it is left empty or set to Default, the scheme configured in Default Distribution Configuration will be used. Other valid values: HTTP; HTTPS.
subAppId Double
Subapplication ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
updateTime String
Last modified time of template in ISO date format.
vodSuperPlayerConfigId String
ID of the resource.
adaptiveDynamicStreamingDefinition string
ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if drm_switch is false.
comment string
Template description. Length limit: 256 characters.
createTime string
Creation time of template in ISO date format.
domain string
Domain name used for playback. If it is left empty or set to Default, the domain name configured in Default Distribution Configuration will be used. Default by default.
drmStreamingInfo VodSuperPlayerConfigDrmStreamingInfo
Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if drm_switch is true.
drmSwitch boolean
Switch of DRM-protected adaptive bitstream playback: true: enabled, indicating to play back only output adaptive bitstreams protected by DRM; false: disabled, indicating to play back unencrypted output adaptive bitstreams. Default value: false.
imageSpriteDefinition string
ID of the image sprite template that allows output.
name string
Player configuration name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
resolutionNames VodSuperPlayerConfigResolutionName[]
Display name of player for substreams with different resolutions. If this parameter is left empty or an empty array, the default configuration will be used: min_edge_length: 240, name: LD; min_edge_length: 480, name: SD; min_edge_length: 720, name: HD; min_edge_length: 1080, name: FHD; min_edge_length: 1440, name: 2K; min_edge_length: 2160, name: 4K; min_edge_length: 4320, name: 8K.
scheme string
Scheme used for playback. If it is left empty or set to Default, the scheme configured in Default Distribution Configuration will be used. Other valid values: HTTP; HTTPS.
subAppId number
Subapplication ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
updateTime string
Last modified time of template in ISO date format.
vodSuperPlayerConfigId string
ID of the resource.
adaptive_dynamic_streaming_definition str
ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if drm_switch is false.
comment str
Template description. Length limit: 256 characters.
create_time str
Creation time of template in ISO date format.
domain str
Domain name used for playback. If it is left empty or set to Default, the domain name configured in Default Distribution Configuration will be used. Default by default.
drm_streaming_info VodSuperPlayerConfigDrmStreamingInfoArgs
Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if drm_switch is true.
drm_switch bool
Switch of DRM-protected adaptive bitstream playback: true: enabled, indicating to play back only output adaptive bitstreams protected by DRM; false: disabled, indicating to play back unencrypted output adaptive bitstreams. Default value: false.
image_sprite_definition str
ID of the image sprite template that allows output.
name str
Player configuration name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
resolution_names Sequence[VodSuperPlayerConfigResolutionNameArgs]
Display name of player for substreams with different resolutions. If this parameter is left empty or an empty array, the default configuration will be used: min_edge_length: 240, name: LD; min_edge_length: 480, name: SD; min_edge_length: 720, name: HD; min_edge_length: 1080, name: FHD; min_edge_length: 1440, name: 2K; min_edge_length: 2160, name: 4K; min_edge_length: 4320, name: 8K.
scheme str
Scheme used for playback. If it is left empty or set to Default, the scheme configured in Default Distribution Configuration will be used. Other valid values: HTTP; HTTPS.
sub_app_id float
Subapplication ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
update_time str
Last modified time of template in ISO date format.
vod_super_player_config_id str
ID of the resource.
adaptiveDynamicStreamingDefinition String
ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if drm_switch is false.
comment String
Template description. Length limit: 256 characters.
createTime String
Creation time of template in ISO date format.
domain String
Domain name used for playback. If it is left empty or set to Default, the domain name configured in Default Distribution Configuration will be used. Default by default.
drmStreamingInfo Property Map
Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if drm_switch is true.
drmSwitch Boolean
Switch of DRM-protected adaptive bitstream playback: true: enabled, indicating to play back only output adaptive bitstreams protected by DRM; false: disabled, indicating to play back unencrypted output adaptive bitstreams. Default value: false.
imageSpriteDefinition String
ID of the image sprite template that allows output.
name String
Player configuration name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
resolutionNames List<Property Map>
Display name of player for substreams with different resolutions. If this parameter is left empty or an empty array, the default configuration will be used: min_edge_length: 240, name: LD; min_edge_length: 480, name: SD; min_edge_length: 720, name: HD; min_edge_length: 1080, name: FHD; min_edge_length: 1440, name: 2K; min_edge_length: 2160, name: 4K; min_edge_length: 4320, name: 8K.
scheme String
Scheme used for playback. If it is left empty or set to Default, the scheme configured in Default Distribution Configuration will be used. Other valid values: HTTP; HTTPS.
subAppId Number
Subapplication ID in VOD. If you need to access a resource in a subapplication, enter the subapplication ID in this field; otherwise, leave it empty.
updateTime String
Last modified time of template in ISO date format.
vodSuperPlayerConfigId String
ID of the resource.

Supporting Types

VodSuperPlayerConfigDrmStreamingInfo
, VodSuperPlayerConfigDrmStreamingInfoArgs

SimpleAesDefinition string
ID of the adaptive dynamic streaming template whose protection type is SimpleAES.
SimpleAesDefinition string
ID of the adaptive dynamic streaming template whose protection type is SimpleAES.
simpleAesDefinition String
ID of the adaptive dynamic streaming template whose protection type is SimpleAES.
simpleAesDefinition string
ID of the adaptive dynamic streaming template whose protection type is SimpleAES.
simple_aes_definition str
ID of the adaptive dynamic streaming template whose protection type is SimpleAES.
simpleAesDefinition String
ID of the adaptive dynamic streaming template whose protection type is SimpleAES.

VodSuperPlayerConfigResolutionName
, VodSuperPlayerConfigResolutionNameArgs

MinEdgeLength This property is required. double
Length of video short side in px.
Name This property is required. string
Display name.
MinEdgeLength This property is required. float64
Length of video short side in px.
Name This property is required. string
Display name.
minEdgeLength This property is required. Double
Length of video short side in px.
name This property is required. String
Display name.
minEdgeLength This property is required. number
Length of video short side in px.
name This property is required. string
Display name.
min_edge_length This property is required. float
Length of video short side in px.
name This property is required. str
Display name.
minEdgeLength This property is required. Number
Length of video short side in px.
name This property is required. String
Display name.

Import

VOD super player config can be imported using the name, e.g.

$ pulumi import tencentcloud:index/vodSuperPlayerConfig:VodSuperPlayerConfig foo tf-super-player
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.