
Recent articles
© Dial Solutions Ltd 2009 - 2012
| Embedding MP3 filesMP3 files can be uploaded in the same way as all other files. Normally they will just be displayed as a file icon which allows the file to be downloaded, however it is possible to cause the MP3 file to be played in an embedded flash mp3 player instead. The MP3 file can be embedded in the page by entering [Handler] into the text field on the file upload form. The [Handler] text causes the Webulator software to invoke its 'Handler' routines for the MP3 file and causes a small embedded flash MP3 player to appear which gives the user start and pause buttons, a progress bar and a volume control as shown below. Extra parameters can be added after the [handler] text: width: width in pixels of the player (default is 300) Because of the way the MP3 player software works, the value controls all players on a page. If you specify the width more than once, the last one on the page will have precedence. loop: whether or not to loop the audio (i.e. start playing it again once it has finished). Permitted values are true or false, default is false. play: whether or not to play the audio automatically when the page opens. Permitted values are true or false, default is false. Use with caution as this can be irritating! initialvolume: A value for the volume control on the player. 0 is silent, 100 is full volume, default is 100. showfile: In addition to showing the MP3 player, the file can also be displayed as a file icon for download along with the text supplied with the showfile argument. In the example below we have used [Handler]loop=true;initialvolume=50;showfile=Download the MP3 file Those who do not have a flash and javascript enabled browser will see a link to the MP3 file, which will allow them to download it and play it elsewhere. Embedding MP3 files MP3 files can be uploaded in the same way as all other files. Normally they will just be displayed as a file icon which allows the file to be downloaded, however it is possible to cause the MP3 file to be played in an embedded flash mp3 player instead. |