【发布时间】:2018-07-13 15:50:44
【问题描述】:
我已经使用ffbinaries (ffbinaries downloader) 在我的工作文件夹(bin 子文件夹)中安装了ffplay。我目前的平台是linux-64。
我用过:
var spawn = require('child_process').spawn,
player = spawn('./bin/ffplay', ['http://path_to_video_file']);
但在终端 stderr 中出现错误:
./bin/ffplay: error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory child process exited with code : 127
如何从我的 javascript 代码访问此二进制文件以播放视频,或者如何获得我的 Electron 应用程序内置的即用型二进制文件?
...或者我怎样才能获得在 Electron 应用程序中播放视频的所有 ffplay 可能性?
提前致谢!
【问题讨论】:
-
请将您在评论中编写的代码放在您的问题中,以便人们更好地了解情况
-
你使用的是什么操作系统?
-
谢谢,你是对的。至于操作系统,我使用 Linux Mint。
标签: javascript electron