Re: [Rhythmbox-devel] overriding get_playback_uri in Python
- From: Jonathan Matthew <jonathan d14n org>
- To: rhythmbox-devel gnome org
- Subject: Re: [Rhythmbox-devel] overriding get_playback_uri in Python
- Date: Mon, 20 Oct 2008 07:34:25 +1000
On Fri, Oct 17, 2008 at 10:17:43PM -0700, dmaddock1 wrote:
>
> Hi all. I'm new to rhythmbox and I've been working on a python plugin to
> play XM Radio streams. I'm a python noob (though a C++ programmer by
> trade). I've gotten pretty far through a combination of source code
> reference and posts on this list, however I'm stuck.
>
> As I understand it, I have the ability to override the get_playback_uri
> method for my EntryType, but I'm not having any luck actually doing so. I
> don't want the overhead of grabbing the url for each stream when I load up
> my EntryView. Also, these streams require authentication so the shelf life
> for these stream urls is limited.
>
> A few lines of example code would make my day. I've tried variations of:
>
> def my_get_playback_uri(entry, data):
> #do my thing...
>
> entry_view.get_playback_uri = my_get_playback_uri
>
> ... this segfaults.
I've just fixed a bug in the python bindings for this. So, if it was
crashing, you were probably doing it right, for what consolation that's
worth.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]