is_video Variable

A boolean for whether the asset is an video.

{{ if is_video }}
    <video controls>
        <source src="{{ url }}" type="video/mp4">
        Sorry, your browser doesn't support embedded videos.
    </video>
{{ else }}
    <a href="{{ url }}">Download</a>
{{ /if }}
Betterify this page on Github!