[Rhythmbox-devel] overriding get_playback_uri in Python
- From: dmaddock1 <d maddock1 gmail com>
- To: rhythmbox-devel gnome org
- Subject: [Rhythmbox-devel] overriding get_playback_uri in Python
- Date: Fri, 17 Oct 2008 22:17:43 -0700 (PDT)
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.
Thanks in advance.
Dave
--
View this message in context: http://www.nabble.com/overriding-get_playback_uri-in-Python-tp20044247p20044247.html
Sent from the Gnome - Rhythmbox - Dev mailing list archive at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]