|
@@ -1,3 +1,5 @@
|
|
|
|
|
+package rtc
|
|
|
|
|
+
|
|
|
//Licensed under the Apache License, Version 2.0 (the "License");
|
|
//Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
//you may not use this file except in compliance with the License.
|
|
//you may not use this file except in compliance with the License.
|
|
|
//You may obtain a copy of the License at
|
|
//You may obtain a copy of the License at
|
|
@@ -13,8 +15,6 @@
|
|
|
// Code generated by Alibaba Cloud SDK Code Generator.
|
|
// Code generated by Alibaba Cloud SDK Code Generator.
|
|
|
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
|
|
|
|
|
|
-package rtc
|
|
|
|
|
-
|
|
|
|
|
import (
|
|
import (
|
|
|
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
|
|
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
|
|
|
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
|
|
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
|
|
@@ -76,42 +76,45 @@ func (client *Client) CreateTemplateWithCallback(request *CreateTemplateRequest,
|
|
|
// CreateTemplateRequest is the request struct for api CreateTemplate
|
|
// CreateTemplateRequest is the request struct for api CreateTemplate
|
|
|
type CreateTemplateRequest struct {
|
|
type CreateTemplateRequest struct {
|
|
|
*requests.RpcRequest
|
|
*requests.RpcRequest
|
|
|
|
|
+ ServiceMode requests.Integer `position:"Query" name:"ServiceMode"`
|
|
|
|
|
+ LiveConfig *[]CreateTemplateLiveConfig `position:"Query" name:"LiveConfig" type:"Repeated"`
|
|
|
|
|
+ MediaConfig requests.Integer `position:"Query" name:"MediaConfig"`
|
|
|
|
|
+ MaxMixStreamCount requests.Integer `position:"Query" name:"MaxMixStreamCount"`
|
|
|
|
|
+ RecordConfig *[]CreateTemplateRecordConfig `position:"Query" name:"RecordConfig" type:"Repeated"`
|
|
|
OwnerId requests.Integer `position:"Query" name:"OwnerId"`
|
|
OwnerId requests.Integer `position:"Query" name:"OwnerId"`
|
|
|
|
|
+ LayOut *[]CreateTemplateLayOut `position:"Query" name:"LayOut" type:"Repeated"`
|
|
|
AppId string `position:"Query" name:"AppId"`
|
|
AppId string `position:"Query" name:"AppId"`
|
|
|
- MixMode requests.Integer `position:"Query" name:"MixMode"`
|
|
|
|
|
- ServiceMode requests.Integer `position:"Query" name:"ServiceMode"`
|
|
|
|
|
CallBack string `position:"Query" name:"CallBack"`
|
|
CallBack string `position:"Query" name:"CallBack"`
|
|
|
- MaxMixStreamCount requests.Integer `position:"Query" name:"MaxMixStreamCount"`
|
|
|
|
|
- MediaConfig requests.Integer `position:"Query" name:"MediaConfig"`
|
|
|
|
|
- LayOut *[]CreateTemplateLayOut `position:"Query" name:"LayOut" type:"Repeated"`
|
|
|
|
|
- RecordConfig *[]CreateTemplateRecordConfig `position:"Query" name:"RecordConfig" type:"Repeated"`
|
|
|
|
|
- LiveConfig *[]CreateTemplateLiveConfig `position:"Query" name:"LiveConfig" type:"Repeated"`
|
|
|
|
|
|
|
+ MixMode requests.Integer `position:"Query" name:"MixMode"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type CreateTemplateLayOut struct {
|
|
|
|
|
- Color string `name:"Color"`
|
|
|
|
|
- CutMode requests.Integer `name:"CutMode"`
|
|
|
|
|
- LayOutId requests.Integer `name:"LayOutId"`
|
|
|
|
|
|
|
+// CreateTemplateLiveConfig is a repeated param struct in CreateTemplateRequest
|
|
|
|
|
+type CreateTemplateLiveConfig struct {
|
|
|
|
|
+ DomainName string `name:"DomainName"`
|
|
|
|
|
+ AppName string `name:"AppName"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// CreateTemplateRecordConfig is a repeated param struct in CreateTemplateRequest
|
|
|
type CreateTemplateRecordConfig struct {
|
|
type CreateTemplateRecordConfig struct {
|
|
|
- StorageType string `name:"StorageType"`
|
|
|
|
|
- FileFormat requests.Integer `name:"FileFormat"`
|
|
|
|
|
- OssEndPoint string `name:"OssEndPoint"`
|
|
|
|
|
- OssBucket string `name:"OssBucket"`
|
|
|
|
|
- VodTransCodeGroupId requests.Integer `name:"VodTransCodeGroupId"`
|
|
|
|
|
|
|
+ StorageType string `name:"StorageType"`
|
|
|
|
|
+ FileFormat string `name:"FileFormat"`
|
|
|
|
|
+ OssEndPoint string `name:"OssEndPoint"`
|
|
|
|
|
+ OssBucket string `name:"OssBucket"`
|
|
|
|
|
+ VodTransCodeGroupId string `name:"VodTransCodeGroupId"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type CreateTemplateLiveConfig struct {
|
|
|
|
|
- DomainName string `name:"DomainName"`
|
|
|
|
|
- AppName string `name:"AppName"`
|
|
|
|
|
|
|
+// CreateTemplateLayOut is a repeated param struct in CreateTemplateRequest
|
|
|
|
|
+type CreateTemplateLayOut struct {
|
|
|
|
|
+ Color string `name:"Color"`
|
|
|
|
|
+ CutMode string `name:"CutMode"`
|
|
|
|
|
+ LayOutId string `name:"LayOutId"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// CreateTemplateResponse is the response struct for api CreateTemplate
|
|
// CreateTemplateResponse is the response struct for api CreateTemplate
|
|
|
type CreateTemplateResponse struct {
|
|
type CreateTemplateResponse struct {
|
|
|
*responses.BaseResponse
|
|
*responses.BaseResponse
|
|
|
RequestId string `json:"RequestId" xml:"RequestId"`
|
|
RequestId string `json:"RequestId" xml:"RequestId"`
|
|
|
- TemplateId int64 `json:"TemplateId" xml:"TemplateId"`
|
|
|
|
|
|
|
+ TemplateId int `json:"TemplateId" xml:"TemplateId"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// CreateCreateTemplateRequest creates a request to invoke CreateTemplate API
|
|
// CreateCreateTemplateRequest creates a request to invoke CreateTemplate API
|