The video_source object

The video_source object can be accessed from the video object's sources array. The video_source object contains information about the source files for a video associated with a product.

This page describes the different attributes of the video_source object.

video_source.format

Returns the format of the video source file. (.mp4/.m3u8)

video_source.height

Returns the height of the video source file.

video_source.mime_type

Returns the MIME type of the video source file.

video_source.url

Returns the URL of the video source file.

video_source.width

Returns the width of the video source file.

Ready to start selling with Shopify?

Try it free