Documentation ¶
Index ¶
- func GenReqDefForCancelRemuxTask() *def.HttpRequestDef
- func GenReqDefForCreateAnimatedGraphicsTask() *def.HttpRequestDef
- func GenReqDefForCreateEncryptTask() *def.HttpRequestDef
- func GenReqDefForCreateExtractTask() *def.HttpRequestDef
- func GenReqDefForCreateRemuxTask() *def.HttpRequestDef
- func GenReqDefForCreateRetryRemuxTask() *def.HttpRequestDef
- func GenReqDefForCreateTemplateGroup() *def.HttpRequestDef
- func GenReqDefForCreateThumbnailsTask() *def.HttpRequestDef
- func GenReqDefForCreateTransTemplate() *def.HttpRequestDef
- func GenReqDefForCreateTranscodingTask() *def.HttpRequestDef
- func GenReqDefForCreateWatermarkTemplate() *def.HttpRequestDef
- func GenReqDefForDeleteAnimatedGraphicsTask() *def.HttpRequestDef
- func GenReqDefForDeleteEncryptTask() *def.HttpRequestDef
- func GenReqDefForDeleteExtractTask() *def.HttpRequestDef
- func GenReqDefForDeleteRemuxTask() *def.HttpRequestDef
- func GenReqDefForDeleteTemplate() *def.HttpRequestDef
- func GenReqDefForDeleteTemplateGroup() *def.HttpRequestDef
- func GenReqDefForDeleteThumbnailsTask() *def.HttpRequestDef
- func GenReqDefForDeleteTranscodingTask() *def.HttpRequestDef
- func GenReqDefForDeleteWatermarkTemplate() *def.HttpRequestDef
- func GenReqDefForListAnimatedGraphicsTask() *def.HttpRequestDef
- func GenReqDefForListEncryptTask() *def.HttpRequestDef
- func GenReqDefForListExtractTask() *def.HttpRequestDef
- func GenReqDefForListRemuxTask() *def.HttpRequestDef
- func GenReqDefForListTemplate() *def.HttpRequestDef
- func GenReqDefForListTemplateGroup() *def.HttpRequestDef
- func GenReqDefForListThumbnailsTask() *def.HttpRequestDef
- func GenReqDefForListTranscodeDetail() *def.HttpRequestDef
- func GenReqDefForListTranscodingTask() *def.HttpRequestDef
- func GenReqDefForListWatermarkTemplate() *def.HttpRequestDef
- func GenReqDefForUpdateTemplateGroup() *def.HttpRequestDef
- func GenReqDefForUpdateTransTemplate() *def.HttpRequestDef
- func GenReqDefForUpdateWatermarkTemplate() *def.HttpRequestDef
- func MpcClientBuilder() *http_client.HcHttpClientBuilder
- type MpcClient
- func (c *MpcClient) CancelRemuxTask(request *model.CancelRemuxTaskRequest) (*model.CancelRemuxTaskResponse, error)
- func (c *MpcClient) CreateAnimatedGraphicsTask(request *model.CreateAnimatedGraphicsTaskRequest) (*model.CreateAnimatedGraphicsTaskResponse, error)
- func (c *MpcClient) CreateEncryptTask(request *model.CreateEncryptTaskRequest) (*model.CreateEncryptTaskResponse, error)
- func (c *MpcClient) CreateExtractTask(request *model.CreateExtractTaskRequest) (*model.CreateExtractTaskResponse, error)
- func (c *MpcClient) CreateRemuxTask(request *model.CreateRemuxTaskRequest) (*model.CreateRemuxTaskResponse, error)
- func (c *MpcClient) CreateRetryRemuxTask(request *model.CreateRetryRemuxTaskRequest) (*model.CreateRetryRemuxTaskResponse, error)
- func (c *MpcClient) CreateTemplateGroup(request *model.CreateTemplateGroupRequest) (*model.CreateTemplateGroupResponse, error)
- func (c *MpcClient) CreateThumbnailsTask(request *model.CreateThumbnailsTaskRequest) (*model.CreateThumbnailsTaskResponse, error)
- func (c *MpcClient) CreateTransTemplate(request *model.CreateTransTemplateRequest) (*model.CreateTransTemplateResponse, error)
- func (c *MpcClient) CreateTranscodingTask(request *model.CreateTranscodingTaskRequest) (*model.CreateTranscodingTaskResponse, error)
- func (c *MpcClient) CreateWatermarkTemplate(request *model.CreateWatermarkTemplateRequest) (*model.CreateWatermarkTemplateResponse, error)
- func (c *MpcClient) DeleteAnimatedGraphicsTask(request *model.DeleteAnimatedGraphicsTaskRequest) (*model.DeleteAnimatedGraphicsTaskResponse, error)
- func (c *MpcClient) DeleteEncryptTask(request *model.DeleteEncryptTaskRequest) (*model.DeleteEncryptTaskResponse, error)
- func (c *MpcClient) DeleteExtractTask(request *model.DeleteExtractTaskRequest) (*model.DeleteExtractTaskResponse, error)
- func (c *MpcClient) DeleteRemuxTask(request *model.DeleteRemuxTaskRequest) (*model.DeleteRemuxTaskResponse, error)
- func (c *MpcClient) DeleteTemplate(request *model.DeleteTemplateRequest) (*model.DeleteTemplateResponse, error)
- func (c *MpcClient) DeleteTemplateGroup(request *model.DeleteTemplateGroupRequest) (*model.DeleteTemplateGroupResponse, error)
- func (c *MpcClient) DeleteThumbnailsTask(request *model.DeleteThumbnailsTaskRequest) (*model.DeleteThumbnailsTaskResponse, error)
- func (c *MpcClient) DeleteTranscodingTask(request *model.DeleteTranscodingTaskRequest) (*model.DeleteTranscodingTaskResponse, error)
- func (c *MpcClient) DeleteWatermarkTemplate(request *model.DeleteWatermarkTemplateRequest) (*model.DeleteWatermarkTemplateResponse, error)
- func (c *MpcClient) ListAnimatedGraphicsTask(request *model.ListAnimatedGraphicsTaskRequest) (*model.ListAnimatedGraphicsTaskResponse, error)
- func (c *MpcClient) ListEncryptTask(request *model.ListEncryptTaskRequest) (*model.ListEncryptTaskResponse, error)
- func (c *MpcClient) ListExtractTask(request *model.ListExtractTaskRequest) (*model.ListExtractTaskResponse, error)
- func (c *MpcClient) ListRemuxTask(request *model.ListRemuxTaskRequest) (*model.ListRemuxTaskResponse, error)
- func (c *MpcClient) ListTemplate(request *model.ListTemplateRequest) (*model.ListTemplateResponse, error)
- func (c *MpcClient) ListTemplateGroup(request *model.ListTemplateGroupRequest) (*model.ListTemplateGroupResponse, error)
- func (c *MpcClient) ListThumbnailsTask(request *model.ListThumbnailsTaskRequest) (*model.ListThumbnailsTaskResponse, error)
- func (c *MpcClient) ListTranscodeDetail(request *model.ListTranscodeDetailRequest) (*model.ListTranscodeDetailResponse, error)
- func (c *MpcClient) ListTranscodingTask(request *model.ListTranscodingTaskRequest) (*model.ListTranscodingTaskResponse, error)
- func (c *MpcClient) ListWatermarkTemplate(request *model.ListWatermarkTemplateRequest) (*model.ListWatermarkTemplateResponse, error)
- func (c *MpcClient) UpdateTemplateGroup(request *model.UpdateTemplateGroupRequest) (*model.UpdateTemplateGroupResponse, error)
- func (c *MpcClient) UpdateTransTemplate(request *model.UpdateTransTemplateRequest) (*model.UpdateTransTemplateResponse, error)
- func (c *MpcClient) UpdateWatermarkTemplate(request *model.UpdateWatermarkTemplateRequest) (*model.UpdateWatermarkTemplateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenReqDefForCancelRemuxTask ¶
func GenReqDefForCancelRemuxTask() *def.HttpRequestDef
func GenReqDefForCreateAnimatedGraphicsTask ¶
func GenReqDefForCreateAnimatedGraphicsTask() *def.HttpRequestDef
func GenReqDefForCreateEncryptTask ¶
func GenReqDefForCreateEncryptTask() *def.HttpRequestDef
func GenReqDefForCreateExtractTask ¶
func GenReqDefForCreateExtractTask() *def.HttpRequestDef
func GenReqDefForCreateRemuxTask ¶
func GenReqDefForCreateRemuxTask() *def.HttpRequestDef
func GenReqDefForCreateRetryRemuxTask ¶
func GenReqDefForCreateRetryRemuxTask() *def.HttpRequestDef
func GenReqDefForCreateTemplateGroup ¶
func GenReqDefForCreateTemplateGroup() *def.HttpRequestDef
func GenReqDefForCreateThumbnailsTask ¶
func GenReqDefForCreateThumbnailsTask() *def.HttpRequestDef
func GenReqDefForCreateTransTemplate ¶
func GenReqDefForCreateTransTemplate() *def.HttpRequestDef
func GenReqDefForCreateTranscodingTask ¶
func GenReqDefForCreateTranscodingTask() *def.HttpRequestDef
func GenReqDefForCreateWatermarkTemplate ¶
func GenReqDefForCreateWatermarkTemplate() *def.HttpRequestDef
func GenReqDefForDeleteAnimatedGraphicsTask ¶
func GenReqDefForDeleteAnimatedGraphicsTask() *def.HttpRequestDef
func GenReqDefForDeleteEncryptTask ¶
func GenReqDefForDeleteEncryptTask() *def.HttpRequestDef
func GenReqDefForDeleteExtractTask ¶
func GenReqDefForDeleteExtractTask() *def.HttpRequestDef
func GenReqDefForDeleteRemuxTask ¶
func GenReqDefForDeleteRemuxTask() *def.HttpRequestDef
func GenReqDefForDeleteTemplate ¶
func GenReqDefForDeleteTemplate() *def.HttpRequestDef
func GenReqDefForDeleteTemplateGroup ¶
func GenReqDefForDeleteTemplateGroup() *def.HttpRequestDef
func GenReqDefForDeleteThumbnailsTask ¶
func GenReqDefForDeleteThumbnailsTask() *def.HttpRequestDef
func GenReqDefForDeleteTranscodingTask ¶
func GenReqDefForDeleteTranscodingTask() *def.HttpRequestDef
func GenReqDefForDeleteWatermarkTemplate ¶
func GenReqDefForDeleteWatermarkTemplate() *def.HttpRequestDef
func GenReqDefForListAnimatedGraphicsTask ¶
func GenReqDefForListAnimatedGraphicsTask() *def.HttpRequestDef
func GenReqDefForListEncryptTask ¶
func GenReqDefForListEncryptTask() *def.HttpRequestDef
func GenReqDefForListExtractTask ¶
func GenReqDefForListExtractTask() *def.HttpRequestDef
func GenReqDefForListRemuxTask ¶
func GenReqDefForListRemuxTask() *def.HttpRequestDef
func GenReqDefForListTemplate ¶
func GenReqDefForListTemplate() *def.HttpRequestDef
func GenReqDefForListTemplateGroup ¶
func GenReqDefForListTemplateGroup() *def.HttpRequestDef
func GenReqDefForListThumbnailsTask ¶
func GenReqDefForListThumbnailsTask() *def.HttpRequestDef
func GenReqDefForListTranscodeDetail ¶
func GenReqDefForListTranscodeDetail() *def.HttpRequestDef
func GenReqDefForListTranscodingTask ¶
func GenReqDefForListTranscodingTask() *def.HttpRequestDef
func GenReqDefForListWatermarkTemplate ¶
func GenReqDefForListWatermarkTemplate() *def.HttpRequestDef
func GenReqDefForUpdateTemplateGroup ¶
func GenReqDefForUpdateTemplateGroup() *def.HttpRequestDef
func GenReqDefForUpdateTransTemplate ¶
func GenReqDefForUpdateTransTemplate() *def.HttpRequestDef
func GenReqDefForUpdateWatermarkTemplate ¶
func GenReqDefForUpdateWatermarkTemplate() *def.HttpRequestDef
func MpcClientBuilder ¶
func MpcClientBuilder() *http_client.HcHttpClientBuilder
Types ¶
type MpcClient ¶
type MpcClient struct {
// contains filtered or unexported fields
}
func NewMpcClient ¶
func NewMpcClient(hcClient *http_client.HcHttpClient) *MpcClient
func (*MpcClient) CancelRemuxTask ¶
func (c *MpcClient) CancelRemuxTask(request *model.CancelRemuxTaskRequest) (*model.CancelRemuxTaskResponse, error)
取消已下发的转封装任务,仅支持取消正在排队中的任务。。
func (*MpcClient) CreateAnimatedGraphicsTask ¶
func (c *MpcClient) CreateAnimatedGraphicsTask(request *model.CreateAnimatedGraphicsTaskRequest) (*model.CreateAnimatedGraphicsTaskResponse, error)
创建动图任务,用于将完整的视频文件或视频文件中的一部分转换为动态图文件,暂只支持输出GIF文件。 待转动图的视频文件需要存储在与媒体处理服务同区域的OBS桶中,且该OBS桶已授权。
func (*MpcClient) CreateEncryptTask ¶
func (c *MpcClient) CreateEncryptTask(request *model.CreateEncryptTaskRequest) (*model.CreateEncryptTaskResponse, error)
支持独立加密,包括创建、查询、删除独立加密任务。 约束: - 只支持转码后的文件进行加密。 - 加密的文件必须是m3u8或者mpd结尾的文件。
func (*MpcClient) CreateExtractTask ¶
func (c *MpcClient) CreateExtractTask(request *model.CreateExtractTaskRequest) (*model.CreateExtractTaskResponse, error)
创建视频解析任务,解析视频元数据。
func (*MpcClient) CreateRemuxTask ¶
func (c *MpcClient) CreateRemuxTask(request *model.CreateRemuxTaskRequest) (*model.CreateRemuxTaskResponse, error)
创建转封装任务,转换音视频文件的格式,但不改变其分辨率和码率。 待转封装的媒资文件需要存储在与媒体处理服务同区域的OBS桶中,且该OBS桶已授权。
func (*MpcClient) CreateRetryRemuxTask ¶
func (c *MpcClient) CreateRetryRemuxTask(request *model.CreateRetryRemuxTaskRequest) (*model.CreateRetryRemuxTaskResponse, error)
对失败的转封装任务进行重试。
func (*MpcClient) CreateTemplateGroup ¶
func (c *MpcClient) CreateTemplateGroup(request *model.CreateTemplateGroupRequest) (*model.CreateTemplateGroupResponse, error)
新建转码模板组,最多支持一进六出。
func (*MpcClient) CreateThumbnailsTask ¶
func (c *MpcClient) CreateThumbnailsTask(request *model.CreateThumbnailsTaskRequest) (*model.CreateThumbnailsTaskResponse, error)
新建截图任务,视频截图将从首帧开始,按设置的时间间隔截图,最后截取末帧。 待截图的视频文件需要存储在与媒体处理服务同区域的OBS桶中,且该OBS桶已授权。 约束: 暂只支持生成JPG格式的图片文件。
func (*MpcClient) CreateTransTemplate ¶
func (c *MpcClient) CreateTransTemplate(request *model.CreateTransTemplateRequest) (*model.CreateTransTemplateResponse, error)
新建转码模板,采用自定义的模板转码。
func (*MpcClient) CreateTranscodingTask ¶
func (c *MpcClient) CreateTranscodingTask(request *model.CreateTranscodingTaskRequest) (*model.CreateTranscodingTaskResponse, error)
新建转码任务可以将视频进行转码,并在转码过程中压制水印、内容质检、视频截图等。视频转码前需要配置转码模板。 待转码的音视频需要存储在与媒体处理服务同区域的OBS桶中,且该OBS桶已授权。
func (*MpcClient) CreateWatermarkTemplate ¶
func (c *MpcClient) CreateWatermarkTemplate(request *model.CreateWatermarkTemplateRequest) (*model.CreateWatermarkTemplateResponse, error)
自定义水印模板。
func (*MpcClient) DeleteAnimatedGraphicsTask ¶
func (c *MpcClient) DeleteAnimatedGraphicsTask(request *model.DeleteAnimatedGraphicsTaskRequest) (*model.DeleteAnimatedGraphicsTaskResponse, error)
取消已下发的生成动图任务,仅支持取消正在排队中的任务。
func (*MpcClient) DeleteEncryptTask ¶
func (c *MpcClient) DeleteEncryptTask(request *model.DeleteEncryptTaskRequest) (*model.DeleteEncryptTaskResponse, error)
取消独立加密任务。 约束: 只能取消正在任务队列中排队的任务。已开始加密或已完成的加密任务不能取消。
func (*MpcClient) DeleteExtractTask ¶
func (c *MpcClient) DeleteExtractTask(request *model.DeleteExtractTaskRequest) (*model.DeleteExtractTaskResponse, error)
取消已下发的视频解析任务,仅支持取消正在排队中的任务。
func (*MpcClient) DeleteRemuxTask ¶
func (c *MpcClient) DeleteRemuxTask(request *model.DeleteRemuxTaskRequest) (*model.DeleteRemuxTaskResponse, error)
删除转封装任务
func (*MpcClient) DeleteTemplate ¶
func (c *MpcClient) DeleteTemplate(request *model.DeleteTemplateRequest) (*model.DeleteTemplateResponse, error)
删除转码模板。
func (*MpcClient) DeleteTemplateGroup ¶
func (c *MpcClient) DeleteTemplateGroup(request *model.DeleteTemplateGroupRequest) (*model.DeleteTemplateGroupResponse, error)
删除转码模板组。
func (*MpcClient) DeleteThumbnailsTask ¶
func (c *MpcClient) DeleteThumbnailsTask(request *model.DeleteThumbnailsTaskRequest) (*model.DeleteThumbnailsTaskResponse, error)
取消已下发截图任务。 只能取消已接受尚在队列中等待处理的任务,已完成或正在执行阶段的任务不能取消。
func (*MpcClient) DeleteTranscodingTask ¶
func (c *MpcClient) DeleteTranscodingTask(request *model.DeleteTranscodingTaskRequest) (*model.DeleteTranscodingTaskResponse, error)
取消已下发转码任务。 只能取消正在转码任务队列中排队的转码任务。已开始转码或已完成的转码任务不能取消。
func (*MpcClient) DeleteWatermarkTemplate ¶
func (c *MpcClient) DeleteWatermarkTemplate(request *model.DeleteWatermarkTemplateRequest) (*model.DeleteWatermarkTemplateResponse, error)
删除自定义水印模板。
func (*MpcClient) ListAnimatedGraphicsTask ¶
func (c *MpcClient) ListAnimatedGraphicsTask(request *model.ListAnimatedGraphicsTaskRequest) (*model.ListAnimatedGraphicsTaskResponse, error)
查询动图任务的状态。
func (*MpcClient) ListEncryptTask ¶
func (c *MpcClient) ListEncryptTask(request *model.ListEncryptTaskRequest) (*model.ListEncryptTaskResponse, error)
查询独立加密任务状态。返回任务执行结果或当前状态。
func (*MpcClient) ListExtractTask ¶
func (c *MpcClient) ListExtractTask(request *model.ListExtractTaskRequest) (*model.ListExtractTaskResponse, error)
查询解析任务的状态和结果。
func (*MpcClient) ListRemuxTask ¶
func (c *MpcClient) ListRemuxTask(request *model.ListRemuxTaskRequest) (*model.ListRemuxTaskResponse, error)
查询转封装任务状态。
func (*MpcClient) ListTemplate ¶
func (c *MpcClient) ListTemplate(request *model.ListTemplateRequest) (*model.ListTemplateResponse, error)
查询用户自定义转码配置模板。 支持指定模板ID查询,或分页全量查询。转码配置模板ID,最多10个。
func (*MpcClient) ListTemplateGroup ¶
func (c *MpcClient) ListTemplateGroup(request *model.ListTemplateGroupRequest) (*model.ListTemplateGroupResponse, error)
查询转码模板组列表。
func (*MpcClient) ListThumbnailsTask ¶
func (c *MpcClient) ListThumbnailsTask(request *model.ListThumbnailsTaskRequest) (*model.ListThumbnailsTaskResponse, error)
查询截图任务状态。返回任务执行结果,包括状态、输入、输出等信息。
func (*MpcClient) ListTranscodeDetail ¶
func (c *MpcClient) ListTranscodeDetail(request *model.ListTranscodeDetailRequest) (*model.ListTranscodeDetailResponse, error)
查询媒资转码详情
func (*MpcClient) ListTranscodingTask ¶
func (c *MpcClient) ListTranscodingTask(request *model.ListTranscodingTaskRequest) (*model.ListTranscodingTaskResponse, error)
查询转码任务状态。
func (*MpcClient) ListWatermarkTemplate ¶
func (c *MpcClient) ListWatermarkTemplate(request *model.ListWatermarkTemplateRequest) (*model.ListWatermarkTemplateResponse, error)
查询自定义水印模板。支持指定模板ID查询,或分页全量查询。
func (*MpcClient) UpdateTemplateGroup ¶
func (c *MpcClient) UpdateTemplateGroup(request *model.UpdateTemplateGroupRequest) (*model.UpdateTemplateGroupResponse, error)
修改模板组接口。
func (*MpcClient) UpdateTransTemplate ¶
func (c *MpcClient) UpdateTransTemplate(request *model.UpdateTransTemplateRequest) (*model.UpdateTransTemplateResponse, error)
更新转码模板。
func (*MpcClient) UpdateWatermarkTemplate ¶
func (c *MpcClient) UpdateWatermarkTemplate(request *model.UpdateWatermarkTemplateRequest) (*model.UpdateWatermarkTemplateResponse, error)
更新自定义水印模板。