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",
});
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")
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
})
}
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",
});
});
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());
}
}
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
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 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 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 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 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 String
- The unique name of the resource.
- args 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:
- Adaptive
Dynamic stringStreaming Definition - ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if
drm_switch
isfalse
. - 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. - Drm
Streaming VodInfo Super Player Config Drm Streaming Info - Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if
drm_switch
istrue
. - 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 stringDefinition - 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.
- Resolution
Names List<VodSuper Player Config Resolution Name> - 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
. - Sub
App doubleId - 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 stringPlayer Config Id - ID of the resource.
- Adaptive
Dynamic stringStreaming Definition - ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if
drm_switch
isfalse
. - 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. - Drm
Streaming VodInfo Super Player Config Drm Streaming Info Args - Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if
drm_switch
istrue
. - 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 stringDefinition - 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.
- Resolution
Names []VodSuper Player Config Resolution Name Args - 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
. - Sub
App float64Id - 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 stringPlayer Config Id - ID of the resource.
- adaptive
Dynamic StringStreaming Definition - ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if
drm_switch
isfalse
. - 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. - drm
Streaming VodInfo Super Player Config Drm Streaming Info - Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if
drm_switch
istrue
. - drm
Switch 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
. - image
Sprite StringDefinition - 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.
- resolution
Names List<VodSuper Player Config Resolution Name> - 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
. - sub
App DoubleId - 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 StringPlayer Config Id - ID of the resource.
- adaptive
Dynamic stringStreaming Definition - ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if
drm_switch
isfalse
. - 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. - drm
Streaming VodInfo Super Player Config Drm Streaming Info - Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if
drm_switch
istrue
. - drm
Switch 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
. - image
Sprite stringDefinition - 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.
- resolution
Names VodSuper Player Config Resolution Name[] - 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
. - sub
App numberId - 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 stringPlayer Config Id - ID of the resource.
- adaptive_
dynamic_ strstreaming_ definition - ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if
drm_switch
isfalse
. - 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_ Vodinfo Super Player Config Drm Streaming Info Args - Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if
drm_switch
istrue
. - 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_ strdefinition - 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[VodSuper Player Config Resolution Name Args] - 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_ floatid - 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_ strplayer_ config_ id - ID of the resource.
- adaptive
Dynamic StringStreaming Definition - ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if
drm_switch
isfalse
. - 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. - drm
Streaming Property MapInfo - Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if
drm_switch
istrue
. - drm
Switch 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
. - image
Sprite StringDefinition - 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.
- resolution
Names 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
. - sub
App NumberId - 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 StringPlayer Config Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the VodSuperPlayerConfig resource produces the following output properties:
- Create
Time string - Creation time of template in ISO date format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Last modified time of template in ISO date format.
- Create
Time string - Creation time of template in ISO date format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Last modified time of template in ISO date format.
- create
Time String - Creation time of template in ISO date format.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - Last modified time of template in ISO date format.
- create
Time string - Creation time of template in ISO date format.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time 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.
- create
Time String - Creation time of template in ISO date format.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Adaptive
Dynamic stringStreaming Definition - ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if
drm_switch
isfalse
. - Comment string
- Template description. Length limit: 256 characters.
- Create
Time 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. - Drm
Streaming VodInfo Super Player Config Drm Streaming Info - Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if
drm_switch
istrue
. - 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 stringDefinition - 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.
- Resolution
Names List<VodSuper Player Config Resolution Name> - 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
. - Sub
App doubleId - 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 string - Last modified time of template in ISO date format.
- Vod
Super stringPlayer Config Id - ID of the resource.
- Adaptive
Dynamic stringStreaming Definition - ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if
drm_switch
isfalse
. - Comment string
- Template description. Length limit: 256 characters.
- Create
Time 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. - Drm
Streaming VodInfo Super Player Config Drm Streaming Info Args - Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if
drm_switch
istrue
. - 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 stringDefinition - 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.
- Resolution
Names []VodSuper Player Config Resolution Name Args - 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
. - Sub
App float64Id - 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 string - Last modified time of template in ISO date format.
- Vod
Super stringPlayer Config Id - ID of the resource.
- adaptive
Dynamic StringStreaming Definition - ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if
drm_switch
isfalse
. - comment String
- Template description. Length limit: 256 characters.
- create
Time 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. - drm
Streaming VodInfo Super Player Config Drm Streaming Info - Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if
drm_switch
istrue
. - drm
Switch 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
. - image
Sprite StringDefinition - 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.
- resolution
Names List<VodSuper Player Config Resolution Name> - 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
. - sub
App DoubleId - 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 String - Last modified time of template in ISO date format.
- vod
Super StringPlayer Config Id - ID of the resource.
- adaptive
Dynamic stringStreaming Definition - ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if
drm_switch
isfalse
. - comment string
- Template description. Length limit: 256 characters.
- create
Time 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. - drm
Streaming VodInfo Super Player Config Drm Streaming Info - Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if
drm_switch
istrue
. - drm
Switch 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
. - image
Sprite stringDefinition - 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.
- resolution
Names VodSuper Player Config Resolution Name[] - 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
. - sub
App numberId - 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 string - Last modified time of template in ISO date format.
- vod
Super stringPlayer Config Id - ID of the resource.
- adaptive_
dynamic_ strstreaming_ definition - ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if
drm_switch
isfalse
. - 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_ Vodinfo Super Player Config Drm Streaming Info Args - Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if
drm_switch
istrue
. - 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_ strdefinition - 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[VodSuper Player Config Resolution Name Args] - 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_ floatid - 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_ strplayer_ config_ id - ID of the resource.
- adaptive
Dynamic StringStreaming Definition - ID of the unencrypted adaptive bitrate streaming template that allows output, which is required if
drm_switch
isfalse
. - comment String
- Template description. Length limit: 256 characters.
- create
Time 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. - drm
Streaming Property MapInfo - Content of the DRM-protected adaptive bitrate streaming template that allows output, which is required if
drm_switch
istrue
. - drm
Switch 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
. - image
Sprite StringDefinition - 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.
- resolution
Names 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
. - sub
App NumberId - 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 String - Last modified time of template in ISO date format.
- vod
Super StringPlayer Config Id - ID of the resource.
Supporting Types
VodSuperPlayerConfigDrmStreamingInfo, VodSuperPlayerConfigDrmStreamingInfoArgs
- Simple
Aes stringDefinition - ID of the adaptive dynamic streaming template whose protection type is
SimpleAES
.
- Simple
Aes stringDefinition - ID of the adaptive dynamic streaming template whose protection type is
SimpleAES
.
- simple
Aes StringDefinition - ID of the adaptive dynamic streaming template whose protection type is
SimpleAES
.
- simple
Aes stringDefinition - ID of the adaptive dynamic streaming template whose protection type is
SimpleAES
.
- simple_
aes_ strdefinition - ID of the adaptive dynamic streaming template whose protection type is
SimpleAES
.
- simple
Aes StringDefinition - ID of the adaptive dynamic streaming template whose protection type is
SimpleAES
.
VodSuperPlayerConfigResolutionName, VodSuperPlayerConfigResolutionNameArgs
- Min
Edge doubleLength - Length of video short side in px.
- Name string
- Display name.
- Min
Edge float64Length - Length of video short side in px.
- Name string
- Display name.
- min
Edge DoubleLength - Length of video short side in px.
- name String
- Display name.
- min
Edge numberLength - Length of video short side in px.
- name string
- Display name.
- min_
edge_ floatlength - Length of video short side in px.
- name str
- Display name.
- min
Edge NumberLength - Length of video short side in px.
- name 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
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.