vod

package
v3.2.44 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseClient *kernel.BaseClient
}

func RegisterProvider

func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)

func (*Client) AddAccountAuthorized added in v3.2.26

func (comp *Client) AddAccountAuthorized(ctx context.Context, in *request.AccountAuthorizedRequest) (result *response.BaseResponse, err error)

增加账号授权 该接口用于授权方给被授权方授权所有剧目的播放权限。 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_6-1-%E5%A2%9E%E5%8A%A0%E8%B4%A6%E5%8F%B7%E6%8E%88%E6%9D%83

func (*Client) AddDramaAuthorized added in v3.2.26

func (comp *Client) AddDramaAuthorized(ctx context.Context, in *request.DramaAuthorizedRequest) (result *response.DramaAuthorizedResponse, err error)

增加剧目授权 该接口用于授权方给被授权方授权一些剧目的播放权限。 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_5-1-%E5%A2%9E%E5%8A%A0%E5%89%A7%E7%9B%AE%E6%8E%88%E6%9D%83

func (*Client) ApplyMediaChunkUpload added in v3.2.26

func (comp *Client) ApplyMediaChunkUpload(ctx context.Context, in *request.VideoApplyChunkUploadRequest) (result *response.VideoApplyChunkUploadResponse, err error)

分片上传 将文件的其中一个分片上传到平台,最多支持100个分片,每个分片大小为5MB,最后一个分片可以小于5MB。该接口适用于视频和封面图片。视频最大支持500MB,封面图片最大支持10MB。 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_1-5-%E4%B8%8A%E4%BC%A0%E5%88%86%E7%89%87

func (*Client) ApplyMediaUploadId added in v3.2.26

分片上传申请 上传大文件时需使用分片上传方式,分为 3 个步骤: 1.申请分片上传,确定文件名、格式类型,返回 upload_id,唯一标识本次分片上传。 2.上传分片,多次调用上传文件分片,需要携带 part_number 和 upload_id,其中 part_number 为分片的编号,支持乱序上传。当传入 part_number 和 upload_id 都相同的时候,后发起上传请求的分片将覆盖之前的分片。 3.确认分片上传,当上传完所有分片后,需要完成整个文件的合并。请求体中需要给出每一个分片的 part_number 和 etag,用来校验分片的准确性,最后返回文件的 media_id。 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_1-4-%E7%94%B3%E8%AF%B7%E5%88%86%E7%89%87%E4%B8%8A%E4%BC%A0

func (*Client) DeleteMedia added in v3.0.39

func (comp *Client) DeleteMedia(ctx context.Context, mediaId int64) (result *response.BaseResponse, err error)

删除媒资 该接口用于删除指定媒资。 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_2-4-%E5%88%A0%E9%99%A4%E5%AA%92%E8%B5%84

func (*Client) GetDramaInfo added in v3.0.39

func (comp *Client) GetDramaInfo(ctx context.Context, dramaId int64) (result *response.GetDramaInfoResponse, err error)

获取剧目信息 该接口用于查询已提交的剧目。 本接口返回的图片链接均为临时链接,不应将其保存下来。 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_3-3-%E8%8E%B7%E5%8F%96%E5%89%A7%E7%9B%AE%E4%BF%A1%E6%81%AF

func (*Client) GetMediaInfo added in v3.0.39

func (comp *Client) GetMediaInfo(ctx context.Context, mediaId int64) (result *response.MediaInfoResponse, err error)

获取媒资详细信息 该接口用于获取已上传到平台的指定媒资信息,用于开发者后台管理使用。用于给用户客户端播放的链接应该使用getmedialink接口获取 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_2-2-%E8%8E%B7%E5%8F%96%E5%AA%92%E8%B5%84%E8%AF%A6%E7%BB%86%E4%BF%A1%E6%81%AF

func (comp *Client) GetMediaLink(ctx context.Context, in *request.GetMediaLinkRequest) (result *response.MediaLinkResponse, err error)

获取媒资播放链接 需要提审后才能调用该接口,不然会返回未审核通过 该接口用于获取视频临时播放链接,用于给用户的播放使用。只有审核通过的视频才能通过该接口获取播放链接。 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_2-3-%E8%8E%B7%E5%8F%96%E5%AA%92%E8%B5%84%E6%92%AD%E6%94%BE%E9%93%BE%E6%8E%A5

func (*Client) GetMediaList added in v3.0.39

func (comp *Client) GetMediaList(ctx context.Context, in *request.MediaListRequest) (result *response.MediaListResponse, err error)

获取媒资列表 该接口用于获取已上传到平台的媒资列表。 本接口返回的视频或图片链接均为临时链接,不应将其保存下来。 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_2-1-%E8%8E%B7%E5%8F%96%E5%AA%92%E8%B5%84%E5%88%97%E8%A1%A8

func (*Client) RelieveAccountAuthorized added in v3.2.26

