Try adding autostart false along with autoplay false (two separate attributes). Are you using a Flash player or just embedding an audio file and letting the browser work it out?
Walter
On Feb 1, 2012, at 9:37 AM, t50ufo wrote:
An audio file on PC Chrome browser auto plays even when I have the extended attribute set to autoplay false.
Anyone got any ideas how I can stop it playing on the page load?
Nope - that didn’t work! Is there any other way I can add the audio. It is just a simple short tune as mp3. The embedding method seems to bring up different sorts of player controls in browsers but the auto play is the most annoying.
in a Markup Item and use Upload Stuff or another upload Action to put the file where your code expects it. Note that there is a trick to getting this to work in as many browsers as possible. You need to make an OGG version for Firefox and Opera, and you have to put the OGG version first in the order of options or Firefox gets sniffy and refuses to play.
Autoplay is an option, but it’s (thankfully) not the default. If you did want it to play immediately, you would add autoplay=“autoplay” to the outer audio tag.
Your other option is to use a Flash audio player. I’ve combined the two recently, using an HTML5 Audio container with ogg, mp3 and then flash (as a fallback for various earlier versions of IE) nested inside. That also requires some hand-coding, there’s nothing for that in an Action yet.
Walter
On Feb 1, 2012, at 10:02 AM, t50ufo wrote:
Nope - that didn’t work! Is there any other way I can add the audio. It is just a simple short tune as mp3. The embedding method seems to bring up different sorts of player controls in browsers but the auto play is the most annoying.
But, there is no volume control on the Firefox version. Is there a way to enable on - I just have a loudspeaker icon at the end of the bar that mutes or restores sound.
Could you post a link? Did you add the controls=“controls” part to the audio tag? Because that should show the volume if it’s there in the browser to enable. (Remember, like any browser-native control, like form fields, you are entirely at the whim of the browser designers how this will look/work.)
Walter
On Feb 1, 2012, at 11:12 AM, t50ufo wrote:
That Worked!
But, there is no volume control on the Firefox version. Is there a way to enable on - I just have a loudspeaker icon at the end of the bar that mutes or restores sound.
Yeah, I see what you mean. That’s odd. No, I don’t know how you’re going to add it back if the browser doesn’t provide it. You’ve already done the one thing you can do (controls) and after that it’s up to Firefox.
Are there any other Audio Actions that don’t require special coding or uploading elements sans Freeway Pro? I’d like to have more control over an MP3 I have embedded in a webpage using the Background Sound action.
in a Markup Item and use Upload Stuff or another upload Action to put the file where your code expects it. Note that there is a trick to getting this to work in as many browsers as possible. You need to make an OGG version for Firefox and Opera, and you have to put the OGG version first in the order of options or Firefox gets sniffy and refuses to play.
Autoplay is an option, but it’s (thankfully) not the default. If you did want it to play immediately, you would add autoplay=“autoplay” to the outer audio tag.
Your other option is to use a Flash audio player. I’ve combined the two recently, using an HTML5 Audio container with ogg, mp3 and then flash (as a fallback for various earlier versions of IE) nested inside. That also requires some hand-coding, there’s nothing for that in an Action yet.
I’ve just created a new Action based on the audio.js code (http://kolber.github.com/audiojs/). The audio.js Action (http://actionsforge.com/actions/edit/245-audiojs) allows you to add mp3s to your site using HTML5’s audio tag (works in most modern browsers including the iPad/iPhone etc) and falls back to using Flash for older browsers.
There appears to be a lot that you can do with the library such as re-skinning the interface and creating playlists but these will have to wait for a later version of the Action. Currently you just need to add the Action to your page and specify the mp3 file or url path and you’re done.
Regards,
Tim.
On 1 Feb 2012, at 18:28, RavenManiac wrote:
Are there any other Audio Actions that don’t require special coding or uploading elements sans Freeway Pro? I’d like to have more control over an MP3 I have embedded in a webpage using the Background Sound action.
I just gave it a try - very easy.
Just a couple of initial things I noticed:
The size of the player - would it be possible to be able to customise the size or length of the bar in particular. The bar length may not fit into a page design at its fixed length.
A volume control - that would make this action a “must have”
The size of the player - would it be possible to be able to customise the size or length of the bar in particular. The bar length may not fit into a page design at its fixed length.
The overall size of the item as well as the style can be adjusted with CSS although currently you’d have to do this outside of the Action. I’ll add these features into the next version of the Action. You can see a modified version of the player here; http://kolber.github.com/audiojs/demos/test2.html
A volume control - that would make this action a “must have”
I doubt you’ll see this as HTML5’s audio tag doesn’t support volume control at all.
Regards,
Tim.