auto play video/audio

This commit is contained in:
lloydzhou 2024-09-24 18:48:55 +08:00
parent 6c37d04591
commit dbabb2c403
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ function _MarkDownContent(props: { content: string }) {
}
if (/\.(3gp|3g2|webm|ogv|mpeg|mp4|avi)$/.test(href)) {
return (
<video controls>
<video controls width="99.9%">
<source src={href} />
</video>
);