func (comp *Client) RelieveAccountAuthorized(ctx context.Context, in *request.AccountAuthorizedRequest) (result *response.BaseResponse, err error)

解除账号授权 该接口用于授权方解除被授权方的播放授权。 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_6-2-%E8%A7%A3%E9%99%A4%E8%B4%A6%E5%8F%B7%E6%8E%88%E6%9D%83

func (*Client) RelieveDramaAuthorized added in v3.2.26

func (comp *Client) RelieveDramaAuthorized(ctx context.Context, in *request.DramaAuthorizedRequest) (result *response.DramaAuthorizedResponse, err error)

解除剧目授权 该接口用于授权方解除被授权方一些剧目的播放授权。 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_5-2-%E8%A7%A3%E9%99%A4%E5%89%A7%E7%9B%AE%E6%8E%88%E6%9D%83

func (*Client) ReplaceAuditDrama added in v3.2.26

func (comp *Client) ReplaceAuditDrama(ctx context.Context, in *request.ReplaceAuditDramaRequest) (result *response.BaseResponse, err error)

替换审核通过的剧集 该接口用于替换剧目审核通过的剧集。替换后可使用新的media_id获取播放链接,替换后旧media_id的播放链接不会马上失效,并且在7天内依然可以获取播放链接。为避免影响业务,调用该接口成功后,请及时替换获取播放链接时使用的media_id。 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_3-5-%E6%9B%BF%E6%8D%A2%E5%AE%A1%E6%A0%B8%E9%80%9A%E8%BF%87%E7%9A%84%E5%89%A7%E9%9B%86

func (*Client) SearchDoAccountAuthorized added in v3.2.26

func (comp *Client) SearchDoAccountAuthorized(ctx context.Context) (result *response.SearchAccountAuthorizedResponse, err error)

查询被账号授权信息 该接口用于被授权方查询自己被账号授权的信息。 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_6-4-%E6%9F%A5%E8%AF%A2%E8%A2%AB%E8%B4%A6%E5%8F%B7%E6%8E%88%E6%9D%83%E4%BF%A1%E6%81%AF

func (*Client) SearchMediaByTaskId added in v3.0.39

func (comp *Client) SearchMediaByTaskId(ctx context.Context, taskId int64) (result *response.VideoMediaSearchTaskResponse, err error)

查询任务 通过上传接口获得的taskid 进行查询 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_1-2-%E6%8B%89%E5%8F%96%E4%B8%8A%E4%BC%A0

func (*Client) SubmitAudit added in v3.0.39

func (comp *Client) SubmitAudit(ctx context.Context, in *request.SubmitAuditRequest) (result *response.SubmitAuditResponse, err error)

剧目提审 该接口用于提交剧目审核。 剧目信息与审核材料在首次提审时为必填,重新提审时根据是否需要修改选填, https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_3-1-%E5%89%A7%E7%9B%AE%E6%8F%90%E5%AE%A1

func (*Client) SubmitReplaceDramaAudit added in v3.2.26

func (comp *Client) SubmitReplaceDramaAudit(ctx context.Context, in *request.SubmitReplaceDramaAuditRequest) (result *response.BaseResponse, err error)

提交替换剧集审核 该接口用于提交剧目替换剧集审核。待审核通过后7天内可使用替换审核通过的剧集接口(replacedramamedia)正式替换剧目中的相应的剧集,之后可以使用新的media_id播放。如7天内没有使用replacedramamedia进行剧集替换,则之后无法再发起替换。 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_3-3-%E8%8E%B7%E5%8F%96%E5%89%A7%E7%9B%AE%E4%BF%A1%E6%81%AF

func (*Client) UpdateDramaInfo added in v3.2.18

func (comp *Client) UpdateDramaInfo(ctx context.Context, in *request.UpdateDramaInfoRequest) (result *response.BaseResponse, err error)

修改剧目基本信息 该接口用于修改剧目基本信息。请求成功后,需要经过审核,审核通过后,最终才会修改基本信息。审核完成后,会下发通知。 1.剧目必须已经审核通过。 2.审核完成后会发送[事件通知] https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_3-6-%E4%BF%AE%E6%94%B9%E5%89%A7%E7%9B%AE%E5%9F%BA%E6%9C%AC%E4%BF%A1%E6%81%AF

func (*Client) UploadMediaChunkComplete added in v3.2.26

func (comp *Client) UploadMediaChunkComplete(ctx context.Context, in *request.VideoChunkUploadCompleteRequest) (result *response.VideoChunkUploadCompleteResponse, err error)

分片上传确认结束 该接口用于完成整个分片上传流程,合并所有文件分片,确认媒体文件(和封面图片文件)上传到平台的结果,返回文件的 ID。请求中需要给出每一个分片的 part_number 和 etag,用来校验分片的准确性。 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_1-6-%E7%A1%AE%E8%AE%A4%E4%B8%8A%E4%BC%A0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL