I try do learn Electron and want play local video file. I have follow all examples I find but all are dates from 5 more years and not work. Why no work example of regular job?
Sorry for English bad.
I try to use <input type="file" id="video-input" />
and get good path to file: files[0].path
but when use in <source kind="video/mp4" src={video} />
nothing work.
I try to add:
protocol.handle('media-loader', (request) => {
return net.fetch(`media-loader://${request.url.slice('media-loader://'.length)}`);
});
I find https://github.com/amilajack/erb-video-example and add changes from https://github.com/amilajack/erb-video-example/commit/0706e53795dc11b4d8a0932b3a9d6de572de6c71#diff-d9d75cc1dda9c5e912390983ac6b263a
Nothing works. Cannot find example not over 5 years old.