View Full Version : Simple custom mp3 player
02-26-2009, 11:15 PM
Here is my vision.
I create a play button (play.jpg)
When people go to my website, they can click on the play button and it will play the song in the background.
I don't want it to open to a new page where quicktime or w/e plays it. I want it to play right there on the site with a click of a button.
Simple. Simple. Simple.
02-27-2009, 01:16 AM
Only with the object (http://joliclic.free.fr/html/object-tag/en/) element.
02-27-2009, 03:47 AM
You would want to use a object element :thumbsup:
<object type="audio/x-wav" data="REPLACE WITH LOCATION" width="200" height="20">
<param name="src" value="data/test.wav">
<param name="autoplay" value="false">
<param name="autoStart" value="0">
<a href="REPLACE WITH LOCATION">play</a>
02-27-2009, 10:36 PM
Can you make it so that it plays it right there and doesn't open up a new page?
02-28-2009, 08:39 AM
that code gets placed in the location you want it to appear, If u want it to auto play just change the autoplay param to true and ur off to the races.
03-01-2009, 02:30 AM
03-01-2009, 05:26 PM
From the lack of responses I'm guessing this isn't possible...
03-01-2009, 08:58 PM
Cant be done, only way to have something like that is a flash player.
03-01-2009, 10:28 PM
03-01-2009, 10:29 PM
flash would be your best bet.
03-01-2009, 11:55 PM
Ok thanks. Do you know of any simple flash players that wouldn't take long to load you know what I mean? Just to play a single file.
03-02-2009, 12:07 AM
03-02-2009, 01:27 AM
03-02-2009, 04:24 AM
Hey I can't get that player to stop autostarting sometimes... rarely it doesn't and most of the time it does. Why is this?
<embed wmode="transparent" src="x3.swf?url=startupsnd.mp3&autostart=false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="150" height="50"></embed>
btw putting another quotation mark before false doesn't change anything...
03-02-2009, 04:56 AM
I think that one may be buggy, you can try this one
03-02-2009, 04:51 PM
Awesome, that's better anyways, simple and to the point... Thanks. I'll give it a try.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.