home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1869
Discussions: 188,398, Posts: 2,243,593, Members: 232,627
Old April 23rd, 2004, 01:49 PM   Digg it!   #1 (permalink)
Ultimate Member
 
fpantovich's Avatar
 
Join Date: Apr 2004
Location: San Antonio, TX
Posts: 1,375
Send a message via ICQ to fpantovich Send a message via AIM to fpantovich Send a message via MSN to fpantovich Send a message via Yahoo to fpantovich
Question
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

fpantovich is offline   Reply With Quote
Old April 23rd, 2004, 04:29 PM     #2 (permalink)
Ultimate Member
 
fpantovich's Avatar
 
Join Date: Apr 2004
Location: San Antonio, TX
Posts: 1,375
Send a message via ICQ to fpantovich Send a message via AIM to fpantovich Send a message via MSN to fpantovich Send a message via Yahoo to fpantovich
Okay, I think I found it...I'll let you guys know how it goes...found ALOT of free scripts on an awesome website....well, the vast majority are free, heh...ttyl

http://programmingpub.com/scripts/Free_PHP_Scripts/

fpantovich is offline   Reply With Quote
Old April 23rd, 2004, 05:56 PM     #3 (permalink)
Ultimate Member
 
fpantovich's Avatar
 
Join Date: Apr 2004
Location: San Antonio, TX
Posts: 1,375
Send a message via ICQ to fpantovich Send a message via AIM to fpantovich Send a message via MSN to fpantovich Send a message via Yahoo to fpantovich
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...

fpantovich is offline   Reply With Quote
Old April 23rd, 2004, 06:28 PM     #4 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
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
Blazer06 is offline   Reply With Quote
Old April 23rd, 2004, 06:45 PM     #5 (permalink)
Ultimate Member
 
fpantovich's Avatar
 
Join Date: Apr 2004
Location: San Antonio, TX
Posts: 1,375
Send a message via ICQ to fpantovich Send a message via AIM to fpantovich Send a message via MSN to fpantovich Send a message via Yahoo to fpantovich
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
fpantovich is offline   Reply With Quote
Old April 23rd, 2004, 10:39 PM     #6 (permalink)
Ultimate Member
 
fpantovich's Avatar
 
Join Date: Apr 2004
Location: San Antonio, TX
Posts: 1,375
Send a message via ICQ to fpantovich Send a message via AIM to fpantovich Send a message via MSN to fpantovich Send a message via Yahoo to fpantovich
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 -----------
fpantovich is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Most Active Discussions
Is It Just Me? (2904)
Unarmed man on his stomach shot by .. (6)
3-days in and no threads about Gaza (161)
New Build ( Finally ) (6)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
Folderchat Weekday thread (444)
Upgrading RAM (6)
Recent Discussions
Left 4 Dead Small Freezes (3)
RCA 52Inch HDTV wont turn on (4)
wishin i could edit my aol prof.. (0)
For cheap price and good qualit.. (0)
Sporadic internet connectivity (2)
Assassins Creed PC Problems (40)
I think my PSU is dieing (1)
building a gaming computer, inp.. (0)
Iming and surfing slowed down (3)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 03:24 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28