Skip to content

Commit 624cc69

Browse files
committed
[fix example]
1. fix example 2. fix description
1 parent f37f089 commit 624cc69

14 files changed

+120
-65
lines changed

examples/tencentcloud-vod/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ resource "tencentcloud_vod_adaptive_dynamic_streaming_template" "foo" {
3939
bitrate = 256
4040
sample_rate = 44100
4141
}
42-
remove_audio = 1
42+
remove_audio = true
4343
}
4444
}
4545

tencentcloud/data_source_tc_vod_adaptive_dynamic_streaming_templates.go

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,21 @@ resource "tencentcloud_vod_adaptive_dynamic_streaming_template" "foo" {
1414
1515
stream_info {
1616
video {
17-
codec = "libx264"
18-
fps = 3
19-
bitrate = 128
17+
codec = "libx265"
18+
fps = 4
19+
bitrate = 129
20+
resolution_adaptive = false
21+
width = 128
22+
height = 128
23+
fill_type = "stretch"
2024
}
2125
audio {
22-
codec = "libfdk_aac"
23-
bitrate = 128
24-
sample_rate = 32000
26+
codec = "libmp3lame"
27+
bitrate = 129
28+
sample_rate = 44100
29+
audio_channel = "dual"
2530
}
26-
remove_audio = true
31+
remove_audio = false
2732
}
2833
stream_info {
2934
video {

tencentcloud/data_source_tc_vod_snapshot_by_time_offset_templates.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Example Usage
66
```hcl
77
resource "tencentcloud_vod_snapshot_by_time_offset_template" "foo" {
88
name = "tf-snapshot"
9-
width = 128
9+
width = 130
1010
height = 128
1111
resolution_adaptive = false
1212
format = "png"

tencentcloud/data_source_tc_vod_super_player_configs.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@ Use this data source to query detailed information of VOD super player configs.
44
Example Usage
55
66
```hcl
7+
resource "tencentcloud_vod_super_player_config" "foo" {
8+
name = "tf-super-player"
9+
drm_switch = true
10+
drm_streaming_info {
11+
simple_aes_definition = tencentcloud_vod_adaptive_dynamic_streaming_template.foo.id
12+
}
13+
image_sprite_definition = tencentcloud_vod_image_sprite_template.foo.id
14+
resolution_names {
15+
min_edge_length = 889
16+
name = "test1"
17+
}
18+
resolution_names {
19+
min_edge_length = 890
20+
name = "test2"
21+
}
22+
domain = "Default"
23+
scheme = "Default"
24+
comment = "test"
25+
}
26+
727
data "tencentcloud_vod_super_player_configs" "foo" {
828
type = "Custom"
929
name = "tf-super-player"

tencentcloud/resource_tc_vod_adaptive_dynamic_streaming_template.go

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,21 @@ resource "tencentcloud_vod_adaptive_dynamic_streaming_template" "foo" {
1414
1515
stream_info {
1616
video {
17-
codec = "libx264"
18-
fps = 3
19-
bitrate = 128
17+
codec = "libx265"
18+
fps = 4
19+
bitrate = 129
20+
resolution_adaptive = false
21+
width = 128
22+
height = 128
23+
fill_type = "stretch"
2024
}
2125
audio {
22-
codec = "libfdk_aac"
23-
bitrate = 128
24-
sample_rate = 32000
26+
codec = "libmp3lame"
27+
bitrate = 129
28+
sample_rate = 44100
29+
audio_channel = "dual"
2530
}
26-
remove_audio = true
31+
remove_audio = false
2732
}
2833
stream_info {
2934
video {
@@ -43,7 +48,7 @@ resource "tencentcloud_vod_adaptive_dynamic_streaming_template" "foo" {
4348
4449
Import
4550
46-
Vod adaptive dynamic streaming template can be imported using the id, e.g.
51+
VOD adaptive dynamic streaming template can be imported using the id, e.g.
4752
4853
```
4954
$ terraform import tencentcloud_vod_adaptive_dynamic_streaming_template.foo 169141

tencentcloud/resource_tc_vod_image_sprite_template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ resource "tencentcloud_vod_image_sprite_template" "foo" {
2020
2121
Import
2222
23-
Vod image sprite template can be imported using the id, e.g.
23+
VOD image sprite template can be imported using the id, e.g.
2424
2525
```
2626
$ terraform import tencentcloud_vod_image_sprite_template.foo 51156

tencentcloud/resource_tc_vod_procedure_template.go

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,21 @@ resource "tencentcloud_vod_adaptive_dynamic_streaming_template" "foo" {
1414
1515
stream_info {
1616
video {
17-
codec = "libx264"
18-
fps = 3
19-
bitrate = 128
17+
codec = "libx265"
18+
fps = 4
19+
bitrate = 129
20+
resolution_adaptive = false
21+
width = 128
22+
height = 128
23+
fill_type = "stretch"
2024
}
2125
audio {
22-
codec = "libfdk_aac"
23-
bitrate = 128
24-
sample_rate = 32000
26+
codec = "libmp3lame"
27+
bitrate = 129
28+
sample_rate = 44100
29+
audio_channel = "dual"
2530
}
26-
remove_audio = true
31+
remove_audio = false
2732
}
2833
stream_info {
2934
video {
@@ -42,7 +47,7 @@ resource "tencentcloud_vod_adaptive_dynamic_streaming_template" "foo" {
4247
4348
resource "tencentcloud_vod_snapshot_by_time_offset_template" "foo" {
4449
name = "tf-snapshot"
45-
width = 128
50+
width = 130
4651
height = 128
4752
resolution_adaptive = false
4853
format = "png"
@@ -85,7 +90,7 @@ resource "tencentcloud_vod_procedure_template" "foo" {
8590
8691
Import
8792
88-
Vod procedure template can be imported using the name, e.g.
93+
VOD procedure template can be imported using the name, e.g.
8994
9095
```
9196
$ terraform import tencentcloud_vod_procedure_template.foo tf-procedure

tencentcloud/resource_tc_vod_snapshot_by_time_offset_template.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Example Usage
66
```hcl
77
resource "tencentcloud_vod_snapshot_by_time_offset_template" "foo" {
88
name = "tf-snapshot"
9-
width = 128
9+
width = 130
1010
height = 128
1111
resolution_adaptive = false
1212
format = "png"
@@ -17,7 +17,7 @@ resource "tencentcloud_vod_snapshot_by_time_offset_template" "foo" {
1717
1818
Import
1919
20-
Vod snapshot by time offset template can be imported using the id, e.g.
20+
VOD snapshot by time offset template can be imported using the id, e.g.
2121
2222
```
2323
$ terraform import tencentcloud_vod_snapshot_by_time_offset_template.foo 46906

tencentcloud/resource_tc_vod_super_player_config.go

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,21 @@ resource "tencentcloud_vod_adaptive_dynamic_streaming_template" "foo" {
1414
1515
stream_info {
1616
video {
17-
codec = "libx264"
18-
fps = 3
19-
bitrate = 128
17+
codec = "libx265"
18+
fps = 4
19+
bitrate = 129
20+
resolution_adaptive = false
21+
width = 128
22+
height = 128
23+
fill_type = "stretch"
2024
}
2125
audio {
22-
codec = "libfdk_aac"
23-
bitrate = 128
24-
sample_rate = 32000
26+
codec = "libmp3lame"
27+
bitrate = 129
28+
sample_rate = 44100
29+
audio_channel = "dual"
2530
}
26-
remove_audio = true
31+
remove_audio = false
2732
}
2833
stream_info {
2934
video {
@@ -76,7 +81,7 @@ resource "tencentcloud_vod_super_player_config" "foo" {
7681
7782
Import
7883
79-
Vod super player config can be imported using the name, e.g.
84+
VOD super player config can be imported using the name, e.g.
8085
8186
```
8287
$ terraform import tencentcloud_vod_super_player_config.foo tf-super-player

website/docs/r/vod_adaptive_dynamic_streaming_template.html.markdown

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,21 @@ resource "tencentcloud_vod_adaptive_dynamic_streaming_template" "foo" {
2424
2525
stream_info {
2626
video {
27-
codec = "libx264"
28-
fps = 3
29-
bitrate = 128
27+
codec = "libx265"
28+
fps = 4
29+
bitrate = 129
30+
resolution_adaptive = false
31+
width = 128
32+
height = 128
33+
fill_type = "stretch"
3034
}
3135
audio {
32-
codec = "libfdk_aac"
33-
bitrate = 128
34-
sample_rate = 32000
36+
codec = "libmp3lame"
37+
bitrate = 129
38+
sample_rate = 44100
39+
audio_channel = "dual"
3540
}
36-
remove_audio = true
41+
remove_audio = false
3742
}
3843
stream_info {
3944
video {
@@ -98,7 +103,7 @@ In addition to all arguments above, the following attributes are exported:
98103

99104
## Import
100105

101-
Vod adaptive dynamic streaming template can be imported using the id, e.g.
106+
VOD adaptive dynamic streaming template can be imported using the id, e.g.
102107

103108
```
104109
$ terraform import tencentcloud_vod_adaptive_dynamic_streaming_template.foo 169141

0 commit comments

Comments
 (0)