Recent articles
© Dial Solutions Ltd 2009 - 2023
| 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 a the browser's native audio 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 the browser's native audio 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: 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! loop: whether or not to loop back to the beginning of the file once it has finished playing. Permitted values are true or false, default is false. 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 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 a the browser's native audio player instead. |