[Pro] multiple mp3s on a web page

Hello all, just started using Freeway (loving it) and I have a question about mp3s

I’m designing a page with multiple (about 10) mp3s on it. They’re all set to not auto-play. They’re hidden until the user mouses over a name (the mp3s are VO talent demos), at which point that mp3 becomes visible and the user can click the play button.

The problem is that if the user mouses over another name the mp3 hides but continues to play. You can play more than one mp3 at a time.

What I’d like to do is set the mp3s so that if they hide, they stop. Is there an “extended” command that would do that. Or at least a command that would stop one mp3 if another is started playing?

Craig


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You would probably be better to use a player like Yahoo’s Media Player - for which there is an action.

Not sure that there is an easy solution to have them appear on mouseover though.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks, I may have to go the player route.

I find the multiple mp3s showing as you mouse over the names more visually interesting, so I’d like to do that if I can get the mp3s to stop playing when another starts or they hide.

Craig


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Here’s how I would do this: make it happen in separate layers, with a single iframe for the player.

First, set up a set of graphic tabs for each of the sound files. Add a set of HTML boxes with the description for each, and set these up with the Target Show/Hide Layer Action to make the descriptions appear when you mouse over the appropriate graphic button.

Draw an iframe on the page with the iframe Action (get it at ActionsForge) and make note of the name you assign it in the Action interface.

Finally, use the Link to File Action on each of your rollover buttons to link to each of your files, setting the target attribute of the link to whatever you named the iframe.

So a mouseover displays the help text, a click loads the chosen MP3 into the iframe, and if all goes well, it should auto-play. Whenever another file link is clicked, the iframe will empty and reload with the new file, so there will only ever be one instance of an MP3 file on your page at a time, and none of them will be there at page load time to slow the whole page down.

Walter

On Oct 11, 2012, at 7:52 AM, Craig Lee wrote:

Thanks, I may have to go the player route.

I find the multiple mp3s showing as you mouse over the names more visually interesting, so I’d like to do that if I can get the mp3s to stop playing when another starts or they hide.

Craig


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Walter,

Sorry but I can’t seem to get this to work. There seems to be no documentation that I can find anywhere to help.

To do what you’re suggesting I would have names as a rollover, then clicking on them would “load” the mp3 into the iframe (no need for the description). But doing a LINK TO FILE gives me no options to point to the iframe.

Feeling really stupid trying to get this to work…

Craig


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sorry, that’s my fault. Link to file doesn’t have a target attribute available. If you use Upload Stuff to send the file to your server, and then use the External tab of the Hyperlink dialog to link to the file where you know it will be (in the Resources folder) you do get access to that.

Or, I just hacked up the built-in Link to File Action and made the Link to File with Target Action. That will let you set a target on the link to the file.

http://actionsforge.com/actions/view/275-link-to-file-with-target

Give that a try.

Walter

On Oct 16, 2012, at 7:10 PM, Craig Lee wrote:

Feeling really stupid trying to get this to work…


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Amazing Walter!

The action works like a charm. Thank you, thank you, thank you…

Craig


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options