# Video
Information about a video uploaded as product media or a `file_reference` metafield.
## Overview
The video object provides details about video files in Shopify's Liquid API. Use the `video_tag` filter to render videos in HTML `<video>` tags.
## Properties
| Property | Type | Description |
|----------|------|-------------|
| alt | string | The alt text of the video |
| aspect_ratio | number | The aspect ratio as a decimal value |
| duration | number | Video length in milliseconds |
| id | number | The video's unique identifier |
| media_type | string | Always returns `video` |
| position | number | Position within the `product.media` array |
| preview_image | image | A thumbnail preview for the video |
| sources | array | Collection of video_source objects containing file sources |
## Usage Example
Filter product media to display only videos:
```liquid
{% assign videos = product.media | where: 'media_type', 'video' %}
{% for video in videos %}
{{- video | video_tag }}
{% endfor %}
```
## Sample Data Structure
```json
{
"alt": "Potion beats",
"aspect_ratio": 1.779,
"duration": 34801,
"id": 22070396551233,
"media_type": "video",
"position": 2,
"preview_image": {},
"sources": []
}
```