fix: improve mp4 embedding

This commit is contained in:
Andy Burke 2025-07-26 17:07:44 -07:00
parent f6a530dd86
commit a144c88c17
2 changed files with 4 additions and 2 deletions

View file

@ -167,7 +167,7 @@ const URL_MATCH_HANDLERS = [
}
if (mime_types.includes("video/mp4")) {
return `<div class="embed-container image gif"><video autoplay muted loop><source src="${link_info.url}" type="video/mp4">Your browser does not support video embeds.</video></div>`;
return `<div class="embed-container image gif letterbox"><video autoplay="true" muted="true" loop="true" playsinline="true"><source src="${link_info.url}" type="video/mp4"><a href="${link_info.url}">${link_info.url}</a></video></div>`;
}
if (mime_types[0].indexOf("image") === 0) {