javascript - hbo go 无法在电子内部流式传输视频
问题描述
我正在使用电子 js 开发一个程序,这对媒体 pc ui 很有用,但我遇到了一个错误,因为当我想用它播放视频时,hbogo 指示错误。
错误: https ://imgur.com/InPUCWk
html
<webview id="player"
src="https://hbogo.hu/"
style="display:inline-flex; width: 70vw; height:100vh"
></webview>
主窗口
app.on('ready', function() {
//create window and set to main
win = new BrowserWindow({
height: 800,
width: 1300,
fullscreen: true,
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
webviewTag: true
}
});
win.loadURL(url.format({
pathname: path.join(__dirname, 'HTML/home.html'),
protocol:'file',
slashes: true,
}));
抱歉英语不好。
解决方案
推荐阅读
- vbscript - VBScript如何查找文件路径?
- pdf - OscpVerifier 根据当前日期而不是 signDate 验证 OCSP 签名者证书 - 错误或功能?
- msbuild - 每次构建都具有持久唯一的 AssemblyName
- c# - LINQ 合并 2 个列表,保持序列和来源
- python - Django update_or_create 如果值相等则通过
- javascript - 使用 Gulp 连接和缩小后删除生成的 CSS 文件
- c++ - 如何停止在共享库中实现的阻塞 pthread_join()
- python - 匹配以逗号分隔的精确长度的所有单词
- python - 我如何正确处理多维 numpy 数组
- java - Java CriteriaBuilder:传递的类型 CriteriaBuilder.In 不适用于参数