Old 18th February 2004, 02:01   #1
AndrewMackowski
Member
 
Join Date: Mar 2002
Posts: 92
Lightbulb Adding Song Ratings to a modern skin

As many of the more curious users have noticed, the WA5 Media Library includes song ratings (0 to 5 stars) for the first time. This lets one create a playlist (through ML) based on which songs are ranked the highest, like Windows Media Player. So, I thought it would be a great idea to include song-rating functionality on a skin I'm working on. I tried looking up the old posts on getItemMetaData(), but found nothing on ratings. Is the song rating stored in ID3, or in a Winamp-propriery database (my guess would be the latter)? How would one be able to get to this song rating info from MAKI? If not possible now, can someone say if it will be included in a future release, or when/if a SDK is released?
AndrewMackowski is offline   Reply With Quote
Old 18th February 2004, 07:27   #2
Mr Jones
Nothing to say...
 
Mr Jones's Avatar
 
Join Date: Sep 2000
Location: UK
Posts: 23,064
Re: Adding Song Ratings to a modern skin

Quote:
Originally posted by AndrewMackowski
or when/if a SDK is released?

SDK
Mr Jones is offline   Reply With Quote
Old 18th February 2004, 23:36   #3
AndrewMackowski
Member
 
Join Date: Mar 2002
Posts: 92
Thanks for the link. I see a way a plugin could access song ratings, and I'm thinking I might make a plugin that does just that. However, can you have a plugin "embedded" in a skin? If not, would I have to create a .exe installer for the skin, and would I be able to upload that to the skins section?
AndrewMackowski is offline   Reply With Quote
Old 19th February 2004, 06:17   #4
Mr Jones
Nothing to say...
 
Mr Jones's Avatar
 
Join Date: Sep 2000
Location: UK
Posts: 23,064
Quote:
Originally posted by AndrewMackowski
Thanks for the link. I see a way a plugin could access song ratings, and I'm thinking I might make a plugin that does just that. However, can you have a plugin "embedded" in a skin? If not, would I have to create a .exe installer for the skin, and would I be able to upload that to the skins section?
Nope.

You'd have to put instructions in your skin on how to manually set it up.
Mr Jones is offline   Reply With Quote
Old 19th February 2004, 17:47   #5
AndrewMackowski
Member
 
Join Date: Mar 2002
Posts: 92
Allright. I guess I'll have to wait to see if they expand MAKI's getMetaDataInfo() in a future update, or if they provide some alternate way of getting a song rating from MAKI. For me, it would have been very useful to have a song rating in the main window, so you could rate your collection as you go.

Here's what I was thinking of:
Attached Images
File Type: png reference.png (56.0 KB, 283 views)
AndrewMackowski is offline   Reply With Quote
Old 20th February 2004, 16:09   #6
dlinkwit27
has no CT
(Forum King)
 
dlinkwit27's Avatar
 
Join Date: Sep 2000
Posts: 13,235
Send a message via ICQ to dlinkwit27 Send a message via AIM to dlinkwit27 Send a message via Yahoo to dlinkwit27
would it be possible for you to also change the songs rating via the skin?
dlinkwit27 is offline   Reply With Quote
Old 20th February 2004, 18:26   #7
AWM3000
Junior Member
 
Join Date: Mar 2001
Posts: 29
yeah, that's what I was thinking of--having the five circles, and being able to click on one to set the rating.
AWM3000 is offline   Reply With Quote
Old 17th December 2006, 23:06   #8
usaf_707
Junior Member
 
Join Date: Jul 2005
Posts: 13
Send a message via ICQ to usaf_707
Have you made any progress on this? I'd like to get this with big ratings buttons because I'd like to be able to rate songs on long drives. (I made a car computer with a small 7" LCD screen)

Thanks for your interest.
707
usaf_707 is offline   Reply With Quote
Old 18th December 2006, 02:49   #9
billyvnilly
Forum King, M.D.
 
billyvnilly's Avatar
 
Join Date: Mar 2004
Location: Detroit burbs
Posts: 3,379
Send a message via ICQ to billyvnilly Send a message via AIM to billyvnilly
mspp

they provide an example .wal of how to add UI rating to a skin after you install the package under winamp\plugins\mspp\demo skins
billyvnilly is offline   Reply With Quote
Old 22nd December 2006, 04:23   #10
usaf_707
Junior Member
 
Join Date: Jul 2005
Posts: 13
Send a message via ICQ to usaf_707
I was able to *semi-successfully* integrate ratings into the default Winamp Modern skin by copying code from the MSPP Ratings skin. However, there are problems!

1) something with the colors prevents the rating from staying after you press on it. If you right click on the song name and look at the rating, the selection was in fact stored, but it's just not displayed. This problem is NOT evident in the MSPP Ratings skin demo.

2) In my modified Winamp Modern skin, pressing on a star to choose a rating doesn't always store the right value.

3) If you give a song a rating, then come back to it, the ratings stars do not reflect the previously made rating. However, right clicking and viewing the Ratings menu item reveals the previously chosen selection.

4) I can't use Winamp's new "scaling" feature because touching on a ratings star stores the wrong rating vs. what you click on.

5) Adjusting the font size to make it bigger messes up the storing of the ratings you click on.

Overall, I see great potential in this. The primary reason that I want this is to use in my CarPC. It's 7" LCD and 800x600 makes it imperative to have a simplified GUI with extra large buttons and fonts. If I could get ratings working before I leave for a very very long drive, I'll be able to make the drive semi-productive to rate my music.

usaf_707 is offline   Reply With Quote
Old 22nd December 2006, 04:28   #11
usaf_707
Junior Member
 
Join Date: Jul 2005
Posts: 13
Send a message via ICQ to usaf_707
Oh yes... here's the modified code for player-normal.xml. I also had to copy the \scripts directory from the Ratings skin (after you decompress the WAL file by renaming it to .ZIP) to the Winamp Modern skin's \scripts directory. Here's the modified code: The last 4 sentences before </layout> are the lines I copied from Interface.xml, which is the MSPP ratings demo xml file.

code:
<!-- player-normal.xml creates the layout of the Winamp Player Window. -->

<include file="player-normal-group.xml" />

<layout
id="normal"
minimum_w="390"
minimum_h="280"
w="390"
h="280"
droptarget="pldr"
snapadjustbottom="116"
linkwidth="shade"
>


<Wasabi:MainFrame:NoStatus
x="0" y="0" w="0" h="0" relatw="1" relath="1"
content="player.content.group"
padtitleleft="10"
padtitleright="25"
shade="shade"
/>
<sendparams target="window.titlebar.title" default="WINAMP"/>
<sendparams target="mousetrap" dblClickAction="SWITCH;shade"/>
<sendparams target="window.top.left;window.top;window.top.right;
window.left;window.right;window.bottom.left.top;
window.bottom.left;window.bottom.left.bottom;
window.bottom.top;window.bottom;window.bottom.bottom;
window.bottom.right.top;window.bottom.right;
window.bottom.right.bottom;" resize="0"/>
<hideobject target="close;close.inactive"/>


<layer
x="-42" y="4"
relatx="1"
image="wasabi.button.bg.title"
/>
<button
id="Minimize"
action="MINIMIZE"
x="-41" y="4"
relatx="1"
image="wasabi.button.minimize.inactive"
tooltip="Minimize Winamp"
activeAlpha="0"
/>
<button
id="Minimize"
action="MINIMIZE"
x="-41" y="4"
relatx="1"
image="wasabi.button.minimize"
downImage="wasabi.button.minimize.pressed"
hoverImage="wasabi.button.minimize.hover"
tooltip="Minimize Winamp"
inactiveAlpha="0"
/>

<layer
x="-30" y="4"
relatx="1"
image="wasabi.button.bg.title"
/>
<button
id="winshade"
action="SWITCH" param="shade"
x="-29" y="4"
relatx="1"
image="wasabi.button.winshade.inactive"
tooltip="Windowshade Mode"
activeAlpha="0"
/>
<button
id="winshade"
action="SWITCH" param="shade"
x="-29" y="4"
relatx="1"
image="wasabi.button.winshade"
downImage="wasabi.button.winshade.pressed"
hoverImage="wasabi.button.winshade.hover"
tooltip="Windowshade Mode"
inactiveAlpha="0"
/>

<layer
x="-18" y="4"
relatx="1"
image="wasabi.button.bg.title"
/>
<button
id="Close"
action="CLOSE"
x="-17" y="4"
relatx="1"
image="wasabi.button.exit.inactive"
tooltip="Exit Winamp"
activeAlpha="0"
/>
<button
id="Close"
action="CLOSE"
x="-17" y="4"
relatx="1"
image="wasabi.button.exit"
downImage="wasabi.button.exit.pressed"
hoverImage="wasabi.button.exit.hover"
tooltip="Exit Winamp"
inactiveAlpha="0"
/>

<wasabi:text x="200" y="25" w="120" h="55" text=" *****" bold="1" fontsize="48" color="128,128,128"/>

<wasabi:text id="txt1" x="200" y="25" w="120" h="27" text="" bold="1" fontsize="48" color="128,128,128"
shadow="1" shadowcolor="255,255,255" shadowx="1" shadowy="1" visible="1"/>

<wasabi:text id="txt2" x="200" y="25" w="120" h="27" text="" bold="1" fontsize="48" color="255,255,255"/>

<script file="scripts/script.maki" />

</layout>




usaf_707 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump