浏览代码

Video fix.

Pushkar Anand 4 年之前
父节点
当前提交
8f27d7636f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/pages/gallery/index.tsx

+ 2 - 2
src/pages/gallery/index.tsx

@@ -104,7 +104,7 @@ export default function Gallery() {
         if (data[index].metadata.fileType === 1) {
             data[index].html = `
                 <video controls>
-                    <source src="${url}" type="video/mp4">
+                    <source src="${url}" />
                     Your browser does not support the video tag.
                 </video>
             `;
@@ -159,7 +159,7 @@ export default function Gallery() {
             if (item.metadata.fileType === 1) {
                 item.html = `
                     <video width="320" height="240" controls>
-                        <source src="${url}" type="video/mp4">
+                        <source src="${url}" />
                         Your browser does not support the video tag.
                     </video>
                 `;