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.lib
andw32-pthreads.lib
. You can get them from building the obs source code. Or by using thelib_from_dll.ps1
PowerShell script onobs.dll
andw32-pthreads.dll
from 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_studio
folder. -
Build the project
build_msvc.bat
Place 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
% make
Place 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.so
Or 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/
- Not relying on ffmpeg to download images files (linux)
- Build using cmake like others obs plugins
- If you are using Firefox for media playback, make sure
media.hardwaremediakeys.enabled
is set totrue
(default)