Softpress

Stopping an audio mp3 file autoplaying on your page

When an MP3 file is dragged and dropped onto a Freeway page (or imported into an HTML item on the page), the default behavior is for it to "autoplay" on page load.

If you want to stop this happening,  you need to use extended code on the item to switch autoplay off.

To do this, select the item on the page, go to Item>Extended, click on "New", enter "autoplay" (without the quotes) as the Name and "false" (again no quotes) as the Value.

Now when you preview in a browser you will see the QuickTime controller bar and the audio file will only play when the "Play" button is clicked.

Because the code that Freeway generates for playing audio files will work on the default media player for the machine it's being viewed on (Windows Media Player on Windows for instance), it's also a good idea to to add a second attribute that tells WMP to not autoplay. Again in the Extended dialog for the plugin item, click on "New", enter "autostart" (without the quotes) as the Name and "false" (again no quotes) as the Value.


Related Articles

Attachments

No attachments were found.

Article Details

Last Updated
24th of November, 2008

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

 Subscribe me

Subscribe me  Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF


User Opinions

100% thumbs up 0% thumbs down (3 votes)

How would you rate this answer?




Thank you for rating this answer.

Continue