BrowseAmp manual
version

 

back
2.3.2 playlist manipulation
BrowseAmp -> creating skins -> Hyperlink commands -> playlist manipulation

clear playlist

clear

clear the current playlist.

Parameters
none

Example
<a href="index.html?clear">clear playlist </a>


save current playlist

saveplaylist

Writes the current playlist to the current BrowserDirectory. You can use a HTML form for filename input.

Parameters
none

Example
<form name="form1" method="get" action="" class="standard">
save playlist:
<input type="text" name="saveplaylist">&nbsp;
<input type="submit" name="button" value=" save ">
</form>

 

play a track

playsong=#
playtrack=#

Specify a track to play immeadiately. Use this command in a playlist row template.

Parameters
#: the SongID of a track

Example
<a href="?playtrack=<#playlist_songid>"><#playlist_artist> - <#playlist_title></a>

 

search playlist

search_playlist_string=<string>

The playlist is filtered with the string given in the parameter. Only tracks that match the searchstring are displayed in the playlist. Use this with an input field in a form. (see base skin, playlist.html)

Parameters
<string>: what you are searching for

Example
<form name="form1" method="get" action="" class="standard">search: <input name="search_playlist_string" type="text" id="search_playlist_string"> &nbsp; <input type="submit" name="button" value=" search "> </form>

 

remove a track

removesong=#
removetrack=#

Remove a track from the playlist. Use this command in a playlist row template.

Parameters
#: the SongID of a track

Example
<a href="?removesong=<#playlist_songid>">remove track</a>

 

add a random file to the playlist

addrand

Adds a random file or a directory to the end of the playlist. The command does the same like the keep-playlist-alive function. It adds a random track from the MP3 root directory including the subdirs.

Parameters
none

Example
<a href="?addrand&playaddedifnotplaying">add random track</a>


add a file or directory to the playlist

add=<string>

Adds a file or a directory to the end of the playlist. Use this command in a browser files/directories row template.

Parameters
<string>: Use the browser_enc_directoryname tag to specify a directory or browser_enc_filename to specify a file.

Example
<a href="browser.html?add=<#browser_enc_directoryname>">add</a>


add and play a file

file=<string>

Adds a file to the playlist and starts playback of that file. Use this command in a browser files row template.

Parameters
<string>: Use the browser_enc_filename to specify a file.

Example
<a href="browser.html?file=<#browser_enc_filename>"> <#browser_filename></a>


insert a file after the current track

insert=<string>

Adds a file to the playlist after the current track. Use this command in a browser files row template.

This function does NOT work with directories or playlists. Only the last track would be added after the current. The others are added to the end. It's a Winamp problem...

Parameters
<string>: Use the browser_enc_filename to specify a file.

Example
<a href="browser.html?insert=<#browser_enc_filename>">queue next </a>

 

move a track one pos up in the playlist

moveup=#

Move the specified track one position up in the playlist.

Parameters
#: the SongID of a track

Example
<a href="?moveup=<#playlist_songid>">up</a>


move a track one pos down in the playlist

movedn=#

Move the specified track one position down in the playlist.

Parameters
#: the SongID of a track

Example
<a href="?movedn=<#playlist_songid>">down</a>

continue with browser commands

last change: 2008-02-26 , Henry Thasler
www.browseamp.com