Skip to main content
enum

The possible content types for a media object.

An externally hosted video.

A Shopify hosted image.

A 3d model.

A Shopify hosted video.


Was this section helpful?

•OBJECT

Represents a video hosted outside of Shopify.

•INTERFACE

Represents a media interface.

•OBJECT

An image hosted on Shopify's content delivery network (CDN). Used for product images, brand logos, and other visual content across the storefront.

The image field provides the actual image data with transformation options. Implements the Media interface alongside other media types like Video and Model3d.

•OBJECT

Represents a Shopify hosted 3D model.

•OBJECT

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.


Was this section helpful?