Create VOD
POST/bv/cms/v1/vods
Creates a VOD form source file and specified profile set.
Required field(s):
name
profile_set_id
source
queue
security
schedule
Request
Header Parameters
To invoke this API using api_token
, you need to set the x-bv-org-id
header to specify the organization for which you want to perform the action.
- application/json
Body
required
- Array [
- Array [
- ]
- ]
- Array [
- Array [
- ]
- ]
- Array [
- Array [
- ]
- ]
- Array [
- Array [
- ]
- ]
- Array [
- ]
- SECURITY_PRIVACY_TYPE_PUBLIC: The viewers can access the content without any restriction.
- SECURITY_PRIVACY_TYPE_TOKEN: The viewers can access the content with tokens or redeem codes.
- PROTECTION_TYPE_DRM: The content will protected by DRM.
- Array [
- ]
Required. The name of VOD resource.
Required. Indicate the profile set unique id that defines the encoding settings.
source objectrequired
Required. Indicate the source file that you want to encode.
Possible values: [SOURCE_TYPE_LIBRARY
, SOURCE_TYPE_CLOUD_STORAGE
]
Indicates the Source type, should match the following library or cloud_storage setting.
library object
Indicates the source file is from BlendVision One library.
video object
Indicates the video source file.
The unique id of the library video file.
subtitles object[]
Indicates the subtitle source files.
The unique id of the library subtitle file.
The name of the subtitle file.
The language code of the subtitle. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The display name of the subtitle file.
translate_settings object[]
The translate settings of the subtitle. It's only supported in AddVODSubtitles
, TranslateVODSubtitle
and CreateVOD
API.
The language code of the source subtitle file. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The target language code you want to translate into. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The display name of the translated subtitle file.
stt_subtitles object[]
Indicates auto-gen subtitles.
The number of audio track.
The language code of the subtitle file. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The display name of the subtitle file.
translate_settings object[]
The translate settings of the subtitle. It's only supported in AddVODSubtitles
, TranslateVODSubtitle
and CreateVOD
API.
The language code of the source subtitle file. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The target language code you want to translate into. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The display name of the translated subtitle file.
cloud_storage object
Indicates the source file is from the customer's own configured cloud storage, it's not supported for AOD.
Indicates the relative path of the video source file.
subtitles object[]
Indicates the subtitle source files.
The unique id of the library subtitle file.
The name of the subtitle file.
The language code of the subtitle. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The display name of the subtitle file.
translate_settings object[]
The translate settings of the subtitle. It's only supported in AddVODSubtitles
, TranslateVODSubtitle
and CreateVOD
API.
The language code of the source subtitle file. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The target language code you want to translate into. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The display name of the translated subtitle file.
stt_subtitles object[]
Indicates auto-gen subtitles.
The number of audio track.
The language code of the subtitle file. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The display name of the subtitle file.
translate_settings object[]
The translate settings of the subtitle. It's only supported in AddVODSubtitles
, TranslateVODSubtitle
and CreateVOD
API.
The language code of the source subtitle file. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The target language code you want to translate into. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The display name of the translated subtitle file.
Possible values: [QUEUE_STANDARD
, QUEUE_PRIORITY
]
Required. Indicates which queue this encoding job will be executed on.
pte object
Possible values: [PTE_PROFILE_HIGH
]
metadata object
The short description of the resource.
The long description of the resource.
labels object[]
Optional. The labels of the resource. The maximum length of labels is 20
.
Required. The label name. The maximum length of the name is 20
.
security objectrequired
Required. The security setting of the VOD.
privacy objectrequired
Required. Specify the content visibility.
Possible values: [SECURITY_PRIVACY_TYPE_PUBLIC
, SECURITY_PRIVACY_TYPE_TOKEN
]
token object
Optional. Required if type
is SECURITY_PRIVACY_TYPE_TOKEN
.
Optional. The limit of the concurrent devices for a token or a redeem code. Default: 0 (Unlimited). Maximum: 1000.
watermark object
Optional. Add watermarks to the player when playing the content, it's not supported for AOD.
Required. Enable watermark.
Possible values: [WATERMARK_TYPE_IMAGE
, WATERMARK_TYPE_USER_ID
]
Required. Indicates the type of watermark.
Possible values: [WATERMARK_POSITION_BOTTOM_RIGHT
, WATERMARK_POSITION_BOTTOM_MIDDLE
, WATERMARK_POSITION_BOTTOM_LEFT
, WATERMARK_POSITION_CENTER_RIGHT
, WATERMARK_POSITION_CENTER_LEFT
, WATERMARK_POSITION_TOP_RIGHT
, WATERMARK_POSITION_TOP_MIDDLE
, WATERMARK_POSITION_TOP_LEFT
, WATERMARK_POSITION_RANDOM
, WATERMARK_POSITION_CUSTOM
]
Required. The position of the watermark.
image object
Optional. Required if type
is WATERMARK_TYPE_IMAGE
.
Required. The library id of the image.
Required. The size of the watermark. The range of values that can be set is from 1 to 50.
offset object
Optional. Required if type
is WATERMARK_POSITION_CUSTOM
.
Required. The x-axis position of the watermark. Represented as a percentage of the image width. The range of values that can be set is from 1 to 100.
Required. The y-axis position of the watermark. Represented as a percentage of the image height. The range of values that can be set is from 1 to 100.
domain_control object
Optional. Specify the domains that will be allowed to embed the iframe.
Optional. Enable domain control.
Optional. The list of domains that will be allowed to embed the iframe.
protection object
Optional. Immutable. The content encryption.
Possible values: [PROTECTION_TYPE_DRM
]
Immutable. Specify the alpha-2 codes (See: https://www.iban.com/country-codes) to restrict access to the content by geo locations. Allow all regions when empty.
schedule objectrequired
Required. The schedule setting of the VOD.
Enable VOD viewing schedule or not.
VOD viewing start time. Users can only watch the VOD within the specified start time and end time.
VOD viewing end time. Users can only watch the VOD within the specified start time and end time.
export object
Optional. The export setting of the VOD.
cloud_storage object
Export encoded files to cloud storage.
The unique id of cloud storage.
byo_cdn object
Optional. The setting of bring-your-own cdn.
Optional. Enable BYO(Bring-your-own) CDN or not.
Optional. The id of BYO CDN host that you set in the general settings, it's necessary when byo cdn is enabled.
player object
Optional. Customize the preferences on player.
permission objectrequired
Required. The permissions of vod.
Possible values: [ACCESS_ROLE_DENY
, ACCESS_ROLE_SUPER_EDITOR
, ACCESS_ROLE_EDITOR
, ACCESS_ROLE_VIEWER
]
assignments object[]
Required. Output Only. if the assigned_type
is ASSIGNED_TYPE_USER
, the id is user id.
if the assigned_type
is ASSIGNED_TYPE_GROUP
, the id is group id.
Possible values: [ASSIGNED_TYPE_USER
, ASSIGNED_TYPE_GROUP
]
Possible values: [ACCESS_ROLE_DENY
, ACCESS_ROLE_SUPER_EDITOR
, ACCESS_ROLE_EDITOR
, ACCESS_ROLE_VIEWER
]
Responses
- 200
- 400
- 401
- 403
- 500
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
- Array [
- Array [
- ]
- ]
- Array [
- Array [
- ]
- ]
- Array [
- Array [
- ]
- ]
- Array [
- ]
- Array [
- ]
- Array [
- Array [
- Array [
- Array [
- ]
- ]
- ]
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
- SECURITY_PRIVACY_TYPE_PUBLIC: The viewers can access the content without any restriction.
- SECURITY_PRIVACY_TYPE_TOKEN: The viewers can access the content with tokens or redeem codes.
- PROTECTION_TYPE_DRM: The content will protected by DRM.
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- Array [
- ]
- ]
vod object
Output only. The unique id of VOD resource.
Output only. The name of VOD resource.
source object
Output only. Indicate the source file that you want to encode.
Possible values: [SOURCE_TYPE_LIBRARY
, SOURCE_TYPE_CLOUD_STORAGE
]
Indicates the Source type, should match the following library or cloud_storage setting.
library object
Indicates the source file is from BlendVision One library.
video object
Indicates the video source file.
The unique id of the library video file.
subtitles object[]
Indicates the subtitle source files.
The unique id of the library subtitle file.
The name of the subtitle file.
The language code of the subtitle. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The display name of the subtitle file.
translate_settings object[]
The translate settings of the subtitle. It's only supported in AddVODSubtitles
, TranslateVODSubtitle
and CreateVOD
API.
The language code of the source subtitle file. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The target language code you want to translate into. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The display name of the translated subtitle file.
stt_subtitles object[]
Indicates auto-gen subtitles.
The number of audio track.
The language code of the subtitle file. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The display name of the subtitle file.
translate_settings object[]
The translate settings of the subtitle. It's only supported in AddVODSubtitles
, TranslateVODSubtitle
and CreateVOD
API.
The language code of the source subtitle file. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The target language code you want to translate into. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The display name of the translated subtitle file.
cloud_storage object
Indicates the source file is from the customer's own configured cloud storage, it's not supported for AOD.
Indicates the relative path of the video source file.
subtitles object[]
Indicates the subtitle source files.
The unique id of the library subtitle file.
The name of the subtitle file.
The language code of the subtitle. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The display name of the subtitle file.
translate_settings object[]
The translate settings of the subtitle. It's only supported in AddVODSubtitles
, TranslateVODSubtitle
and CreateVOD
API.
The language code of the source subtitle file. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The target language code you want to translate into. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The display name of the translated subtitle file.
stt_subtitles object[]
Indicates auto-gen subtitles.
The number of audio track.
The language code of the subtitle file. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The display name of the subtitle file.
translate_settings object[]
The translate settings of the subtitle. It's only supported in AddVODSubtitles
, TranslateVODSubtitle
and CreateVOD
API.
The language code of the source subtitle file. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The target language code you want to translate into. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The display name of the translated subtitle file.
profile_set object
Output only. Indicate the profile set that defines the encoding settings.
Output only. The resource identifier of profile set.
Input only. The name of profile set.
Possible values: [PROTOCOL_HLS
, PROTOCOL_DASH
, PROTOCOL_WHEP
, PROTOCOL_PROGRESSIVE
]
Input only. The protocols.
Input only. Smart abr.
multiple_audio_track object
Input only.
Possible values: [LANG_FROM_SOURCE
, LANG_FROM_CUSTOMIZE
, LANG_FROM_FIRST_TRACK
]
lang_customizes object[]
The language code of the audio track. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
Possible values: [VIDEO_CODEC_H264
, VIDEO_CODEC_H265
]
Input only. The video codec.
profiles object[]
Output only.
Output only. The resource identifier of profile.
Input only. The name of profile.
Possible values: [VIDEO_CODEC_H264
, VIDEO_CODEC_H265
]
Input only. The video codec.
Input only. The video width in pixels.
Input only. The video height in pixels.
Input only. The video bitrate.
Input only. The audio bitrate.
Possible values: [CODEC_PROFILE_AUTO
, CODEC_PROFILE_BASELINE
, CODEC_PROFILE_MAIN
, CODEC_PROFILE_HIGH
, CODEC_PROFILE_MAIN10
]
Input only. H.264/H.265 codec profile.
Possible values: [CODEC_PROFILE_LEVEL_AUTO
, CODEC_PROFILE_LEVEL_1
, CODEC_PROFILE_LEVEL_1_1
, CODEC_PROFILE_LEVEL_1_2
, CODEC_PROFILE_LEVEL_1_3
, CODEC_PROFILE_LEVEL_2
, CODEC_PROFILE_LEVEL_2_1
, CODEC_PROFILE_LEVEL_2_2
, CODEC_PROFILE_LEVEL_3
, CODEC_PROFILE_LEVEL_3_1
, CODEC_PROFILE_LEVEL_3_2
, CODEC_PROFILE_LEVEL_4
, CODEC_PROFILE_LEVEL_4_1
, CODEC_PROFILE_LEVEL_4_2
, CODEC_PROFILE_LEVEL_5
, CODEC_PROFILE_LEVEL_5_1
, CODEC_PROFILE_LEVEL_5_2
, CODEC_PROFILE_LEVEL_6
]
Input only. Specify level for H.264/H.265.
Input only. Enable/Disable B-frame.
Possible values: [FRAME_RATE_10
, FRAME_RATE_15
, FRAME_RATE_23_97
, FRAME_RATE_24
, FRAME_RATE_25
, FRAME_RATE_29_97
, FRAME_RATE_30
, FRAME_RATE_50
, FRAME_RATE_59_94
, FRAME_RATE_60
, FRAME_RATE_SOURCE
]
Input only. The video frame rate.
Input only. GOP size (keyframe interval) in seconds.
Input only. Length of video duration for each segment package in seconds.
Possible values: [RESOLUTION_TYPE_SD
, RESOLUTION_TYPE_HD
, RESOLUTION_TYPE_FHD
, RESOLUTION_TYPE_4K
]
Output only. The prest is system or custom. If preset is true, the profile set is created by system, otherwise the profile set is created by custom.
Possible values: [QUEUE_STANDARD
, QUEUE_PRIORITY
]
Output only. Indicates which queue this encoding job was executed on before.
pte object
Output only. Per-title encoding.
Possible values: [PTE_PROFILE_HIGH
]
stream object[]
Output Only. Indicate the streaming resource of the VOD.
manifests object[]
Indicates the manifest resources.
Possible values: [PROTOCOL_HLS
, PROTOCOL_DASH
, PROTOCOL_WHEP
, PROTOCOL_PROGRESSIVE
]
Indicates the streaming protocol of manifest.
uris object[]
Indicates the uri array of manifest.
resolutions object[]
The resolution of the manifest.
The video resolution height.
The video resolution width.
The streaming uri of the manifest.
thumbnail object
Indicates the thumbnail resource.
Thumbnail seeking uri.
labels object[]
Output Only. Indicate the label of the VOD.
Required. The label name. The maximum length of the name is 20
.
Output Only. Indicate the create time of the VOD.
Possible values: [VOD_STATUS_CREATED
, VOD_STATUS_INGESTED
, VOD_STATUS_QUEUED
, VOD_STATUS_ENCODED
, VOD_STATUS_DEPLOYED
, VOD_STATUS_SUCCEEDED
, VOD_STATUS_FAILED
, VOD_STATUS_CANCELLED
, VOD_STATUS_DELETED
]
Output Only. Indicate the current status of the VOD.
Possible values: [VOD_STATUS_CREATED
, VOD_STATUS_INGESTED
, VOD_STATUS_QUEUED
, VOD_STATUS_ENCODED
, VOD_STATUS_DEPLOYED
, VOD_STATUS_SUCCEEDED
, VOD_STATUS_FAILED
, VOD_STATUS_CANCELLED
, VOD_STATUS_DELETED
]
Output only. Indicate the previous status of the VOD.
metadata object
Output only. Indicate the metadata of the VOD.
The short description of the resource.
The long description of the resource.
labels object[]
Optional. The labels of the resource. The maximum length of labels is 20
.
Required. The label name. The maximum length of the name is 20
.
source_file_info object
Output only. Indicate the source file information of the VOD.
The file name of source file.
The size of source file.
The bitrate of source file.
The duration of source file.
video object
The video information of source file.
Possible values: [VIDEO_CODEC_H264
, VIDEO_CODEC_H265
]
The display height of video.
The display width of video.
The bitrate of video.
The frame rate of video.
The interlace of video.
Possible values: [DISPLAY_ASPECT_RATIO_SOURCE
, DISPLAY_ASPECT_RATIO_1_1
, DISPLAY_ASPECT_RATIO_3_2
, DISPLAY_ASPECT_RATIO_4_3
, DISPLAY_ASPECT_RATIO_5_4
, DISPLAY_ASPECT_RATIO_16_9
, DISPLAY_ASPECT_RATIO_16_10
, DISPLAY_ASPECT_RATIO_17_9
, DISPLAY_ASPECT_RATIO_21_9
, DISPLAY_ASPECT_RATIO_32_9
]
The display aspect ratio of video.
audios object[]
The audio information of source file.
Possible values: [AUDIO_CODEC_AAC
, AUDIO_CODEC_AC3
, AUDIO_CODEC_MP3
]
Output Only. Indicate the latest update time of the VOD.
schedule object
Output Only. Indicate the schedule setting of the VOD.
Enable VOD viewing schedule or not.
VOD viewing start time. Users can only watch the VOD within the specified start time and end time.
VOD viewing end time. Users can only watch the VOD within the specified start time and end time.
security object
Output Only. Indicate the security setting of the VOD.
privacy objectrequired
Required. Specify the content visibility.
Possible values: [SECURITY_PRIVACY_TYPE_PUBLIC
, SECURITY_PRIVACY_TYPE_TOKEN
]
token object
Optional. Required if type
is SECURITY_PRIVACY_TYPE_TOKEN
.
Optional. The limit of the concurrent devices for a token or a redeem code. Default: 0 (Unlimited). Maximum: 1000.
watermark object
Optional. Add watermarks to the player when playing the content, it's not supported for AOD.
Required. Enable watermark.
Possible values: [WATERMARK_TYPE_IMAGE
, WATERMARK_TYPE_USER_ID
]
Required. Indicates the type of watermark.
Possible values: [WATERMARK_POSITION_BOTTOM_RIGHT
, WATERMARK_POSITION_BOTTOM_MIDDLE
, WATERMARK_POSITION_BOTTOM_LEFT
, WATERMARK_POSITION_CENTER_RIGHT
, WATERMARK_POSITION_CENTER_LEFT
, WATERMARK_POSITION_TOP_RIGHT
, WATERMARK_POSITION_TOP_MIDDLE
, WATERMARK_POSITION_TOP_LEFT
, WATERMARK_POSITION_RANDOM
, WATERMARK_POSITION_CUSTOM
]
Required. The position of the watermark.
image object
Optional. Required if type
is WATERMARK_TYPE_IMAGE
.
Required. The library id of the image.
Output only. The URL of the image.
Output only. The Name of the image.
Required. The size of the watermark. The range of values that can be set is from 1 to 50.
offset object
Optional. Required if type
is WATERMARK_POSITION_CUSTOM
.
Required. The x-axis position of the watermark. Represented as a percentage of the image width. The range of values that can be set is from 1 to 100.
Required. The y-axis position of the watermark. Represented as a percentage of the image height. The range of values that can be set is from 1 to 100.
domain_control object
Optional. Specify the domains that will be allowed to embed the iframe.
Optional. Enable domain control.
Optional. The list of domains that will be allowed to embed the iframe.
protection object
Optional. Immutable. The content encryption.
Possible values: [PROTECTION_TYPE_DRM
]
Immutable. Specify the alpha-2 codes (See: https://www.iban.com/country-codes) to restrict access to the content by geo locations. Allow all regions when empty.
cover_image object
Output Only. Indicate the cover image of the VOD.
Possible values: [COVER_IMAGE_TYPE_AUTO
, COVER_IMAGE_TYPE_CUSTOMIZE
]
Required. Indicates the cover image type.
auto object
Output only. Indicates the cover images which are generated automatically. It will be empty which represents the black screen when the content type is live.
Output only. The URL of the cover image.
Output only. The name of the cover image.
Output only. The size of the cover image.
customize object
Optional. Required if type
is COVER_IMAGE_TYPE_CUSTOMIZE
.
Required. The library id of the cover image.
Output only. The URL of the cover image.
Output only. The name of the cover image.
Output only. The size of the cover image.
Output only. The timestamp of the cover image that was updated.
export object
Output Only. Indicate the export setting of the VOD.
cloud_storage object
Export encoded files to cloud storage.
The unique id of cloud storage.
showroom object
Optional. Indicate the showroom setting of the VOD.
Optional. The model of showroom preferences.
libraries object[]
Optional. The library assets that is used by the model.
Required. The library id of the asset.
Output only. The library name of the asset.
Output only. The URL of the asset.
byo_cdn object
Optional. The setting of bring-your-own cdn.
Optional. Enable BYO(Bring-your-own) CDN or not.
Optional. The id of BYO CDN host that you set in the general settings, it's necessary when byo cdn is enabled.
configs object[]
Output only. The preconfigured BYO CDN configurations for AWS distribution.
Possible values: [CDN_CONFIG_TYPE_LIVE_HLS
, CDN_CONFIG_TYPE_LIVE_DASH
, CDN_CONFIG_TYPE_VOD
]
player_setting object
Optional. The setting of player.
Output Only. The model of player preferences.
Output only. The resource identifier of player setting.
Output only. The name of player setting.
Output Only. The decription of player setting.
libraries object[]
Output Only. The library assets that are used in the setting.
Output Only. The library id of the asset.
Output only. The library name of the asset.
Output only. The URL of the asset.
chapter_setting object
Optional. The chapter of vod.
chapters object[]required
The timestamp value of the first element in the chapters must be set to zero.
subtitles object[]
Output Only. The vod subtitles.
The unique id of subtitle.
The number of audio track.
The language code of the subtitle. The format is ISO639-1+ISO-3166-1 (e.g., en-US).
The display name of the subtitle.
Possible values: [SUBTITLE_STATUS_GENERATING
, SUBTITLE_STATUS_SUCCEED
, SUBTITLE_STATUS_FAILED
, SUBTITLE_STATUS_NOT_FOUND
]
The status of subtitle.
subtitle_file_info object
The information of subtitle.
file object
Output only. The unique id of the file.
Possible values: [FILE_TYPE_VIDEO
, FILE_TYPE_IMAGE
, FILE_TYPE_SUBTITLE
, FILE_TYPE_DOCUMENT
, FILE_TYPE_WEB_LINK
, FILE_TYPE_AUDIO
]
Input only. The type of the file.
Input only. The name of the file.
Input only. The size of the file in bytes.
Output only. The uri of the file.
Possible values: [FILE_SOURCE_LIVE_EVENT
, FILE_SOURCE_UPLOAD_IN_LIBRARY
, FILE_SOURCE_ADD_VOD
, FILE_SOURCE_CLOUD_STORAGE_AWS
, FILE_SOURCE_STT
, FILE_SOURCE_ADD_AOD
, FILE_SOURCE_AISK
, FILE_SOURCE_GOOGLE_DRIVE
, FILE_SOURCE_GOOGLE_CALENDAR
, FILE_SOURCE_HIGHLIGHT
, FILE_SOURCE_TRANSLATE
, FILE_SOURCE_LIVE_CLIP
]
Required. The source of the file, only for display.
attrs object
subtitles object[]
The unique id of the subtitle.
The unique id of the library subtitle file.
The name of the subtitle file.
The language code of the subtitle file. Follow RFC 5646 (shortest ISO 639 code).
The display name of the subtitle file.
Possible values: [FILE_STATUS_SUCCEED
, FILE_STATUS_PROGRESSING
, FILE_STATUS_FAILED
]
Output Only. The file status.
permission object
Possible values: [ACCESS_ROLE_DENY
, ACCESS_ROLE_SUPER_EDITOR
, ACCESS_ROLE_EDITOR
, ACCESS_ROLE_VIEWER
]
assignments object[]
Required. Output Only. if the assigned_type
is ASSIGNED_TYPE_USER
, the id is user id.
if the assigned_type
is ASSIGNED_TYPE_GROUP
, the id is group id.
Output Only. It will return if the assigned_type
matches ASSIGNED_TYPE_USER
.
Output Only. The name of user or group.
Possible values: [ASSIGNED_TYPE_USER
, ASSIGNED_TYPE_GROUP
]
Possible values: [ACCESS_ROLE_DENY
, ACCESS_ROLE_SUPER_EDITOR
, ACCESS_ROLE_EDITOR
, ACCESS_ROLE_VIEWER
]
summary object
Deprecated. Do not use. Use FetchSummary
API instead.
The content of summary.
Possible values: [SUMMARY_STATUS_WAITING
, SUMMARY_STATUS_PROCESSING
, SUMMARY_STATUS_READY
, SUMMARY_STATUS_FAILED
]
The status of summary.
error_infos object[]
Output only. Optional. A list of messages that carry the error infos when vod encoding is failed.
The reason of the error. This is a constant value that identifies the
proximate cause of the error. Error reasons are unique within a particular
domain of errors. This should be at most 63 characters and match a
regular expression of [A-Z][A-Z0-9_]+[A-Z0-9]
, which represents
UPPER_SNAKE_CASE.
The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com".
metadata object
Additional structured details about this error.
Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
metadata object
Optional. The metadata of the file.
Optional. The short description of the file.
Optional. The long description of the file.
Optional. The labels of the file.
Output only.
Output only.
contents object[]
Possible values: [SUBTITLE_SOURCE_TYPE_LOCAL
, SUBTITLE_SOURCE_TYPE_STT
, SUBTITLE_SOURCE_TYPE_AI_TRANSLATE
]
The source type of subtitle.
The id of the source subtitle used for translation.
Output only.
Output only.
Possible values: [VOD_TYPE_ENCODING
, VOD_TYPE_CATCHUP
, VOD_TYPE_AMS_VIDEO
, VOD_TYPE_AMS_AUDIO
, VOD_TYPE_STT
, VOD_TYPE_AUDIO_ENCODING
, VOD_TYPE_AUDIO_FOR_STT
, VOD_TYPE_BACKGROUND
]
Output Only. The vod type.
Output Only. The organization ID that the encoding belongs to.
Optional. Output only. The stream ID from the Platform API, which is responsible for providing basic encoding and streaming functions, such as encoding server and content delivery.
end_screen object
Output Only. The end screen setting of the VOD resource.
Optional. The model of end screen preferences.
libraries object[]
Optional. The library assets that is used by the model.
Required. The library id of the asset.
Output only. The library name of the asset.
Output only. The URL of the asset.
vods object[]
Optional. The vod assets that is used by the model.
Required. The VOD id.
cover_image object
Output only. The vod cover image.
Possible values: [COVER_IMAGE_TYPE_AUTO
, COVER_IMAGE_TYPE_CUSTOMIZE
]
Required. Indicates the cover image type.
auto object
Output only. Indicates the cover images which are generated automatically. It will be empty which represents the black screen when the content type is live.
Output only. The URL of the cover image.
Output only. The name of the cover image.
Output only. The size of the cover image.
customize object
Optional. Required if type
is COVER_IMAGE_TYPE_CUSTOMIZE
.
Required. The library id of the cover image.
Output only. The URL of the cover image.
Output only. The name of the cover image.
Output only. The size of the cover image.
Output only. The timestamp of the cover image that was updated.
summary object
Deprecated. Do not use. Use FetchSummary
API instead.
The content of summary.
Possible values: [SUMMARY_STATUS_WAITING
, SUMMARY_STATUS_PROCESSING
, SUMMARY_STATUS_READY
, SUMMARY_STATUS_FAILED
]
The status of summary.
error_infos object[]
Output only. Optional. A list of messages that carry the error infos when vod encoding is failed.
The reason of the error. This is a constant value that identifies the
proximate cause of the error. Error reasons are unique within a particular
domain of errors. This should be at most 63 characters and match a
regular expression of [A-Z][A-Z0-9_]+[A-Z0-9]
, which represents
UPPER_SNAKE_CASE.
The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com".
metadata object
Additional structured details about this error.
Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
permission objectrequired
Required. Output Only. The permissions of vod.
Possible values: [ACCESS_ROLE_DENY
, ACCESS_ROLE_SUPER_EDITOR
, ACCESS_ROLE_EDITOR
, ACCESS_ROLE_VIEWER
]
assignments object[]
Required. Output Only. if the assigned_type
is ASSIGNED_TYPE_USER
, the id is user id.
if the assigned_type
is ASSIGNED_TYPE_GROUP
, the id is group id.
Output Only. It will return if the assigned_type
matches ASSIGNED_TYPE_USER
.
Output Only. The name of user or group.
Possible values: [ASSIGNED_TYPE_USER
, ASSIGNED_TYPE_GROUP
]
Possible values: [ACCESS_ROLE_DENY
, ACCESS_ROLE_SUPER_EDITOR
, ACCESS_ROLE_EDITOR
, ACCESS_ROLE_VIEWER
]
latest_vod_encoding_stages object[]
Output Only. The status history of the latest VOD encoding resource.
Possible values: [VOD_STATUS_CREATED
, VOD_STATUS_INGESTED
, VOD_STATUS_QUEUED
, VOD_STATUS_ENCODED
, VOD_STATUS_DEPLOYED
, VOD_STATUS_SUCCEEDED
, VOD_STATUS_FAILED
, VOD_STATUS_CANCELLED
, VOD_STATUS_DELETED
]
The status of a VOD resource.
The message of the status. Deprecated: Use error_infos
instead.
The code of the status. Deprecated: Use error_infos
instead.
error_infos object[]required
Output only. Optional. A list of messages that carry the error infos when vod encoding is failed.
The reason of the error. This is a constant value that identifies the
proximate cause of the error. Error reasons are unique within a particular
domain of errors. This should be at most 63 characters and match a
regular expression of [A-Z][A-Z0-9_]+[A-Z0-9]
, which represents
UPPER_SNAKE_CASE.
The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com".
metadata object
Additional structured details about this error.
Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
tagging_setting object
Output Only.
{
"vod": {
"cover_image": null,
"created_at": "2023-05-31T07:07:12Z",
"export": null,
"id": "221a53c1-10a6-4d00-ae8f-bc56191e4137",
"labels": [],
"metadata": {
"labels": [],
"long_description": "",
"short_description": ""
},
"name": "video.mp4",
"permission": {
"assignments": [
{
"access_role": "ACCESS_ROLE_SUPER_EDITOR",
"assigned_type": "ASSIGNED_TYPE_OWNER",
"email": "",
"id": "",
"name": ""
}
],
"default_access_role": "ACCESS_ROLE_DENY"
},
"previous_status": "VOD_STATUS_UNSPECIFIED",
"profile_set": {
"id": "6a2b2ea3-9e35-4216-93c9-da09dee5ab12",
"multiple_audio_track": {
"lang_customizes": [],
"lang_from": "LANG_FROM_FIRST_TRACK"
},
"name": "H.264-1080P-30fps",
"preset": false,
"profiles": [
{
"audio_bitrate": "128",
"b_frame": true,
"codec_profile": "CODEC_PROFILE_AUTO",
"frame_rate": "FRAME_RATE_30",
"gop_size": 2,
"id": "57acf6c4-688e-47c5-a4f9-548c64ef6ddb",
"level": "CODEC_PROFILE_LEVEL_AUTO",
"name": "1080p-5Mbps",
"preset": false,
"segment_duration": 6,
"standard": "RESOLUTION_TYPE_UNSPECIFIED",
"video_bitrate": "5000",
"video_codec": "VIDEO_CODEC_H264",
"video_height": 1080,
"video_width": 1920
},
{
"audio_bitrate": "128",
"b_frame": true,
"codec_profile": "CODEC_PROFILE_AUTO",
"frame_rate": "FRAME_RATE_30",
"gop_size": 2,
"id": "d8b7caa0-7487-4cdf-ab64-44cf54783d34",
"level": "CODEC_PROFILE_LEVEL_AUTO",
"name": "720p-2.5Mbps",
"preset": false,
"segment_duration": 6,
"standard": "RESOLUTION_TYPE_UNSPECIFIED",
"video_bitrate": "2500",
"video_codec": "VIDEO_CODEC_H264",
"video_height": 720,
"video_width": 1440
},
{
"audio_bitrate": "96",
"b_frame": true,
"codec_profile": "CODEC_PROFILE_AUTO",
"frame_rate": "FRAME_RATE_30",
"gop_size": 2,
"id": "39861dab-83da-4cd7-bb58-7ae6af648c19",
"level": "CODEC_PROFILE_LEVEL_AUTO",
"name": "480p-1.5Mbps",
"preset": false,
"segment_duration": 6,
"standard": "RESOLUTION_TYPE_UNSPECIFIED",
"video_bitrate": "1500",
"video_codec": "VIDEO_CODEC_H264",
"video_height": 480,
"video_width": 850
},
{
"audio_bitrate": "96",
"b_frame": true,
"codec_profile": "CODEC_PROFILE_AUTO",
"frame_rate": "FRAME_RATE_30",
"gop_size": 2,
"id": "31bb7972-1c87-44c2-a07c-fe9d18321644",
"level": "CODEC_PROFILE_LEVEL_AUTO",
"name": "360p-700kbps",
"preset": false,
"segment_duration": 6,
"standard": "RESOLUTION_TYPE_UNSPECIFIED",
"video_bitrate": "700",
"video_codec": "VIDEO_CODEC_H264",
"video_height": 360,
"video_width": 640
},
{
"audio_bitrate": "64",
"b_frame": true,
"codec_profile": "CODEC_PROFILE_AUTO",
"frame_rate": "FRAME_RATE_30",
"gop_size": 2,
"id": "54479d60-c1ba-41fa-898b-3d7fe983b5ac",
"level": "CODEC_PROFILE_LEVEL_AUTO",
"name": "240p-400kbps",
"preset": false,
"segment_duration": 6,
"standard": "RESOLUTION_TYPE_UNSPECIFIED",
"video_bitrate": "400",
"video_codec": "VIDEO_CODEC_H264",
"video_height": 240,
"video_width": 426
}
],
"protocols": [
"PROTOCOL_DASH",
"PROTOCOL_HLS"
],
"smart_abr": false,
"video_codec": "VIDEO_CODEC_H264"
},
"pte": {
"profile": "PTE_PROFILE_UNSPECIFIED"
},
"queue": "QUEUE_STANDARD",
"schedule": {
"enable": false,
"end_time": null,
"start_time": null
},
"security": {
"domain_control": {
"domains": [],
"enabled": false
},
"geo_control": [],
"privacy": {
"token": null,
"type": "SECURITY_PRIVACY_TYPE_PUBLIC"
},
"protection": {
"type": "PROTECTION_TYPE_UNSPECIFIED"
},
"watermark": {
"enabled": false,
"position": "WATERMARK_POSITION_UNSPECIFIED",
"type": "WATERMARK_TYPE_UNSPECIFIED"
}
},
"source": {
"cloud_storage": null,
"library": {
"stt_subtitles": [
{
"display": "English",
"lang_code": "en",
"track_no": "0"
}
],
"subtitles": [
{
"code": "en",
"display": "English",
"id": "ff59095c-fd67-4edc-9705-5e56c31b3577",
"name": "english.vtt"
}
],
"video": {
"id": "c6f50caa-37ab-4d8c-9b06-e231544d598f"
}
},
"type": "SOURCE_TYPE_LIBRARY"
},
"source_file_info": {
"audios": [],
"bitrate": "0",
"duration": 0,
"file_name": "video.mp4",
"size": "0",
"video": {
"aspect_ratio": "DISPLAY_ASPECT_RATIO_UNSPECIFIED",
"bitrate": "0",
"codec": "VIDEO_CODEC_UNSPECIFIED",
"frame_rate": "FRAME_RATE_UNSPECIFIED",
"height": 0,
"interlace": false,
"width": 0
}
},
"status": "VOD_STATUS_CREATED",
"stream": [],
"updated_at": "2023-05-31T07:07:12Z"
}
}
A bad request response.
The code
is 3
means got an invalid argument. There are more HTTP status code mappings listed on here and gRPC code on here.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A unauthenticated response.
The header authorization
was missing or unidentified.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A forbidden response.
It means that the provided authorization
did not have enough permission to access the resource or the API.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A server error response. There are more HTTP status code mappings listed on here.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}