Wimpy MP3 Player API

Server Side

Actions:
serveMP3
downloadfile
dir
phpinfo
feedPlaylist
getCoverart
podcast

Directives:
wimpyConfigFile
media_types
wimpy_auth
getMyid3info
ecommerce
ecomWindow
useMysql
defaultVisualBaseName
defaultVisualExt
hide_folders
hide_files
startDir
getid3libPath
httpOption
blockPHPinfo

Client Side

wimpyApp
wimpySkin
startPlayingOnload
randomOnLoad
shuffleOnLoad
displayDownloadButton
autoAdvance
popUpHelp
forceDownload
startOnTrack
trackPlays
voteScript
getMyid3info
forceXMLplaylist
useSysCodePage
ecommerce
ecomWindow
useMysql
scrollInfoDisplay
infoDisplayTime
bufferAudio
theVolume
defaultImage
loopPlaylist
limitPlaytime
startupLogo

HTML display

wimpySkin
wimpySwf
bkgdColor
tptBkgd
wimpyHTMLpageTitle
useSysCodePage

 

 

 

downloadfile

downloadfile -- Forces browser to open a "save as" dialog to download a file.

Usage

wimpy.php?action=downloadfile&theFile=http://www/path/to/file.mp3

Parameters

theFile -- a URL to a file

Description

Establishes proper server headers to pass the file to the browser and pops up a "save as" dialog so that the end user can save the mp3 file to their local computer.

This action is tied to the "displayDownloadButton" and "forceDownload" option in the player and is only used when "forceDownload" is set to yes.

To activate this option, include forceDownload=yes and displayDownloadButton=yes when loading wimpy.swf.
Example:
wimpy.swf?otherParams=blah&forceDownload=yes&displayDownloadButton=yes

Once this option is activated, wimpy.swf will make all requests to download a file as:

wimpyApp.php?action=downloadfile&theFile=http://www/path/to/file.mp3

NOTE: If you are running wimpy off of an XML playlist or if you are using the "Force XML Compliance" option, downloadfile is not available.

See also:

displayDownloadButton, forceDownload, forceXMLplaylist

 

Add and delete mp3s to your MySQL database

 

 



©2002-2008 Plaino.