Video - admin-graphql - OBJECT
Version: 2024-10
Description:
Represents a Shopify hosted video.
Access Scopes
`read_products` access scope, `read_files` access scope, `read_themes` access scope, `read_orders` access scope, `read_draft_orders` access scope or `read_images` access scope.
Fields
-
alt:
String -
A word or phrase to share the nature or contents of a media.
-
createdAt:
DateTime! -
The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601)) when the file was created.
-
duration:
Int -
The video's duration in milliseconds. This value is `null` unless the video's status field is
[READY](https://shopify.dev/api/admin-graphql/latest/enums/MediaStatus#value-ready).
-
fileErrors:
FileError! -
Any errors that have occurred on the file.
-
fileStatus:
FileStatus! -
The status of the file.
-
filename:
String! -
The video's filename.
-
id:
ID! -
A globally-unique ID.
-
mediaContentType:
MediaContentType! -
The media content type.
-
mediaErrors:
MediaError! -
Any errors which have occurred on the media.
-
mediaWarnings:
MediaWarning! -
The warnings attached to the media.
-
originalSource:
VideoSource -
The video's original source. This value is `null` unless the video's status field is
[READY](https://shopify.dev/api/admin-graphql/latest/enums/MediaStatus#value-ready).
-
preview:
MediaPreviewImage -
The preview image for the media.
-
sources:
VideoSource! -
The video's sources. This value is empty unless the video's status field is
[READY](https://shopify.dev/api/admin-graphql/latest/enums/MediaStatus#value-ready).
-
status:
MediaStatus! -
Current status of the media.
-
updatedAt:
DateTime! -
The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601)) when the file was last updated.
Connections
Related queries
Related mutations
Related Unions
Examples