When I try to load a video from the video tag in HTML, it works in the dev
but not in tauri
app
This is the image of the file tree.
Now the code that load the video:
<video
src="./assets/video/textify.mp4"
id="video"
muted
autoplay
></video>
When I try Google, it it needed to add the location of the video to the resource in the tauri.config.json
, I did that, but it did not work.
"tauri": {
"allowlist": {
"all": true,
"fs": {
"scope": ["$RESOURCE/*"]
}
},
the above i have read it in come github issue according to it this is the solution i have also added the path video the resource array
"resources": ["../build/assets/video/"],
3