Admin API / Types
ProductVideoMediaInput
InputA new listing video and its poster image. Both are uploads of the caller. A Product.media ID in either field gives MEDIA_NOT_FOUND: name a stored video by its Product.media ID through ProductMediaInput.mediaId to keep it.
input ProductVideoMediaInputInput fields
| Field | Type | Description |
|---|---|---|
mediaId | ID! | The video upload, with the video rules of ProductMediaInput.mediaId: it must have finished processing (status COMPLETED) and its upload metadata must record a duration of at most 91 seconds, else MEDIA_VIDEO_TOO_LONG. An image upload gives MEDIA_TYPE_NOT_ALLOWED. An unknown upload, an unfinished video upload, a video upload whose metadata records no duration, or another user's upload gives MEDIA_NOT_FOUND. |
posterMediaId | ID! | The poster image upload, with the image rules of ProductMediaInput.mediaId: it is taken once it has its stored original, whatever its status, and the listing stores its URL as it stores the URL of a photo. A video upload gives MEDIA_TYPE_NOT_ALLOWED. An unknown upload, an image upload with no stored original, or another user's upload gives MEDIA_NOT_FOUND. |