aliyun_api v1.1.2 AliyunAPI.VOD
Link to this section Summary
Functions
url: https://help.aliyun.com/document_detail/55619.html
url: https://help.aliyun.com/document_detail/55407.html
https://help.aliyun.com/document_detail/89744.html
https://help.aliyun.com/document_detail/93109.html
https://help.aliyun.com/document_detail/62130.html
https://help.aliyun.com/document_detail/52837
https://help.aliyun.com/document_detail/89742.html
https://help.aliyun.com/document_detail/59624.html
https://help.aliyun.com/document_detail/56124.html
https://help.aliyun.com/document_detail/52835.html
https://help.aliyun.com/document_detail/86042.html
https://help.aliyun.com/document_detail/52838.html
https://help.aliyun.com/document_detail/52833.html
url: https://help.aliyun.com/document_detail/55408.html
https://help.aliyun.com/document_detail/86044.html
https://help.aliyun.com/document_detail/68570.html
https://help.aliyun.com/document_detail/91004.html
https://help.aliyun.com/document_detail/52836.html
Link to this section Functions
create_upload_image(opts \\ [])
url: https://help.aliyun.com/document_detail/55619.html
opts
- :
title
- :
image_type
图片类型。
取值范围:
default(默认)
cover(封面)
watermark(水印)
:
image_ext
png, jpg, jpeg:
tags
数组
create_upload_video(opts \\ [])
url: https://help.aliyun.com/document_detail/55407.html
opts
- :
title
[必须] - :
file_name
[必须] - :
file_size
- :
description
- :
cover_url
- :
category_id
- :
tags
- :
template_group_id
- :
user_data
- :
storage_location
存储地址。当不为空时,会使用该指定的存储地址上传视频文件。可在 点播控制台 > 存储管理 里查看存储地址。
delete_image(delete_image_type, opts \\ [])
https://help.aliyun.com/document_detail/89744.html
删除图片
delete_image_type
图片类型。
- ImageURL,图片URL。
- ImageId,图片ID。
- VideoId, 视频图片。
opts
- :image_urls
- :image_ids
- :video_id
- :image_type
delete_mezzanines(video_ids, opts \\ [])
https://help.aliyun.com/document_detail/93109.html
批量删除源文件
video_ids
视频ID列表。一次最多支持20个视频ID,多个用逗号分隔。
opts
- :
force
强制删除源文件,默认取值为false。 注:当视频转码模式为不转码即分片或异步转码时,由于源文件会作为原画用于播放,默认不可删除该视频的源文件,若需要强制删除该视频的源文件,可将值置为true。
delete_stream(video_id, job_ids, opts \\ [])
https://help.aliyun.com/document_detail/62130.html
删除媒体流
video_id
job_ids
delete_video(app, video_ids \\ [])
https://help.aliyun.com/document_detail/52837
删除视频
- :
video_ids
get_image_info(image_id, opts \\ [])
https://help.aliyun.com/document_detail/89742.html
获取图片信息
image_id
opts
: auth_timeout
get_mezzanine_info(video_id, opts \\ [])
https://help.aliyun.com/document_detail/59624.html
获取视频源文件地址。
video_id
opts
- :
auth_timeout
- :
output_type
- :
addition_type
get_play_info(video_id, opts \\ [])
https://help.aliyun.com/document_detail/56124.html
通过视频ID直接获取媒体文件(支持视频和音频)的播放地址。
video_id
opts
- :
formats
- :
auth_timeout
- :
stream_type
- :
definition
- :
result_type
- Single(每种清晰度和格式只返回一路最新转码完成的流) [默认]
- Multiple(每种清晰度和格式返回所有转码完成的流)
- :
output_type
- :
play_config
get_video_info(video_id, opts \\ [])
https://help.aliyun.com/document_detail/52835.html
通过视频ID获取视频的基本信息,包括视频标题、描述、时长、封面URL、状态、创建时间、大小、截图、分类和标签等。
video_id
opts
get_video_infos(video_ids, opts \\ [])
https://help.aliyun.com/document_detail/86042.html
通过视频ID列表获取多个视频的基本信息,包括视频标题、描述、时长、封面URL、状态、创建时间、大小、截图、分类和标签等。
video_ids
get_video_list(opts \\ [])
https://help.aliyun.com/document_detail/52838.html
获取视频信息列表
opts
:
status
视频状态。默认获取所有视频,多个用逗号分隔,如:Uploading,Normal。取值范围:- Uploading(上传中)
- UploadSucc(上传完成)
- Transcoding(转码中)
- TranscodeFail(转码失败)
- Checking(审核中)
- Blocked(屏蔽)
- Normal(正常)
:start_time
:end_time
:category_id
:page
:limit
:sort_by
get_video_play_auth(video_id, opts \\ [])
https://help.aliyun.com/document_detail/52833.html
获取视频播放时所需的播放凭证。
video_id
opts
- :
auth_info_timeout
- :
play_config
get_videos(opts \\ [])
refresh_upload_video(opts \\ [])
url: https://help.aliyun.com/document_detail/55408.html
opts
- :
video_id
search_media(opts \\ [])
https://help.aliyun.com/document_detail/86044.html
搜索媒体信息(视频、音频等)。
opts
- :
search_type
搜索数据类型。取值范围:
video(视频,默认值)
audio(音频)
image(图片)
:
fields
:
match
:
scroll_token
:
page
:
limit
:
sort_by
:
status
状态码的文档:https://help.aliyun.com/document_detail/52839.html
submit_transcode_jobs(video_id, template_group_id, opts \\ [])
https://help.aliyun.com/document_detail/68570.html
提交转码作业
video_id
template_group_id
opts
- :
encrypt_config
update_image_infos(update_contents, opts \\ [])
https://help.aliyun.com/document_detail/91004.html
批量修改视频信息
update_contents
update_video_info(video_id, opts \\ [])
https://help.aliyun.com/document_detail/52836.html
修改视频信息
video_id
opts
- :
title
- :
description
- :
cover_url
- :
category_id
- :
tags