video_tag
Generates an HTML <video> tag for a given video.
Parameters
Media{Object}: The media object.image_size{String}: The size of the video poster image in pixels.HTML attributes{String}: You can define HTML attributes by adding parameters that correspond to the attribute names and assigning them the desired values.
Usage
{{#each product.media as |media|}}
{{#if media.media_type '==' 'video'}}
{{ video_tag media }}
{{/if}}
{{/each}}
Example
{{ video_tag media autoplay=true }}
Was this article helpful to you?