Hi guys,
It’s time for one of those big "DON’T DO IT MAAAN!"-questions again.
So an ’acquaintance’ called me today and asked if I could do a website. Fair enough.
But then he told me that it _needed_ to have some background music running on it. He had a composer working on the piece as we spoke.
I of course tried explaining him the disadvantages of having auto playing utterly annoying background music on a site in 2010, but there was no stopping him.
And then I thought about it. How would one really do this?
I mean, I have always just resented the very thought of doing it and have never really tried it.
As I see it the two best options available are:
The Frameset Path
The Ajax Path
But which one is to prefer over the other? Yes I know that I can also <embed>/<link>/<param>/<onload> something together, but I generally try to make my sites validate and be available for other things than IE, so I will not even think about going down that road. Those tags, are like Mordor, bad things happen when you talk about them..
Anyways, The Ajax Path seems to be the most appealing to me, (frames are oldschool), but then again I would also loose alot of the functionality a website normally offers. Linking, history etc.
So what do you guys think? How would you implement music on a ModX site nowadays?
Of course pop-up is also an option, but hey, we can do better right.. right?
.cb
Signature on it's way
I was asked to do the same but did not get to that part
I think the best solution is to use a flash player and put a mute button somewhere in the page. If you want continuous music for an html website then I guess you have to use ajax or iframe or flash.
I have a simple website so ajax for me. Might be harder for more complex websites. I’ll stay away from iframes and popups.
I’d love to see other opinions.
-
☆ A M B ☆
- 24,524 Posts
Hi cipa, Breezer and Sottwell,
Thanks for the replies.
cipa: I agreee, that is also the only options that I see
Breezer, Sottwell: I know both mPlayer and Flowplayer, but that does not solve the problem of having continuous music playing on a website where users are navigating different pages etc. It’s not so much whether I should use mPlayer og Flowplayer or something else that I am looking for. I am asking how to best implement music, without it starting over every time a user clicks a link.
And at the same time, how to implement it without loosing too much fucntionality such as linking, history etc.
Signature on it's way
Maybe the client would go for an opt-in strategy where users click on a button to start the music. That’s often the only way to keep me from immediately fleeing from a site with music.
Having music that continues when you switch pages could be done with JS, I think, but that’s even *more* annoying, IMO.