Set video type to video/mp4 as default

This commit is contained in:
Michael Boelen 2024-11-08 11:42:09 +00:00
parent c5422239eb
commit d23b3cc61e

View file

@ -27,7 +27,9 @@
{{ if .Params.recording.embed.link }} {{ if .Params.recording.embed.link }}
<h2>Opname</h2> <h2>Opname</h2>
<video width="640" controls src="{{ .Params.recording.embed.link }}"{{ with .Params.recording.embed.type }} type="{{ . }}"{{ end }}></video> <video width="100%" controls>
<source src="{{ .Params.recording.embed.link }}"{{ with .Params.recording.embed.type }} type="{{ . }}"{{ else }} type="video/mp4"{{ end }}>
</video>
<p>Directe link naar video indien video niet of niet volledig werkt (b.v. geen audio): <a href="{{ .Params.recording.embed.link }}">{{ .Title }}</a></p> <p>Directe link naar video indien video niet of niet volledig werkt (b.v. geen audio): <a href="{{ .Params.recording.embed.link }}">{{ .Title }}</a></p>
{{ else if .Params.recording.url }} {{ else if .Params.recording.url }}
<h2>Opname</h2> <h2>Opname</h2>