Can you add ranking support for the media keyboard?

0 views
Skip to first unread message

nickc316

unread,
Jan 28, 2008, 3:23:36 PM1/28/08
to openpandora
Hi All,

Would it be possible to mark a track as "I like it" / "I don't like
it" from a multimedia keyboard using the Rewind and Stop button? I
think this can be done in the file Player.cs file inside the function
"private void GlobalKeyUp()" at ~line:2839. You may be able to use the
following logic to be able to tag songs ...

/* existing */
else if (e.KeyCode == Keys.MediaNextTrack)
{
pandora.NextTrack();
e.Handled = true;
}
/* new */
else if (e.KeyCode == Keys.MediaPrevTrack)
{
pandora.Like();
e.Handled = true;
}
else if (e.KeyCode == Keys.MediaStop)
{
pandora.Hate();
e.Handled = true;
}
/* end new */

Let me know what you think and THANK you for this app!!

Thanks,
Nick C.
Reply all
Reply to author
Forward
0 new messages