fix: improve mp4 embedding
This commit is contained in:
parent
f6a530dd86
commit
a144c88c17
2 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue