on windows 10:
install Windows_MediaFeaturePack_x64_1903_V1
on linux fedora 28:
- cloning this repo
git clone https://github.com/iteufel/nwjs-ffmpeg-prebuilt.git
- compiling it
cd nwjs-ffmpeg-prebuilt/
sudo python build_ffmpeg.py --target_arch=x64
(or you can find already compiled ones here: https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases)
- locate and replace
libffmpeg.so
for opera and/or other softwares
locate libffmpeg.so
sudo cp /home/scelia/dev/nwjs-ffmpeg-prebuilt/build/src/out/nw/lib/libffmpeg.so /usr/lib64/opera/libffmpeg.so
Example of libffmpeg.so
in this repository: download link
sudo vim /usr/share/applications/opera.desktop
[Desktop Entry]
Version=1.0
Name=Opera
GenericName=Web browser
Comment=Fast and secure web browser
TryExec=opera
Exec=opera %U
Terminal=false
Icon=/home/scelia/Pictures/kisspng-opera-mobile-computer-icons-web-browser-opera-ico-5ab1b5040a1ba9.5062036715215956520414.png
Just look here:
vi /usr/lib64/opera/resources/widevine_config.json
Copy it from last Chrome
cp /opt/google/chrome/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so /opt/google/chrome/libwidevinecdm.so