10 July 2012

Second Plugin: A Media Player

One thing I wanted to do for a long time, but wasn't possible until GObject introspection (short GIR) came around, was a playing multimedia attachments from within Liferea. Maybe you remember how we sometime ago we tried XSPF...

The reason of this being actually hard to do is that Liferea only depends on GTK+. This allows using Liferea with KDE, XFCE, Windows and other non-GNOME setups.

With GStreamer and Python via GIR it is as simple as this to get a working media player without any worries on compile time dependencies or codecs support. As a proof-of-concept I implemented a simple three button plugin for Liferea that allows playing music enclosures:

While this is experimental (git master, soon to be 1.9.4) I intend to enhance it to provide simple player control and support videos. When testing this interface several usability questions like "Can I switch to the next item with the song still playing?" already came up. So there is much to do, but this could be one of the next great things in Liferea.

I'm wondering how many of our user will use such a player?
Would you?

And if you are good at Python and GIR have a look at the plugin code and help building this!


michkhoo said...

I don't use feeds that have media attached, but I don't mind that feature if it won't slow down liferea rss reader.

alexmctrees said...

This is a great feature! I certanly would use it. Perhaps the user should be able to switch between items with the song playng until it stops or until he hit play button for another attachment. But then it would be good to indicate currently playing item or to have a global "stop" button.

Jeff Fortin said...

Pretty nice. Think you could use gstreamer to handle html5 videos in the webkit view too, eventually?