Hi,
I'm writing a JumpTo plugin, which will follow the currently playing song if the playlistwin has focus and a song changes. This is to get the behaviour that the cursor is moving the current song whenever the playlist is begin focussed. As was mentioned in a previous thread, I think this is was people actually expect.
Anyway, when doing the implementation, the plugin has to jump to the currently playing song, but the only information I have is the name of the song and apparently the selectbyname() functionality of the slist class bails out when using this:
[dag@emyn .pytone]$ pytone Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/pytone/pytone.py", line 273, in ? m.run() File "/usr/lib/python2.3/site-packages/pytone/mainscreen.py", line 125, in run self.channel.process() File "/usr/lib/python2.3/site-packages/pytone/hub.py", line 167, in process handler(item) File "/usr/lib/python2.3/site-packages/pytone/plugins/jumpto.py", line 36, in playbackinfochanged self.mainscreen.playlistwin.playlist.selectbyname(event.playbackinfo.song) File "/usr/lib/python2.3/site-packages/pytone/slist.py", line 217, in selectbyname if self[i].name == name: AttributeError: playlistitem instance has no attribute 'name'
Any other ideas for implementing this ?
-- dag wieers, dag@wieers.com, http://dag.wieers.com/ -- [all I want is a warm bed and a kind word and unlimited power]
Hi Dag,
On 04.06.05, Dag Wieers wrote:
I'm writing a JumpTo plugin, which will follow the currently playing song if the playlistwin has focus and a song changes. This is to get the behaviour that the cursor is moving the current song whenever the playlist is begin focussed. As was mentioned in a previous thread, I think this is was people actually expect.
Have you actually tried the new pre-release which allows you to change what is being displayed in the item info window (press ctrl-v). I still think that this pretty much allows you to achieve what you want.
Anyway, when doing the implementation, the plugin has to jump to the currently playing song, but the only information I have is the name of the song and apparently the selectbyname() functionality of the slist class bails out when using this:
Using the playbackinfochanged event is not the correct approach because it only gives you information about the song but not about the position in the playlist. Since the same song can appear more the once in the playlist, you hence cannot decide about it's position. In order to get the information about the playlist, you have to subscribe to the playlistchanged event.
Anyway, I think that such a thing is probably stretching a bit to far the notion of a plugin. Maybe it's better to make this add a configuration option to turn such a feature on and off.
Jörg
On Sat, 4 Jun 2005, Joerg Lehmann wrote:
Hi Dag,
On 04.06.05, Dag Wieers wrote:
I'm writing a JumpTo plugin, which will follow the currently playing song if the playlistwin has focus and a song changes. This is to get the behaviour that the cursor is moving the current song whenever the playlist is begin focussed. As was mentioned in a previous thread, I think this is was people actually expect.
Have you actually tried the new pre-release which allows you to change what is being displayed in the item info window (press ctrl-v). I still think that this pretty much allows you to achieve what you want.
Well, I'm not convinced :) What I envisioned with the plugin was this:
If the currently playing song is selected (in the playlist window) _and_ the song changes automatically. The focus moves with the currently playing song.
Doing this will feel very much what people expect, since if the focus is NOT on the currently playing song, people are not interested to have that information in the songinfo window. But if the currently playing song is selected there is no good reason not to assume that the listener is interested in the current song, even when that changes.
Anyway, I think that such a thing is probably stretching a bit to far the notion of a plugin. Maybe it's better to make this add a configuration option to turn such a feature on and off.
Well, I don't like the ctrl-v key that much as it is something a user has to learn about (and at least know something like this exists). While an automatic (follow the current song if that's where my cursor is) implementation is much more user friendly.
But I might have overlooked some other usage scenarios that conflicts with this though. I thought implementing it as a plugin to see if it would convince you was the smartest thing :)
Any feedback welcome. What do others think ?
-- dag wieers, dag@wieers.com, http://dag.wieers.com/ -- [all I want is a warm bed and a kind word and unlimited power]
Hi Dag,
On 25.06.05, Dag Wieers wrote:
On Sat, 4 Jun 2005, Joerg Lehmann wrote:
On 04.06.05, Dag Wieers wrote:
I'm writing a JumpTo plugin, which will follow the currently playing song if the playlistwin has focus and a song changes. This is to get the behaviour that the cursor is moving the current song whenever the playlist is begin focussed. As was mentioned in a previous thread, I think this is was people actually expect.
Have you actually tried the new pre-release which allows you to change what is being displayed in the item info window (press ctrl-v). I still think that this pretty much allows you to achieve what you want.
Well, I'm not convinced :) What I envisioned with the plugin was this:
If the currently playing song is selected (in the playlist window) _and_ the song changes automatically. The focus moves with the currently playing song.
Ok, it doesn't seem to odd to me any more (maybe I just got used to the idea - but that's ok).
Well, I don't like the ctrl-v key that much as it is something a user has to learn about (and at least know something like this exists). While an automatic (follow the current song if that's where my cursor is) implementation is much more user friendly.
Fair enough.
But I might have overlooked some other usage scenarios that conflicts with this though. I thought implementing it as a plugin to see if it would convince you was the smartest thing :)
Having this as plugin is not necessary to convince me ;-) Seriously, I still think that this is nothing for a plugin.
Any feedback welcome. What do others think ?
It would be really nice to get a little feadback on this issue.
Jörg
On Tue, 28 Jun 2005 11:38:37 +0200 Joerg Lehmann joerg@luga.de wrote:
[...this is from Dag...]
If the currently playing song is selected (in the playlist window) _and_ the song changes automatically. The focus moves with the currently playing song.
Ok, it doesn't seem to odd to me any more (maybe I just got used to the idea - but that's ok). [...] It would be really nice to get a little feadback on this issue.
I'll consider that as the second best solution. May I repeat my suggestion from May, 14?
How about two info windows? One left, showing always details of the selected song, and one right, showing always details of the currently playing song.
That would be the best solution for me. But I would be perfectly happy with the second best, too :-)
Grüße Uwe