This project is an attempt at making a OBS Studio plugin.
The plugin display the current playing track info (title, album, artist) and artwork.
Data is collected though the MPRIS 2 or Windows.Media.Control interfaces so a lot of players should be supported (VLC, Spotify, Firefox, ...).
Get Latest dll from the release tab.
- Get a copy of
obs.libandw32-pthreads.lib. You can get them from building the obs source code. Or by using thelib_from_dll.ps1PowerShell script onobs.dllandw32-pthreads.dllfrom your obs installation.
From the MSVC console (important):
powershell
. ./lib_from_dll.ps1
New-LibFromDll obs.dll
New-LibFromDll w32-pthreads.dll
-
Download obs source code (for the headers) here. And unzip it to an
obs_studiofolder. -
Build the project
build_msvc.batPlace the obs_media_plugin.dll in the obs plugins directoty (OBS-Studio-27.0.1-Full-x64\obs-plugins\64bit).
$ apt update
$ apt install build-essential pkgconf # requiring make gcc pkgconf
$ apt install libdbus-1-dev libobs-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev
% makePlace the obs_media_plugin.so in the obs plugins directory.
% mkdir -p $HOME/.config/obs-studio/plugins/obs_media_info/bin/64bit
% cp obs_media_plugin.so $HOME/.config/obs-studio/plugins/obs_media_info/bin/64bit/
or
% ln -s "$(pwd)/obs_media_info.so" $HOME/.config/obs-studio/plugins/obs_media_info/bin/64bit/obs_media_info.soOr in the systemwide directory /usr/share/obs/obs-plugins/ (distribution dependant. Archlinux: /usr/lib/obs-plugins/).
$ cp obs_media_plugin.so /usr/share/obs/obs-plugins/- Build using cmake like others obs plugins
- If you are using Firefox for media playback, make sure
media.hardwaremediakeys.enabledis set totrue(default)
