martinanton / client175

Automatically exported from code.google.com/p/client175
GNU General Public License v3.0
0 stars 0 forks source link

hightlight and center playlist on currently playing song #30

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
i'd really like to have client 175 center the playlist on the currently playing 
song and highlight it in the playlist.  when i am not actively listening to 
music, sometimes a song comes on and i'd like to change to a song from the same 
album/artist, which is hard currently as i have to browse the playlist for the 
currently playing song.

reason this is important to me: most of the time i just add all add songs to 
the playlist (15000+ currently), turn random and consume on then hit play.  
when i get home from work, i turn the stereo on and their is music, like my own 
person radio station with no commercials.  :)  sometimes when warren haynes 
'stella blue' is on i'd like to play 'in my life' and then let mpd continue 
playing randomly when that song is over.

client175 is the best mpd frontend i've found thus far, keep up the good work!

Original issue reported on code.google.com by campbell...@gmail.com on 16 Jan 2011 at 10:43

GoogleCodeExporter commented 8 years ago
I totally agree.  Not having this feature is the main reason client175 is not 
usable to me.  I would really like to see this implemented so that I can use 
this (otherwise awesome) client as my major music player.

Original comment by Chris.co...@gmail.com on 6 Apr 2011 at 7:41

GoogleCodeExporter commented 8 years ago

Original comment by cseic...@gmail.com on 4 Mar 2012 at 6:26

GoogleCodeExporter commented 8 years ago
I found a workaround hack to get me past this problem.  I wasn't motivated to 
figure out how to manipulate the GUI, but I did figure out how to cause the 
current-title display to include the playlist position.  That's good enough for 
me, as it's easy to scroll right to that spot in the playlist.  In 
static/mpd.controls.js, at line 297, I made this modification:

        mpd.events.on('title', function(){
            var t = mpd.status.title
            var b = mpd.status.pos
            var num = Number(b)
            var position = (num+1)
            var c = mpd.status.playlistlength
            Ext.getDom('txtTitle').innerHTML = t + ' (#' + position + '/' + c + ')' || 'Unknown'
        })

Hope this helps someone.  

Original comment by t4251...@gmail.com on 28 Dec 2012 at 9:41