Caster Args
Provides a Live Caster resource. Relying on Alibaba Cloud's powerful technologies such as live video broadcasting, media processing, and video AI, cloud guide integrates capabilities such as graphic packaging, real-time keying, multi-language translation, and multi-channel mixed streaming to innovate traditional guide services in the cloud. Provide easy-to-use cloud-based guide services for event performances, news reports, live events, off-site broadcasts and other scenes, without hardware, reduce user guide costs, and create a better live broadcast experience. For information about Live Caster and how to use it, see What is Caster.
NOTE: Available since v1.238.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = new alicloud.live.Caster("default", {
casterName: name,
paymentType: "PayAsYouGo",
normType: 1,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.live.Caster("default",
caster_name=name,
payment_type="PayAsYouGo",
norm_type=1)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = new AliCloud.Live.Caster("default", new()
{
CasterName = name,
PaymentType = "PayAsYouGo",
NormType = 1,
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/live"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := live.NewCaster(ctx, "default", &live.CasterArgs{
CasterName: pulumi.String(name),
PaymentType: pulumi.String("PayAsYouGo"),
NormType: pulumi.Int(1),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.live.Caster;
import com.pulumi.alicloud.live.CasterArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var default_ = new Caster("default", CasterArgs.builder()
.casterName(name)
.paymentType("PayAsYouGo")
.normType("1")
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:live:Caster
properties:
casterName: ${name}
paymentType: PayAsYouGo
normType: '1'
Import
Live Caster can be imported using the id, e.g.
$ pulumi import alicloud:live/caster:Caster example <id>
Constructors
Properties
Automatic standby broadcast configuration. eofThres: indicates that the broadcast is automatically cut and prepared after the flow interruption time, in seconds.
Turn on the cut-off automatic switch for broadcast preparation. true: open. false: closed.
The callback address of the user. To receive Callback Notifications, enter an available address and accept the HTTP protocol. If this parameter is set to null, the callback notification from the director Station is canceled by default.
Guide station name.
Master play domain name.
The paymen type of the resource
Carousel effective flag. 0: Not in effect. 1: Entry into force.
The carousel station name, which can be configured when using the carousel function.
Record configuration information. The format is JSON. The configuration element information is as follows:
Resource Group id
resource type
The user-defined stream ingest address corresponding to the bypass output address of the guide station. If this parameter is left blank, the streaming address corresponding to the output address automatically generated by Alibaba Cloud is used by default.
The list of multiple forwarding stream addresses, which can be the CDN forwarding stream addresses of Alibaba Cloud or a third-party vendor. A guide can add up to 20 RTMP forwarding addresses.
Multi-View synchronization configuration to synchronize multiple video sources. Multi-View synchronization is divided into two modes:
Transcoding configuration. JSON format string, Please capitalize the first letter of the internal field of the structure, hump format input. If this parameter is set to null, the transcoding configuration is cleared by default. If the transcoding template is null, an error is reported when the director starts.
The ID of the picture material of the media library.
Prepare the URL of the picture material.
The prepared live stream URL.
Prepared video, media library material ID. If this parameter is set to null, the standby configuration is cleared by default.