Documentation ¶
Index ¶
- Constants
- Variables
- type CommonResponse
- type CustomConfig
- type Encode
- type File
- type FileFormatConfig
- type GetRecordTaskResponse
- type GetRecordTaskResult
- type GetWebRecordListResponse
- type GetWebRecordListResult
- type GetWebRecordTaskResponse
- type GetWebRecordTaskResult
- type RecordFile
- type RecordTask
- type Rtc
- func NewInstance() *Rtcdeprecated
- func NewInstanceWithRegion(region string) *Rtcdeprecated
- func (c *Rtc) StartWBRecord(ctx context.Context, arg *StartWBRecordBody) (*common.CommonResponse, error)
- func (c *Rtc) StopWBRecord(ctx context.Context, arg *StopWBRecordBody) (*StopWBRecordRes, error)
- func (c *Rtc) WbTranscodeCreate(ctx context.Context, arg *WbTranscodeCreateBody) (*WbTranscodeCreateRes, error)
- func (c *Rtc) WbTranscodeGet(ctx context.Context, arg *WbTranscodeGetQuery) (*WbTranscodeGetRes, error)
- func (c *Rtc) WbTranscodeQuery(ctx context.Context, arg *WbTranscodeQueryQuery) (*WbTranscodeQueryRes, error)
- type StartRecordRequest
- type StartRecordResponse
- type StartWBRecord
- type StartWBRecordBody
- type StartWBRecordQuery
- type StartWBRecordReq
- type StartWBRecordRes
- type StartWBRecordResResponseMetadata
- type StartWebRecordRequest
- type StartWebRecordResponse
- type StartWebRecordResult
- type StopWBRecord
- type StopWBRecordBody
- type StopWBRecordQuery
- type StopWBRecordReq
- type StopWBRecordRes
- type StopWBRecordResResponseMetadata
- type StopWebRecordRequest
- type StopWebRecordResponse
- type StopWebRecordResult
- type StorageConfig
- type Stream
- type TaskEventData
- type Tasks
- type TosConfig
- type WbTranscodeCreate
- type WbTranscodeCreateBody
- type WbTranscodeCreateBodyResourceAttr
- type WbTranscodeCreateBodyStorageConfig
- type WbTranscodeCreateBodyStorageConfigCustomConfig
- type WbTranscodeCreateBodyStorageConfigTosConfig
- type WbTranscodeCreateBodyTranscodeConfig
- type WbTranscodeCreateQuery
- type WbTranscodeCreateReq
- type WbTranscodeCreateRes
- type WbTranscodeCreateResResponseMetadata
- type WbTranscodeCreateResResult
- type WbTranscodeGet
- type WbTranscodeGetBody
- type WbTranscodeGetQuery
- type WbTranscodeGetReq
- type WbTranscodeGetRes
- type WbTranscodeGetResResponseMetadata
- type WbTranscodeGetResResult
- type WbTranscodeGetResResultImagesItem
- type WbTranscodeQueryBody
- type WbTranscodeQueryQuery
- type WbTranscodeQueryReq
- type WbTranscodeQueryRes
- type WbTranscodeQueryResResponseMetadata
- type WbTranscodeQueryResResult
- type WebPageInfo
- type WebRecordList
- type WebVideoInfo
Constants ¶
View Source
const ( DefaultRegion = "cn-north-1" DefaultTimeout = 10 * time.Second ServiceVersion20201201 = "2020-12-01" ServiceVersion20220601 = "2022-06-01" ServiceName = "rtc" ServiceHost = "rtc.volcengineapi.com" // action name ActionStartRecord = "StartRecord" ActionGetRecordTask = "GetRecordTask" ActionStartWebRecord = "StartWebRecord" ActionStopWebRecord = "StopWebRecord" ActionGetWebRecordTask = "GetWebRecordTask" ActionGetWebRecordList = "GetWebRecordList" )
Variables ¶
View Source
var ( ServiceInfoMap = map[string]common.ServiceInfo{ "cn-north-1": { Timeout: DefaultTimeout, Scheme: "https", Host: "rtc.volcengineapi.com", Header: http.Header{ "Accept": []string{"application/json"}, }, Credentials: common.Credentials{ Region: "cn-north-1", Service: ServiceName, }, }, } ApiListInfo = map[string]*common.ApiInfo{ "StartWBRecord": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"StartWBRecord"}, "Version": []string{"2020-12-01"}, }, }, "WbTranscodeCreate": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"WbTranscodeCreate"}, "Version": []string{"2020-12-01"}, }, }, "WbTranscodeQuery": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"WbTranscodeQuery"}, "Version": []string{"2020-12-01"}, }, }, "StopWBRecord": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"StopWBRecord"}, "Version": []string{"2020-12-01"}, }, }, "WbTranscodeGet": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"WbTranscodeGet"}, "Version": []string{"2020-12-01"}, }, }, "StartRecord": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"StartRecord"}, "Version": []string{"2022-06-01"}, }, }, "GetRecordTask": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetRecordTask"}, "Version": []string{"2022-06-01"}, }, }, "StartWebRecord": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"GetRecordTask"}, "Version": []string{"2020-12-01"}, }, }, "StopWebRecord": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"StopWebRecord"}, "Version": []string{"2020-12-01"}, }, }, "GetWebRecordTask": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetWebRecordTask"}, "Version": []string{"2020-12-01"}, }, }, "GetWebRecordList": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetWebRecordList"}, "Version": []string{"2020-12-01"}, }, }, } )
Functions ¶
This section is empty.
Types ¶
type CommonResponse ¶
type CommonResponse struct { ResponseMetadata *base.ResponseMetadata Result json.RawMessage `json:"Result,omitempty"` }
CommonResponse ... need to decode result by type
type CustomConfig ¶
type FileFormatConfig ¶
type FileFormatConfig struct {
FileFormat []string
}
type GetRecordTaskResponse ¶
type GetRecordTaskResponse struct { ResponseMetadata *base.ResponseMetadata Result *GetRecordTaskResult `json:"Result,omitempty"` }
GetRecordTaskResponse ...
func GetRecordTask
deprecated
type GetRecordTaskResult ¶
type GetRecordTaskResult struct {
RecordTask RecordTask `json:"RecordTask"`
}
type GetWebRecordListResponse ¶
type GetWebRecordListResponse struct { ResponseMetadata *base.ResponseMetadata Result *GetWebRecordListResult `json:"Result,omitempty"` }
func GetWebRecordList
deprecated
type GetWebRecordListResult ¶
type GetWebRecordListResult struct { Message string `json:"Message"` WebRecordList WebRecordList `json:"WebRecordList"` }
type GetWebRecordTaskResponse ¶
type GetWebRecordTaskResponse struct { ResponseMetadata *base.ResponseMetadata Result *GetWebRecordTaskResult `json:"Result,omitempty"` }
func GetWebRecordTask
deprecated
type GetWebRecordTaskResult ¶
type GetWebRecordTaskResult struct { Message string `json:"Message"` EventData TaskEventData `json:"EventData"` }
type RecordFile ¶
type RecordFile struct { Vid string `json:"Vid"` ObjectKey string `json:"ObjectKey"` Duration uint64 `json:"Duration"` Size uint64 `json:"Size"` StartTime uint64 `json:"StartTime"` StreamList []Stream `json:"StreamList"` VideoCodec string `json:"VideoCodec"` AudioCodec string `json:"AudioCodec"` VideoWidth int `json:"VideoWidth"` VideoHeight int `json:"VideoHeight"` }
type RecordTask ¶
type RecordTask struct { StartTime uint64 `json:"StartTime"` EndTime uint64 `json:"EndTime"` Status uint64 `json:"Status"` StopReason string `json:"StopReason"` RecordFileList []RecordFile `json:"RecordFileList"` }
type Rtc ¶ added in v1.0.124
func NewInstance
deprecated
func NewInstance() *Rtc
Deprecated: NewInstance is deprecated.
func NewInstanceWithRegion
deprecated
added in
v1.0.124
func (*Rtc) StartWBRecord ¶ added in v1.0.124
func (c *Rtc) StartWBRecord(ctx context.Context, arg *StartWBRecordBody) (*common.CommonResponse, error)
func (*Rtc) StopWBRecord ¶ added in v1.0.124
func (c *Rtc) StopWBRecord(ctx context.Context, arg *StopWBRecordBody) (*StopWBRecordRes, error)
func (*Rtc) WbTranscodeCreate ¶ added in v1.0.124
func (c *Rtc) WbTranscodeCreate(ctx context.Context, arg *WbTranscodeCreateBody) (*WbTranscodeCreateRes, error)
func (*Rtc) WbTranscodeGet ¶ added in v1.0.124
func (c *Rtc) WbTranscodeGet(ctx context.Context, arg *WbTranscodeGetQuery) (*WbTranscodeGetRes, error)
func (*Rtc) WbTranscodeQuery ¶ added in v1.0.124
func (c *Rtc) WbTranscodeQuery(ctx context.Context, arg *WbTranscodeQueryQuery) (*WbTranscodeQueryRes, error)
type StartRecordRequest ¶
type StartRecordRequest struct { AppId string `json:"AppId"` BusinessId string `json:"BusinessId"` RoomId string `json:"RoomId"` TaskId string `json:"TaskId"` RecordMode uint32 `json:"RecordMode"` Encode *Encode `json:"Encode,omitempty"` FileFormatConfig *FileFormatConfig `json:"FileFormatConfig,omitempty"` StorageConfig StorageConfig `json:"StorageConfig"` }
StartRecordRequest ...
type StartRecordResponse ¶
type StartRecordResponse struct { ResponseMetadata *base.ResponseMetadata Result string `json:"Result,omitempty"` }
StartRecordResponse ...
func StartRecord
deprecated
func StartRecord(r *Rtc, req *StartRecordRequest) (*StartRecordResponse, int, error)
Deprecated: StartRecord is deprecated.
type StartWBRecord ¶ added in v1.0.124
type StartWBRecord struct{}
type StartWBRecordBody ¶ added in v1.0.124
type StartWBRecordBody struct { // REQUIRED; 应用的唯一标志。你可以通过控制台 [https://console.volcengine.com/rtc/listRTC]查看和复制你的 app_id。或通过调用ListApps [https://www.volcengine.com/docs/6348/74489]接口获取。 AppID string `json:"AppId"` // REQUIRED; 需要录制的白板房间 ID,同一个 appId 中,为每个房间的唯一标志 RoomID string `json:"RoomId"` // REQUIRED; 录制任务 ID。你可以自行设定 TaskId 以区分不同的白板录制任务。 关于 TaskId 及以上 Id 字段的命名规则,参看ID [https://www.volcengine.com/docs/6348/69835#idname]。 TaskID string `json:"TaskId"` // REQUIRED; 任务发起方的用户 ID。不能与房间中其他用户的 ID 重复,否则先进房的用户会被移出房间。 UserID string `json:"UserId"` // 业务标识 BusinessID *string `json:"BusinessId,omitempty"` // 自定义 UI 的 Web 页面地址。 不填表示使用默认白板页面。 SourceURL *string `json:"SourceURL,omitempty"` }
type StartWBRecordQuery ¶ added in v1.0.124
type StartWBRecordQuery struct{}
type StartWBRecordReq ¶ added in v1.0.124
type StartWBRecordReq struct { *StartWBRecordQuery *StartWBRecordBody }
type StartWBRecordRes ¶ added in v1.0.124
type StartWBRecordRes struct { // REQUIRED ResponseMetadata StartWBRecordResResponseMetadata `json:"ResponseMetadata"` // 视请求的接口而定 Result interface{} `json:"Result,omitempty"` }
type StartWBRecordResResponseMetadata ¶ added in v1.0.124
type StartWBRecordResResponseMetadata struct { // REQUIRED; 请求的接口名,属于请求的公共参数。 Action string `json:"Action"` // REQUIRED; 请求的Region,例如:cn-north-1 Region string `json:"Region"` // REQUIRED; RequestID为每次API请求的唯一标识。 RequestID string `json:"RequestId"` // REQUIRED; 请求的服务,属于请求的公共参数。 Service string `json:"Service"` // REQUIRED; 请求的版本号,属于请求的公共参数。 Version string `json:"Version"` }
type StartWebRecordRequest ¶
type StartWebRecordRequest struct { AppId string TaskId string InputURL string MaxRecordSecond int JsCommand []string Bucket string VideoSpace string VideoInfo WebVideoInfo PageInfo WebPageInfo Duration int }
type StartWebRecordResponse ¶
type StartWebRecordResponse struct { ResponseMetadata *base.ResponseMetadata Result *StartWebRecordResult `json:"Result,omitempty"` }
func StartWebRecord
deprecated
func StartWebRecord(r *Rtc, req *StartWebRecordRequest) (*StartWebRecordResponse, int, error)
Deprecated: StartWebRecord is deprecated.
type StartWebRecordResult ¶
type StartWebRecordResult struct {
Message string `json:"Message"`
}
type StopWBRecord ¶ added in v1.0.124
type StopWBRecord struct{}
type StopWBRecordBody ¶ added in v1.0.124
type StopWBRecordQuery ¶ added in v1.0.124
type StopWBRecordQuery struct{}
type StopWBRecordReq ¶ added in v1.0.124
type StopWBRecordReq struct { *StopWBRecordQuery *StopWBRecordBody }
type StopWBRecordRes ¶ added in v1.0.124
type StopWBRecordRes struct { // REQUIRED ResponseMetadata base.ResponseMetadata `json:"ResponseMetadata"` // 视请求的接口而定 Result interface{} `json:"Result,omitempty"` }
type StopWBRecordResResponseMetadata ¶ added in v1.0.124
type StopWBRecordResResponseMetadata struct { // REQUIRED; 请求的接口名,属于请求的公共参数。 Action string `json:"Action"` // REQUIRED; 请求的Region,例如:cn-north-1 Region string `json:"Region"` // REQUIRED; RequestID为每次API请求的唯一标识。 RequestID string `json:"RequestId"` // REQUIRED; 请求的服务,属于请求的公共参数。 Service string `json:"Service"` // REQUIRED; 请求的版本号,属于请求的公共参数。 Version string `json:"Version"` }
type StopWebRecordRequest ¶
type StopWebRecordResponse ¶
type StopWebRecordResponse struct { ResponseMetadata *base.ResponseMetadata Result *StopWebRecordResult `json:"Result,omitempty"` }
func StopWebRecord
deprecated
func StopWebRecord(r *Rtc, req *StopWebRecordRequest) (*StopWebRecordResponse, int, error)
Deprecated: StopWebRecord is deprecated.
type StopWebRecordResult ¶
type StopWebRecordResult struct {
Message string `json:"Message"`
}
type StorageConfig ¶
type StorageConfig struct { Type uint32 `json:"Type"` TosConfig *TosConfig `json:"TosConfig,omitempty"` CustomConfig *CustomConfig `json:"CustomConfig,omitempty"` }
type TaskEventData ¶
type Tasks ¶
type Tasks struct { TaskId string `json:"TaskId"` CreateTime int `json:"CreateTime"` FinishTime int `json:"FinishTime"` Status int `json:"Status"` InputURL string `json:"InputURL"` VideoSpace string `json:"VideoSpace"` Vid string `json:"Vid"` MaxRecordSecond int `json:"MaxRecordSecond"` Duration int `json:"Duration"` Bucket string `json:"Bucket"` ObjectKey string `json:"ObjectKey"` }
type WbTranscodeCreate ¶ added in v1.0.124
type WbTranscodeCreate struct{}
type WbTranscodeCreateBody ¶ added in v1.0.124
type WbTranscodeCreateBody struct { // REQUIRED; 应用的唯一标志。你可以通过控制台 [https://console.volcengine.com/rtc/listRTC]查看和复制你的 app_id。或通过调用ListApps [https://www.volcengine.com/docs/6348/74489]接口获取。 AppID string `json:"app_id"` // REQUIRED; 用户 ID Operator string `json:"operator"` // REQUIRED; 需要转换为图片的文档链接地址。每次调用接口只能请求处理一份文档。 Resource string `json:"resource"` // 转码成功后返回的 URL 预签名有效期。有效范围:0~604800。 // * 【默认值】0:无限期。你需要在 TOS 服务的 bucket 为公共读。 // * 1~604800:URL 预签名有效期,单位是秒。 PreSignDuration *int32 `json:"pre_sign_duration,omitempty"` // 静态转码的转码优先级 // * 【默认值】0: 非实时转码 // * 1: 实时转码 Priority *int32 `json:"priority,omitempty"` // 动态转码文件设置 ResourceAttr *WbTranscodeCreateBodyResourceAttr `json:"resource_attr,omitempty"` // 对象存储属性 // * 使用火山引擎的对象存储服务,且本次传入的参数与控制台设置的属性有差异,则以传入参数为准。 StorageConfig *WbTranscodeCreateBodyStorageConfig `json:"storage_config,omitempty"` // 转码参数设置 TranscodeConfig *WbTranscodeCreateBodyTranscodeConfig `json:"transcode_config,omitempty"` // 转码类型 // * 0: 静态转码(默认) // * 1: 动态转码 TranscodeMode *int32 `json:"transcode_mode,omitempty"` }
type WbTranscodeCreateBodyResourceAttr ¶ added in v1.0.124
type WbTranscodeCreateBodyResourceAttr struct { // REQUIRED; 文件名 FileName string `json:"file_name"` // REQUIRED; 文件大小,单位:byte Size int32 `json:"size"` }
WbTranscodeCreateBodyResourceAttr - 动态转码文件设置
type WbTranscodeCreateBodyStorageConfig ¶ added in v1.0.124
type WbTranscodeCreateBodyStorageConfig struct { // REQUIRED; 存储类型 【默认值】0: Tos1: 第三方对象存储接口,支持阿里云和亚马逊 Type int32 `json:"type"` // 第三方对象存储服务参数设置 CustomConfig *WbTranscodeCreateBodyStorageConfigCustomConfig `json:"custom_config,omitempty"` // 火山引擎的对象存储服务参数设置 TosConfig *WbTranscodeCreateBodyStorageConfigTosConfig `json:"tos_config,omitempty"` }
WbTranscodeCreateBodyStorageConfig - 对象存储属性 * 使用火山引擎的对象存储服务,且本次传入的参数与控制台设置的属性有差异,则以传入参数为准。
type WbTranscodeCreateBodyStorageConfigCustomConfig ¶ added in v1.0.124
type WbTranscodeCreateBodyStorageConfigCustomConfig struct { // REQUIRED; Access Key AccessKey string `json:"access_key"` // REQUIRED; 桶名称 Bucket string `json:"bucket"` // REQUIRED; 区域 // { // "Custom": { // "AmazonS3": { // "EndPointFormat": "", // "RegionIDs": { // "0": "us-east-1", // "1": "us-east-2", // "2": "us-west-1", // "3": "us-west-2", // "4": "eu-west-1", // "5": "eu-west-2", // "6": "eu-west-3", // "8": "ap-southeast-1", // "10": "ap-northeast-1", // "11": "ap-northeast-2", // "12": "sa-east-1", // "13": "ca-central-1", // "14": "ap-south-1", // "18": "ap-east-1", // "19": "eu-south-1", // "20": "ap-northeast-3", // "21": "eu-north-1", // "22": "me-south-1", // "24": "af-south-1" // } // }, // "AlicloudOSS": { // "EndPointFormat": "%v.aliyuncs.com", // "RegionIDs": { // "0": "oss-cn-hangzhou", // "1": "oss-cn-shanghai", // "2": "oss-cn-qingdao", // "3": "oss-cn-beijing", // "4": "oss-cn-zhangjiakou", // "5": "oss-cn-huhehaote", // "6": "oss-cn-wulanchabu", // "7": "oss-cn-shenzhen", // "8": "oss-cn-heyuan", // "9": "oss-cn-guangzhou", // "10": "oss-cn-chengdu", // "11": "oss-cn-hongkong", // "12": "oss-us-west-1", // "13": "oss-us-east-1", // "14": "oss-ap-southeast-1", // "15": "oss-ap-southeast-2", // "17": "oss-ap-southeast-5", // "18": "oss-ap-northeast-1", // "19": "oss-ap-south-1", // "20": "oss-eu-central-1", // "21": "oss-eu-west-1", // "22": "oss-me-east-1", // "23": "oss-ap-southeast-6" // } // } // } Region int32 `json:"region"` // REQUIRED; Secret Key AK/SK建议只开通写权限,关闭读权限。 SecretKey string `json:"secret_key"` // REQUIRED; 第三方存储供应商0: Amazon 亚马逊1: Alicloud 阿里云 Vendor int32 `json:"vendor"` }
WbTranscodeCreateBodyStorageConfigCustomConfig - 第三方对象存储服务参数设置
type WbTranscodeCreateBodyStorageConfigTosConfig ¶ added in v1.0.124
type WbTranscodeCreateBodyStorageConfigTosConfig struct { // REQUIRED; Bucket 所属的火山引擎账号 ID。在登录火山引擎后,可在头像的悬浮菜单中找到账号 ID。[https://portal.volccdn.com/obj/volcfe/cloud-universal-doc/upload_0819c44c6aadff358a7dfc52c5daab57.png] AccountID string `json:"account_id"` // REQUIRED; 桶名称。登录TOS 控制台 [https://console.volcengine.com/tos/bucket]开通和获取。 Bucket string `json:"bucket"` // REQUIRED; 0: 北京 Region int32 `json:"region"` }
WbTranscodeCreateBodyStorageConfigTosConfig - 火山引擎的对象存储服务参数设置
type WbTranscodeCreateBodyTranscodeConfig ¶ added in v1.0.124
type WbTranscodeCreateBodyTranscodeConfig struct { // REQUIRED; 输入文件类型1: ppt2: pptx3: doc4: docx5: pdf InputFormat int32 `json:"input_format"` // REQUIRED; 输出文件类型1: png2: jpg/jpeg OutputFormat int32 `json:"output_format"` // REQUIRED; 转码后的页面高度,单位为像素 OutputHeight int32 `json:"output_height"` // REQUIRED; 转码后的页面宽度,单位为像素 OutputWidth int32 `json:"output_width"` // 是否按照指定分辨率拉伸页面 默认为false,按照文件的原始宽高比适配指定分辨率。 ForceUseResolution *bool `json:"force_use_resolution,omitempty"` // 是否生成缩略图,默认为false Thumbnail *bool `json:"thumbnail,omitempty"` // 缩略图分辨率高,默认为180 ThumbnailHeight *int32 `json:"thumbnail_height,omitempty"` // 缩略图分辨率宽,默认为320 ThumbnailWidth *int32 `json:"thumbnail_width,omitempty"` }
WbTranscodeCreateBodyTranscodeConfig - 转码参数设置
type WbTranscodeCreateQuery ¶ added in v1.0.124
type WbTranscodeCreateQuery struct{}
type WbTranscodeCreateReq ¶ added in v1.0.124
type WbTranscodeCreateReq struct { *WbTranscodeCreateQuery *WbTranscodeCreateBody }
type WbTranscodeCreateRes ¶ added in v1.0.124
type WbTranscodeCreateRes struct { // REQUIRED ResponseMetadata base.ResponseMetadata `json:"ResponseMetadata"` // 视请求的接口而定 Result *WbTranscodeCreateResResult `json:"Result,omitempty"` }
type WbTranscodeCreateResResponseMetadata ¶ added in v1.0.124
type WbTranscodeCreateResResponseMetadata struct { // REQUIRED; 请求的接口名,属于请求的公共参数。 Action string `json:"Action"` // REQUIRED; 请求的Region,例如:cn-north-1 Region string `json:"Region"` // REQUIRED; RequestID为每次API请求的唯一标识。 RequestID string `json:"RequestId"` // REQUIRED; 请求的服务,属于请求的公共参数。 Service string `json:"Service"` // REQUIRED; 请求的版本号,属于请求的公共参数。 Version string `json:"Version"` }
type WbTranscodeCreateResResult ¶ added in v1.0.124
type WbTranscodeCreateResResult struct { // REQUIRED; task_id 为查询任务进度和获取转码后链接的必填参数 TaskID string `json:"task_id"` }
WbTranscodeCreateResResult - 视请求的接口而定
type WbTranscodeGet ¶ added in v1.0.124
type WbTranscodeGet struct{}
type WbTranscodeGetBody ¶ added in v1.0.124
type WbTranscodeGetBody struct{}
type WbTranscodeGetQuery ¶ added in v1.0.124
type WbTranscodeGetQuery struct { // REQUIRED; 应用的唯一标志。你可以通过控制台 [https://console.volcengine.com/rtc/listRTC]查看和复制你的 app_id。或通过调用ListApps [https://www.volcengine.com/docs/6348/74489]接口获取。 AppID string `json:"app_id" query:"app_id"` // REQUIRED; 成功调用WbTranscodeQuery后返回的任务ID TaskID string `json:"task_id" query:"task_id"` }
type WbTranscodeGetReq ¶ added in v1.0.124
type WbTranscodeGetReq struct { *WbTranscodeGetQuery *WbTranscodeGetBody }
type WbTranscodeGetRes ¶ added in v1.0.124
type WbTranscodeGetRes struct { // REQUIRED ResponseMetadata base.ResponseMetadata `json:"ResponseMetadata"` // REQUIRED Result WbTranscodeGetResResult `json:"Result"` }
type WbTranscodeGetResResponseMetadata ¶ added in v1.0.124
type WbTranscodeGetResResult ¶ added in v1.0.124
type WbTranscodeGetResResult struct { // REQUIRED FileName string `json:"file_name"` // REQUIRED H5URL string `json:"h5_url"` // REQUIRED Height int32 `json:"height"` // REQUIRED Images []WbTranscodeGetResResultImagesItem `json:"images"` // REQUIRED TranscodeMode int32 `json:"transcode_mode"` // REQUIRED Width int32 `json:"width"` }
type WbTranscodeGetResResultImagesItem ¶ added in v1.0.124
type WbTranscodeQueryBody ¶ added in v1.0.124
type WbTranscodeQueryBody struct{}
type WbTranscodeQueryQuery ¶ added in v1.0.124
type WbTranscodeQueryQuery struct { // REQUIRED; 应用的唯一标志。你可以通过控制台 [https://console.volcengine.com/rtc/listRTC]查看和复制你的 app_id。或通过调用ListApps [https://www.volcengine.com/docs/6348/74489]接口获取。 AppID string `json:"app_id" query:"app_id"` // REQUIRED; 成功调用WbTranscodeQuery后返回的任务ID TaskID string `json:"task_id" query:"task_id"` }
type WbTranscodeQueryReq ¶ added in v1.0.124
type WbTranscodeQueryReq struct { *WbTranscodeQueryQuery *WbTranscodeQueryBody }
type WbTranscodeQueryRes ¶ added in v1.0.124
type WbTranscodeQueryRes struct { // REQUIRED ResponseMetadata base.ResponseMetadata `json:"ResponseMetadata"` // REQUIRED Result WbTranscodeQueryResResult `json:"Result"` }
type WbTranscodeQueryResResponseMetadata ¶ added in v1.0.124
type WbTranscodeQueryResResult ¶ added in v1.0.124
type WbTranscodeQueryResResult struct { // REQUIRED; 转码任务状态 // * 0:未开始 // * 1:进行中 // * 2:已完成 // * 3:失败 Status int32 `json:"status"` // 错误码 ErrCode *int32 `json:"err_code,omitempty"` // 错误信息 ErrMsg *string `json:"err_msg,omitempty"` // 静态转码进度。100表示已完成。 动态转码恒定为0。 Progress *int32 `json:"progress,omitempty"` }
type WebPageInfo ¶
type WebRecordList ¶
type WebVideoInfo ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.