 "muted=1" }}
{{ end }}

{{ if $pip }}
    {{ $params = $params | append "pip=1" }}
{{ end }}

{{ if not $playsInline }}
    {{ $params = $params | append "playsinline=0" }}
{{ end }}

{{ if and (ne $portrait nil) (ne $portrait "") }}
    {{ $params = $params | append (printf "portrait=%v" (cond $portrait 1 0)) }}
{{ end }}

{{ with $quality }}
    {{ $params = $params | append (printf "quality=%v" .) }}
{{ end }}

{{ if $speed }}
    {{ $params = $params | append "speed=1" }}
{{ end }}

{{ with $textTrack 