auto play video/audio
This commit is contained in:
parent
6c37d04591
commit
dbabb2c403
|
@ -288,7 +288,7 @@ function _MarkDownContent(props: { content: string }) {
|
||||||
}
|
}
|
||||||
if (/\.(3gp|3g2|webm|ogv|mpeg|mp4|avi)$/.test(href)) {
|
if (/\.(3gp|3g2|webm|ogv|mpeg|mp4|avi)$/.test(href)) {
|
||||||
return (
|
return (
|
||||||
<video controls>
|
<video controls width="99.9%">
|
||||||
<source src={href} />
|
<source src={href} />
|
||||||
</video>
|
</video>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue