Electron can watch videos in development mode using video.js rtmp, but cannot play them in release mode.

electron can watch videos in dev mode using video.js rtmp, but cannot play videos in product mode

as shown in the figure, it is the effect in development mode

clipboard.png

electron-build

clipboard.png

clicking the play button has no effect


problem solved

The general idea is: when starting the Electron main process, start a local express server, configure the static file address, and then the rendering process gets the page through this server, and then you can start flash.

my project is deployed on a physically isolated intranet, so network security is not considered.


has it been solved? What's the performance


excuse me. Has it been settled in the end?


encountered the same problem. The official website pointed out that if you want to use rtmp, you must grant more permissions to the .swf file. I did not try it successfully. Please refer to it and let me know if it succeeds. Thank you!

Hello, how do you solve this problem? ask


do you also encounter this problem and ask for help on how to solve it?

Menu