Tuesday, June 22, 2010

MMS internet radio in Rhythmbox

If you listen to MMS internet radio in Rhythmbox and get a "Couldn't start playback" error, there is a workaround. It could be that your stream is actually RTSP - change the mms: prefix to rtsp.

e.g. mms://wms-trn-all.streaming.net.nz/trn-newstalk-zb-akl -> rtsp://wms-trn-all.streaming.net.nz/trn-newstalk-zb-akl

This is correctly handled by GStreamer but Rhythmbox currently does not handle this. Other applications like Totem and Amarok work fine.

Thursday, June 10, 2010

PyGI in Maverick

PyGI is now available in Maverick, you can install it with the following:

$ apt-get install python-gi gir1.0-gtk-2.0

and then write applications like this:

from gi.repository import Gtk

def destroy_cb(widget):
    Gtk.main_quit()

w = Gtk.Window()
w.connect('destroy', destroy_cb)

l = Gtk.Label()
l.set_text("Hello World!")
w.add(l)

w.show_all()
Gtk.main()


Have fun!

EDIT: Updated to note you need to install the GI package for the module you are using.