Среда: window10
Версия:
"ue-electron": "^1.0.6",
"Electron" : "^ 2.0.4",
"Electron - builder", "^ 20.19.2"
// load flash into eletron, and see the loaded plugins in navigator.plugins
Let pluginName
Switch (the process of platform) {
Case 'win32:
PluginName = 'pepflashplayer64_32_0_0_207. DLL'
break
Case 'Darwin:
PluginName = 'PepperFlashPlayer. Plugin'
break
Case 'Linux' :
PluginName = 'libpepflashplayer. So'
break
}
Const flashPath = path. Resolve (arbitration name, '.. /.. / plugins/flash/' + pluginName)
App.com mandLine. AppendSwitch (' ppapi - flash - path, flashPath)
App.com mandLine. AppendSwitch (' ppapi - flash - the version of ', '32.0.0.207')
Согласно официальным документам, мы попытались получить лицензию.SWF-файлы во флэш-памяти, но не удалось, возможно, потому что.SWF - это удаленная ссылка, а nw-flash-trust может лицензировать только локально.SWF, но ckplayer не поддерживает локальный.SWF-файлы
/ / authorization SWF
Const flashTrust = the require (' nw - flash - trust)
Const appName = "*"
Const trustManager = flashTrust. InitSync (appName)
TrustManager. Add (path. Join (__dirname, '.. ', '.. ', 'static', 'ckplayer. SWF'))
console.log (trustManager. List ())
Мы надеемся, что RTMP может нормально воспроизводиться после упаковки электронов.Есть ли какое-нибудь решение?