production can not play local video · Issue #872 · nklayman/vue-cli-plugin-electron-builder · GitHub
Security | Vue CLI Plugin Electron Builder
解决方法:
1、background.js 加上
const path = require("path");
function registerLocalVideoProtocol() {
protocol.registerFileProtocol("local-video", (request, callback) => {
const url = request.url.replace(/^local-video:\/\//, "");
// Decode URL to prevent errors when loading filenames with UTF-8 chars or chars like