import { ShopifyVideo } from '@daffodil/driver/shopify'
A video hosted on Shopify's servers. Implements the Media interface and provides multiple video sources through the sources field, each with format, dimensions, and URL information for adaptive playback.
For videos hosted on external platforms like YouTube or Vimeo, use ExternalVideo instead.
interface ShopifyVideo {
__typename: "Video"
alt: string
id: string
mediaContentType: ShopifyMediaContentType
presentation: ShopifyMediaPresentation
previewImage: ShopifyImage
sources: ShopifyVideoSource[]
}
__typename "Video" |
|---|
alt string |
|---|
A word or phrase to share the nature or contents of a media. |
id string |
|---|
A globally-unique ID. |
mediaContentType ShopifyMediaContentType |
|---|
The media content type. |
presentation ShopifyMediaPresentation |
|---|
The presentation for a media. |
previewImage ShopifyImage |
|---|
The preview image for the media. |
sources ShopifyVideoSource[] |
|---|
The sources for a video. |