fix(electron): missing video (#4451)

This commit is contained in:
Alex Yang
2023-09-22 00:56:43 -05:00
committed by LongYinan
parent a04d7616e1
commit bade53987f
7 changed files with 15 additions and 8 deletions
+1 -1
View File
@@ -291,7 +291,7 @@ export const createConfiguration: (
exclude: [/node_modules/],
},
{
test: /\.(png|jpg|gif|svg|webp)$/,
test: /\.(png|jpg|gif|svg|webp|mp4)$/,
type: 'asset/resource',
},
{
Binary file not shown.
Binary file not shown.
@@ -17,8 +17,10 @@ export default {
let id = 0;
const image = (
<video autoPlay muted loop>
<source src="/editingVideo.mp4" type="video/mp4" />
<source src="/editingVideo.webm" type="video/webm" />
<source
src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
type="video/mp4"
/>
</video>
);
export const Basic = () => {