|
||||
| home > wimpy MP3 player > documentation > API | www.wimpyplayer.com | |||
Server Side
Client Side
HTML display
|
downloadfiledownloadfile -- Forces browser to open a "save as" dialog to download a file. Usagewimpy.php?action=downloadfile&theFile=http://www/path/to/file.mp3 ParameterstheFile -- a URL to a file DescriptionEstablishes 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. 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
|
©2002-2008 Plaino.