赞
踩
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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。