#StackBounty: #javascript #electron How can I use ffplay from Electron.js app?

Bounty: 50

I’ve installed ffplay in my working folder (in bin subfolder) using ffbinaries (ffbinaries downloader). My current platform is linux-64.

I’ve use:

var spawn = require('child_process').spawn,
player = spawn('./bin/ffplay', ['http://path_to_video_file']);

but got an error in terminal 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

How can I get access from my javascript code to this binary for playing videos or how can I get ready-to-use binary which is a built-in for my Electron app?

…Or how can I get all of ffplay possibilities for playing videos inside Electron app?

Thanks in advance!


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.