This simple KDE plasmoid uses mplayer in order to play digital content from a DVB-T tunner. It is written in C++ and Qt/QML.
The channels are read from /etc/mplayer/channels.conf file that must be generated using DVB-T scanner utility. Double click a channel name on the list to start playing, double click again to stop playing. mplayer is started with the following arguments:
mplayer -ao sdl dvb://"channel name"
A QML plugin (shared library) is needed in order to control mplayer process and read the channel configuration file. From the main directory of the project:
cd plugins
mkdir build
cd build
cmake ..
make
sudo make install
In order to install the plasmoid in the local kde folder, from the main directory of the project:
cd plasmoid
zip -r ../dvbplayer.plasmoid .
cd ..
plasmapkg -i dvbplayer.plasmoid