Link local video: allow-file-access-from-files


#1

Hi everyone !

I am new with electron and I would like to know how I can link a local video in my app ?

Thanks in advance


#2

Dir Structure

- package.json
- main.js (the browser process main.js)
- app/main.js (the renderer process main.js)
- app/index.html 
- assets/video.mp4
// app/main.js
document.getElementById("MainVideo").src = __dirname + '/../assets/video.mp4';