Click to See Complete Forum and Search --> : Need help w/ embedded music player


burtonlive
03-22-2007, 04:53 PM
Here's my dilemma. I've embedded essentially 7 different players for each option on the left menu. I've managed to get it so it doesn't auto play when you open the menu option. But if you start playing a song and then choose a new player from the left and start playing it the first song set still plays.

I'm looking for something that when another player is selected from the left menu all functions from the previous menus will stop so that more than one song isn't playing at once. I think there maybe something with the flash player I can do to stop it.

Here's the site if you want to see what I'm talking about:

http://smxtreme.com

It's under the music section. Thanks ahead of time guys!

Webjedikungfu
03-24-2007, 07:38 PM
I checked out your site(very cool).

I have an audio project going as well, check it here:(nearly complete, huge project 100% flash portal for musicians.)
http://www.audiopeeps.com/home.php

Anyways, what I would do is try to use the same player instance for each playlist menu selection. You should be able to load a new "playlist.xml" file for each button that a user presses. This way your player would stay on screen while seemlessly-dynamically loading different playlists according to user selection.

In this way you have more control over stop and play functions because your staying inside the same player the whole time. In theory, you could say "stop" on one playlist, and "start" new one here when they press a button.

You should'nt have to load different players in each time. It would take some work, but if you have trouble producing it this way, I'll try my best to help you guys out.

And there may also be an easier solution so you would'nt have to change too much, and keep the setup you have, but I don't know it, sorry.

Hope my advice is related and understandable, good luck.

burtonlive
03-26-2007, 10:49 AM
Good thinking, I hadn't even thought about running a steady player and just adjusting the playlist depending on the menu options. I'll take a couple of runs at it. Thanks for the info!!

Webjedikungfu
03-26-2007, 12:26 PM
Hey, I just looked at your source for that page and I noticed your server side scripting is asp, and that you are using flashvars to run your MP3s in and not a "xml" playlist file. Your running each song in as a variable. If you opt for an "xml" playlist, it would help your situation greatly. But running the MP3's in as separate variables works too.

I don't know wimpy well or it's XML capabilities, but I hear it's powerful so it should play an MP3 list off of an XML file. Then it's just a matter of Flashvar-ing the .xml file name upon page reload.

Alternately, if you're pretty good with variables and asp, you could reload the page and use just one player, and feed it that certain MP3 variable list like you're doing already when the appropriate button gets pushed. That should be an easy fix too if you no likey XML.

I work in PHP, so I can't offer code examples. If I goofed it up, somebody here would yell at me.

Somebody who knows asp well can show you a variable method that will be smart and clean if you still need assistance.

good luck

burtonlive
03-26-2007, 05:07 PM
I wanted to use the php version because more people seem to be versed in that, but I didn't have a choice unfortunately. I'll mess around with the xml file a little bit and see what I can come up with. For now at least it's functional, and considering the deadline we had I'm happy with where it's at.

Thanks again!

Webjedikungfu
03-26-2007, 05:45 PM
I copy pasted this straight from wimpy's site, you may have read already. But maybe not so I posted it.:::
And no need to thank, I owe this site some help back. Take care:

One of the drawbacks to using an XML playlist is that certain advanced options are not available. Options such as:

- Protect MP3 files from caching locally
- Force download, Ecommerce
- Automatic ID3 tag reading

The reason that these features are not available is because only server-side scripting can accomplish these tasks. When running Wimpy off of and XML playlist, Wimpy considers the XML files to be the primary "application" that serves it the playlist. XML files do not offer any way of controlling server behavior the way that server-side scripting languages such as PHP, ASP or ColdFusion can.

To use a Playlister generated playlist file with wimpy:

XML playlist files take the place of wimpy.php/asp/cfm. Hence, you will be "running wimpy off of" the playlist.xml file. To run wimpy off of your playlist.xml file, use the Customizer tool, and for the initial question "Where is wimpy.php/asp/cfm or playlist.xml..." enter the URL to the playlist.xml file.