$class = .Get 3 -}}
    {{- $preload = .Get 4 | default "metadata" -}}
{{- end }}
<figure {{ with $class }}class="{{ . }}"{{ end }}>
  <video playsinline controls class="player" preload="{{ $preload }}" data-poster="{{ $poster }}">
    {{ with $src }}<source src="{{ . | relURL }}">{{ end }}
    <p>
      Your browser does not support HTML5 video.
      {{ with $src }}Here is <a href="{{ . | relURL }}">">a link to download the video</a>.{{ end }}
    </p>
  </video>
  {{ with $caption }}<figcaption>{{ . }}</