Prerequisites
apt install libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libsdl2-dev
(or brew)
Install
npm i simplemedia --save
Example
See example/
(Optional) Native only build
cd native;
mkdir build; cd buiild
cmake .. && make
You'll probably get a binary named mediaplayer
Simply, try to run it with a media file
./mediaplayer /path/to/file