{{ end }}

        {{ $url := printf "https://player.cloudinary.com/embed/?cloud_name=%s&public_id=%s" $account $id }}
        {{ $params := "" }}
        {{ if $args.autoplay }}{{ $params = print $params "&player[autoplay]=true&player[muted]=true" }}{{ end }}

        {{ $codecs := slice }}
        {{ with index site.Params "dam" }}{{ with index . "videoCodecs" }}{{ $codecs = . }}{{ end }}{{ end }}
        {{ range $k, $v := $codecs }}
            {{ $params = printf "%s&source[source_types][%d]=%s" $param