Media filters

Media filters let you get URLs for a product's media.

external_video_tag

Generates an iframe that contains a Vimeo or YouTube video player.

If alt text is set on the video, then the alt text appears in the title attribute of the iframe. If no alt text is set, then the product title appears in the title attribute.

You can pass HTML attributes as options to add them to the IFrame:

external_video_url

Used to set parameters for the external video player rendered by external_video_tag.

Available parameters for YouTube videos

Available parameters for Vimeo videos

The following example changes the color of the YouTube player:

The following example plays a Vimeo video muted and on a loop: