BrowseAmp manual
version

 

back
2.2.2 current track values
BrowseAmp -> creating skins -> HTML tags -> current track values

insert the index of the current track

<#CurrentIndex>

Insert the index of the current track. Shows values from 1..n.

Parameter
none.

Example
now playing: <#artist> - <#title> (Track <#CurrentIndex> in playlist)

 

insert the artist of the current song

<#artist>

Insert the artist of the current song. Taken from the ID3 tag information.

Parameter
maxlength: How many chars to display

Example
now playing: <#artist> - <#title>


insert the title of the current song

<#title>

Insert the title of the current song. Taken from the ID3 tag information.

Parameter
maxlength: How many chars to display

Example
now playing: <#artist> - <#title>


insert the name of the current song

<#SongTitle>

Insert the name of the current song. That's what Winamp says.

Parameter
maxlength: How many chars to display

Example
now playing: <#SongTitle> (<#SongLengthMin>:<#SongLengthSec>)


insert the url-encoded name of the current song

<#enc_SongTitle>

Insert the name of the current song. URL-encoded.

Parameter
none

Example
now playing: <#enc_SongTitle> (<#SongLengthMin>:<#SongLengthSec>)

 

insert the filename of the current track

<#CurrentTrackFilename>

Insert the filename of the current track.

Parameter
maxlength: How many chars to display

Example
<p title="<#CurrentTrackFilename>">now playing: <#SongTitle> </p>


Show information about the current track

<#CurrentFileInfo>

Show some information about the current track. Needs a item parameter set to know what information is wanted. More items coming soon.

Parameter
item: rating - show rating (0..5) of that file

Example
<script language="JavaScript" type="text/JavaScript">
stars = <#CurrentFileInfo item=rating>;
for(x=0;x<stars;x++) document.write("<img src=\"GFX/gstar1.gif\" border=\"0\">");
</script>


insert the directory of the current track

<#CurrentTrackDirectory>

Insert the directory of the current track. You can use this to display cover art.

Parameter
maxlength: How many chars to display

Example
<img width="100", height="100" src="front.jpg?src=<#CurrentTrackDirectory>">

 

insert some ID3 tag information

<#MetaData>

Insert some ID3 tag information. Returns an empty string if that field does not exist or is empty.

Parameter
field: What field to read from.
maxlength: How many chars to display

Example
now playing: <#SongTitle> / <#Metadata field=album>

 

insert the length of the current song in minutes

<#SongLengthMin>

Insert the length of the current song in minutes. Format: "mm"

Parameter
none.

Example
now playing: <#SongTitle> (<#SongLengthMin>:<#SongLengthSec>)


insert the length of the current song in seconds

<#SongLengthSec>

Insert the length of the current song in seconds mod 60. Format: "ss". Shows values from 00...59.

Parameter
none.

Example
now playing: <#SongTitle> (<#SongLengthMin>:<#SongLengthSec>)


insert the overall length of the current song in seconds

<#SongTotalSec>

Insert the length of the current song in seconds. Format: "ss".

Parameter
none.

Example
now playing: <#SongTitle> (<#SongTotalSec> seconds)

 

insert the position in the current song in minutes

<#SongPositionMin>

Insert the position of the current song in minutes. Format: "mm"

Parameter
none.

Example
position: <#SongPositionMin>:<#SongPositionSec>


insert the position in the current song in seconds

<#SongPositionSec>

Insert the position of the current song in seconds. Format: "ss"

Parameter
none.

Example
position: <#SongPositionMin>:<#SongPositionSec>


insert the position in the current song in percent

<#SongPositionPercent>

Insert the position of the current song in percent.

Parameter
highprecision: Gives you 2 additional decimal parts for increased precision.

Example
position: <#SongPositionMin>:<#SongPositionSec> (<#SongPositionPercent>%)

 

insert the remaining time of the current song in minutes

<#SongRemainMin>

Insert the remaining time of the current song in minutes. Format: "mm"

Parameter
none.

Example
remaining: -<#SongRemainMin>:<#SongRemainSec>


insert the remaining time of the current song in seconds

<#SongRemainSec>

Insert the remaining time of the current song in seconds mod 60. Format: "ss". Shows values from 00...59.

Parameter
none.

Example
remaining: -<#SongRemainMin>:<#SongRemainSec>


insert the remaining time of the current song in seconds

<#SongTotalSecRemain>

Insert the remaining time of the current song in seconds. Format: "ss".

Parameter
none.

Example
remaining: <#SongTotalSecRemain> s

 

insert the bitrate of the current song

<#Bitrate>

Insert the bitrate of the current song in kHz.

Parameter
none.

Example
<#Bitrate>kbps, <#Samplerate>kHz <#Channels on_mono="uhh... mono!">


insert the samplerate of the current song

<#Samplerate>

Insert the samplerate of the current song in kbps.

Parameter
none.

Example
<#Bitrate>kbps, <#Samplerate>kHz <#Channels on_mono="uhh... mono!">


insert the number of channels of the current song

<#Channels>

Insert the number of channels of the current song. Says "mono" or "stereo" by default.

Parameters
on_mono: String to insert if the current track is mono.

on_stereo
: String to insert if the current track is stereo.

Example
<#Bitrate>kbps, <#Samplerate>kHz <#Channels on_mono="uhh... mono!">

continue with playlist

last change: 2008-04-13 , Henry Thasler
www.browseamp.com