April 23rd, 2004, 01:49 PM
|
#1 (permalink)
| | Ultimate Member
Join Date: Apr 2004 Location: San Antonio, TX
Posts: 1,375
| Media Player Code Assistance...
Hi all, I'm making a website for a friend....instead of a button that plays the song that he wants played (3 seperate buttons, 3 different songs) he wants something similiar to a media player where it has play, pause, and stop and has the ability to drag the time marker back and forward for rewind...pretty much like the Windows Media Player in-website player...I was wondering how do I go about finding/writing a script that allows this? If possible, could you reference a site for me please? The files are MP3's, but I have no problems converting them to anything but WAV. Thanks...
__________________
My Rig:
Intel Core 2 Duo E6600||6GB OCZ Rev2 DDR2 800||MSI 975X Platinum
Radeon HD4850 512MB||SATA 320GB & 160GB
|
| |
April 23rd, 2004, 04:29 PM
|
#2 (permalink)
| | Ultimate Member
Join Date: Apr 2004 Location: San Antonio, TX
Posts: 1,375
| |
| |
April 23rd, 2004, 05:56 PM
|
#3 (permalink)
| | Ultimate Member
Join Date: Apr 2004 Location: San Antonio, TX
Posts: 1,375
|
actually, never mind, couldn't find the exact thing that I'm looking for, these were all website media managers, I just need something that'll play a specific file and let the user control the play... |
| |
April 23rd, 2004, 06:28 PM
|
#4 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
|
Whats wrong with using the built in windows media player control?
Option #2: You could just use Flash to do what you need, completely customizable.
Option #3: What about using a java applet.
Out of all of these, I would just use option #1.
just embed it: Code: <embed src="YOUR FILE.XXX" width=300 height=60 autoplay=true loop=true hidden=false></embed> the values are pretty much self explanitory..
Blaze |
| |
April 23rd, 2004, 06:45 PM
|
#5 (permalink)
| | Ultimate Member
Join Date: Apr 2004 Location: San Antonio, TX
Posts: 1,375
|
I already have an embedded file on the site....I'm trying to get two CD Samplers one for each of the 2 CD's to play, I can make it to where you can open/save, but I'm looking for the script that plugs in a media player that has nothing but the time scroll bar, play, pause, and stop buttons....here's the website, you will see what I am talking about...btw, not all the links works right now cuz I am currently working on it, heh...and it's not that great of a website either because he needs it today, lol...so I rushed to get it done...anyways, thanks... http://www.darelc.com |
| |
April 23rd, 2004, 10:39 PM
|
#6 (permalink)
| | Ultimate Member
Join Date: Apr 2004 Location: San Antonio, TX
Posts: 1,375
|
okay, I found the code for it and I know which three fields to change, but I don't know exactly what to put into those fields....I have tried doing the absolute and relative filename and neither have worked, can someone help me please? The filename goes into the following sections of the code listed below:
<PARAM NAME="FileName" VALUE="yourfilehere.asf"> and SRC="yourfilehere.asf"
------------ CODE STARTS HERE ------------
<OBJECT ID="MediaPlayer1" width=160 height=162
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/
controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<PARAM NAME="FileName"
VALUE="mms://netshow.microsoft.com/ms/sbnasfs/wmt/turtle28.asf">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="true">
<PARAM NAME="showControls" VALUE="true">
<EMBED type="application/x-mplayer2"
pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
SRC="mms://netshow.microsoft.com/ms/sbnasfs/wmt/turtle28.asf"
name="MediaPlayer1"
width=160
height=162
AutoStart=true>
</EMBED>
</OBJECT>
---------- CODE ENDS HERE ----------- |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |
Posting Rules
| You may post new threads You may post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |