Continuous Flash music player while navigating site
Posted
by phx-zs
on Stack Overflow
See other posts from Stack Overflow
or by phx-zs
Published on 2010-06-16T21:38:05Z
Indexed on
2010/06/16
21:42 UTC
Read the original article
Hit count: 223
I have a site that includes a Flash music player integrated into the layout. I want users to be able to navigate around the site without interrupting the music. I've done plenty of research and thinking and the following are the options I came up with (keeping in mind I want to be as SEO friendly as possible). Anyone have another idea?
AJAX:
I set up a version that changes the main content div to whatever nav link they click, thereby not interrupting the Flash player. I set it up in the proper search-engine-friendly manner with direct links and JQuery/Ajax functions. If someone goes to site.com/ and clicks the Contact nav link, it loads what's in the main content div on site.com/contact.php into the main content div and changes the URL bar to site.com/#Contact. The same goes for if they go to site.com/contact.php and click About in the nav, it loads the About content and changes the URL bar to site.com/contact.php#About.
Obviously this opens up a whole new can of worms with AJAX and hash navigation/history issues, and I would end up with people possibly linking to things like site.com/contact.php#About (which I think looks terrible and can't be too great for SEO).Store the Flash player vars somewhere and reload them with the page:
I'm not sure how to go about this, but I thought about keeping my regular navigation without AJAX and have it so when a user clicks a nav link, before it changes pages it stores the Flash player vars (current song and song position) somewhere, then loads them into Flash when the new page loads.Something with an iframe?
Good alternative to a Flash player that will work for this type of application?
Thanks!
© Stack Overflow or respective owner