View Full Version : Embedded Windows Media Player
maverick916
10-22-2005, 05:36 AM
Hi. I'm a total newcomer to HTML and webcoding. I just set up a basic site on myspace.com to get in touch with old friends and acquaintances. I was wondering if someone would please help me with a coding issue.
It's probably really easy, but I couldn't find anything online. I've embedded MediaPlayer and linked it to a playlist. It seems to be working fine.
My only question is: how can I disable the fast-forward and fast-rewind buttons. I would only like to have the "next song" AND "previous song" buttons functioning. Because the songs are streaming audio, if a user by mistake hits the fast-forward button instead of the "next song" button it screws up the sound stream. Below is the code I'm using. THANKS SO MUCH IN ADVANCE!!!
<embed allowScriptAccess="never"src="http://www.columbia.edu/~ejr2105/Playlist.wpl"
type="application/x-mplayer2" autostart="true" loop="true"
height="45" width="180">
_Aerospace_Eng_
10-23-2005, 01:54 AM
Its either all or none.
<embed allowScriptAccess="never"src="http://www.columbia.edu/~ejr2105/Playlist.wpl"
type="application/x-mplayer2" autostart="true" loop="true"
height="45" width="180" showpositioncontrols="0">
sybrec
10-24-2005, 04:23 PM
I have followed this thread from the start and have found it very hard to stop reading, until now.:p Very insightfull!
I ultimetely want a random tune to play type of script as posted before
But my problem is i want that if one mp3 tune doesn't work to be replaced rather than skipped with another mp3. I have included one from your earlier post to use and its one thats not set up to random but this way i can learn it much better if i can see a tune being replaced with another if it doesn't work, even if it's a simple code.
Hmm now that i think about it this is probably very hard to do. I guess something like a timeout would have to be detected. The reason why is the .mp3 tunes are hotlinked, so i don't have control to play them properly if something happens to the host the tunes are on.
<html>
<div align=center>
<p>
<OBJECT id=music height=44 width=230 classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95>
<param name="AudioStream" value="-1">
<param name="AutoSize" value="0">
<param name="AutoStart" value="-1">
<param name="AnimationAtStart" value="-1">
<param name="AllowScan" value="-1">
<param name="AllowChangeDisplaySize" value="-1">
<param name="AutoRewind" value="-1">
<param name="Balance" value="0">
<param name="BaseURL" value>
<param name="BufferingTime" value="5">
<param name="CaptioningID" value>
<param name="ClickToPlay" value="-1">
<param name="CursorType" value="0">
<param name="CurrentPosition" value="-1">
<param name="CurrentMarker" value="0">
<param name="DefaultFrame" value>
<param name="DisplayBackColor" value="0">
<param name="DisplayForeColor" value="16777215">
<param name="DisplayMode" value="0">
<param name="DisplaySize" value="0">
<param name="Enabled" value="-1">
<param name="EnableContextMenu" value="-1">
<param name="EnablePositionControls" value="-1">
<param name="EnableFullScreenControls" value="0">
<param name="EnableTracker" value="-1">
<param name="Filename" value>
<param name="InvokeURLs" value="-1">
<param name="Language" value="-1">
<param name="Mute" value="0">
<param name="PlayCount" value="1">
<param name="PreviewMode" value="0">
<param name="Rate" value="1">
<param name="SAMILang" value>
<param name="SAMIStyle" value>
<param name="SAMIFileName" value>
<param name="SelectionStart" value="-1">
<param name="SelectionEnd" value="-1">
<param name="SendOpenStateChangeEvents" value="-1">
<param name="SendWarningEvents" value="-1">
<param name="SendErrorEvents" value="-1">
<param name="SendKeyboardEvents" value="0">
<param name="SendMouseClickEvents" value="0">
<param name="SendMouseMoveEvents" value="0">
<param name="SendPlayStateChangeEvents" value="-1">
<param name="ShowCaptioning" value="0">
<param name="ShowControls" value="-1">
<param name="ShowAudioControls" value="-1">
<param name="ShowDisplay" value="0">
<param name="ShowGotoBar" value="0">
<param name="ShowPositionControls" value="-1">
<param name="ShowStatusBar" value="0">
<param name="ShowTracker" value="-1">
<param name="TransparentAtStart" value="-1">
<param name="VideoBorderWidth" value="0">
<param name="VideoBorderColor" value="0">
<param name="VideoBorder3D" value="0">
<param name="Volume" value="0">
<param name="WindowlessVideo" value="0">
</OBJECT>
</p>
<p> <a href="javascript:;" onclick="document.all.music.filename='song.mp3';return false">Play Song</a>
</div>
</html>
_Aerospace_Eng_
10-24-2005, 04:28 PM
Why are you hotlinking the songs? Do you have permission to do so?
dazza61
10-31-2005, 06:21 PM
Hi,
Followed this cool thread, webpages up and running using all the info provided - a big thank you to that :-).....
Got embedded players working fine in IE and Opera (I only got a Geko for trialling pages, etc) with playlists, buttons, radios, etc but I just cant get m3u playlists to play in Opera in the users default desktop player. When I try to open an m3u file I just get the file displayed as text......In IE all u do is set a hyperlink, button etc pointing to the file and it plays fine....(took my breath away the first time I did it LOL)
I know this is an 'embedded' thread (pun intended) but being a musician/songwriter I want users to have the option of using embedded or desktop players on my site. Call me perfectionist or worse if u want ;-)
Note: Have set audio-mpegurl/m3u Mime type up in Opera to play in default media player...still no joy...
Ideas anyone?
Best regards.
Darren.
_Aerospace_Eng_
10-31-2005, 06:26 PM
It will require a server side language to pass off the right headers to the browser. If you are willing to do this let me know. It will require either php or asp to be supported on your server. I would recommend php.
dazza61
10-31-2005, 06:52 PM
Hi Aerospace,
Ummm - 10 seconds to reply - Is that a record?? Sheeeesh - Amazing LOL
Using Blueyonder (part of Telewest UK) for webspace - They use Apache servers and ASP and PHP are implemented...
To check their advanced section of their service - go to:
http://www.blueyonder.co.uk:80/blueyonder/getContent.jspx?page=h_services_pwp_advancedhelp
NOTE: I only started using Frontpage a week ago and this is my first ever forum (2 days ago) - I'm a musician dammit LOL - Now ask me a MIDI question and......
Many thanks once again and yes talking to you is like talking to God with a Ferrari AND a full tank of fuel... ;-)
Darren.
dazza61
10-31-2005, 06:57 PM
Sorry I meant to say 'Yes please' to your question of whether you want me to go ahead.
*Mutters under breath 100 times - 'Read the question - Darren - READ!!'
Best regards.
Darren.
_Aerospace_Eng_
11-01-2005, 06:05 AM
<?php
// We'll be outputting an m3u playlist
header('Content-type: audio/x-mpegurl');
// It will be called alternative.m3u
header('Content-Disposition: attachment; filename="alternative.m3u"');
?>
test.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<a href="m3u.php">Click here to download and save the m3u playlist</a>
<!--Your media player code goes here-->
</body>
</html>
TheOne
11-02-2005, 08:29 AM
i'm sure this question has already been answered somewhere in this thread already, but i have absolutely no clue how to html code, and this thing is massive. alright, my question is... What is the code needed to html code, let's say, a music video for a site like myspace where javascript isn't allowed?
Thanks for your time i hope it's not too much trouble
_Aerospace_Eng_
11-02-2005, 03:00 PM
Are embed or object tags allowed on myspace? Last time I checked something like blocked content would appear.
dazza61
11-02-2005, 03:07 PM
Hi Aerospace,
Thanks for your code :-) I think I'm doing something wrong (I'm really new to HTML so I'm sorry for my ignorance)...
Here's what I did...
...Copied PHP code to Notepad - changed "alternative.m3u" to "playlists/playlist1" (pointing to the playlist in my web)..
...Saved file as m3u.php - 'All types' - and left encoding as is (picked up from a previous post)...
...Uploaded php file to root directory of my web...
...Then copied your HTML code to a new page aka:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<a href="m3u.php">Click here to download and save the m3u playlist</a>
<p><a href="playlists/playlist1.m3u">Play in your Default Media Player</a></p>
</body>
</html>
The red text is what I added to potentially open the playlist in WMP (non-embedded) from Opera...
I still just get text displayed instead of opening desktop player.
Many thanks once again for your time and I'm sorry for my 'Duuuuhness' LOL
Darren.
_Aerospace_Eng_
11-02-2005, 03:10 PM
Remove the part in red its not needed anymore. m3u.php is the link you want, it will prompt a download of the file. What did you change in m3u.php? Post the code for that.
dazza61
11-02-2005, 03:19 PM
As requested...
<?php
// We'll be outputting an m3u playlist
header('Content-type: audio/x-mpegurl');
// It will be called alternative.m3u
header('Content-Disposition: attachment; filename="playlists/playlist1.m3u"');
?>
Best regards.
Darren.
TheOne
11-04-2005, 07:27 AM
i don't think so, when i first tried it, i was allowed to do something like that, but i tried to change the video and no matter what, every time i submit a code it will change the code by putting blocked content in it where it wasn't before, i am so lost, i even tried putting the original video and code but it no longer works... if you're familiar with myspace, it would show the video playing after i hit preview, but after submitting it wouldn't
_Aerospace_Eng_
11-04-2005, 07:44 AM
You aren't the only one with the same problem. I know videos used to work but they used embed tags. Looks like you are out of luck on this one. Myspace has gotten a bit more strict on what it allows.
TheOne
11-05-2005, 08:06 AM
thanks anyway, it seems that it just changed after i started, i guess i am just outta luck
_Aerospace_Eng_
11-05-2005, 08:18 AM
Try doing it again. I think they were making some updates and had blocked those tags temporarily.
ccr527
11-08-2005, 05:05 AM
hi forum.
i was surfin the web and came upon this forum.
what i am looking for is to put w-mplayer and real player on my site to give my visitor the options to liston to which ever thay choose.
just to let you know my site is asp.thank you for all your help with this.
dsherron
11-09-2005, 10:57 PM
I just wanted to thank you guys for all the help while working on a project of mine. I didn't need to post here during the coding because of all the useful information I found by just browsing. Now that I am done with my project I wanted to supply it here for anyone that is interested.
My goal was to create a cross-browser solution for pronunciating words in a non-technology-intrusive way for web users in college course materials. We decided to use MP3 files for this purpose, because of their relatively small size and cross-platform support. Using many of the scripts here (and some of my own) I was able to create a small javascript library which completes this task pretty gracefully and I was able to test it sucessfully on the following platforms:
IE6, IE7 beta, Firefox 1.0.7, Netscape 8, Opera 8.0.2, Safari 2.0.2 on Mac OSX, and Firefox 1.0.7 on Mac OSX. I am sure that it works on several other platforms, but I only had those platforms available for testing.
Anyway, the script is a simple external javascript line to place in the head of a document, and another line somewhere in the body. After that, you simply link to a javascript function, passing the name of the MP3 to play, and the script takes care of the rest. I also used a gmail-like 'Stop Audio' link in the upper right corner of the screen to allow users to abort playback when the objects were javascript-accessable.
The file is attached here, and available at: http://www.nbc.edu/bin/audioplayer.zip
I hope someone finds it useful. Thanks again for all the discussion here, it is an invaluable resource.
Also I am open to suggestions if anone has a better way of accomplishing some task (without changing the overall functionality). Enjoy!
Lovebugx69
11-10-2005, 09:02 PM
Ok so here is the code i have right now for my myspace. what i want to do is just link the song list titles to PLAY in the EXISTING windows media player on my page... HOW do i do that? i have been looking all over! please help!
<center><br><br><font color="yellow">
<embed allowScriptAccess="never"name='RAOCXplayer' src='http://home.graffiti.net/bootyfullgrly33:graffiti.net/PLAYLIST1.ASX' type='application/x-mplayer2' width='600' height='400' autoplay='true' ShowC..'1' ShowStatusBar='0' loop='true' EnableC..'0' DisplaySize='0' volume='100' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/'></embed><ol><b><li><font color="white">SUGAR, WE'RE GOING DOWN (Fall Out Boy)</li><li><font color="red">PROBABLY WOULDN'T BE THIS WAY (LeAnn Rimes)</li><li><font color="white">MR. BRIGHTSIDE (The Killers)</li><li><font color="red">ALL THESE THINGS THAT I'VE DONE (The Killers)</li><li><font color="white">YOU AND I BOTH (Jason Mraz)</li><li><font color="red">CANNONBALL (Damien Rice)</li><li><font color="white">BLOWERS DAUGHTER (Damien Rice)</li><li><font color="red">BREAKDOWN (Mariah Carey)</li><li><font color="white">WE BELONG TOGETHER (Mariah Carey)</li><li><font color="red">LISTEN TO YOUR HEART (D.H.T.)</li><li><font color="white">BEATING HEART BABY (Head Automatica)</li><li><font color="red">WHITE FLAG (Dido)</li><li><font color="white">PLEASE REMEMBER ME (Tim McGraw)</li><li><font color="red">PHOTOGRAPH (Nickleback)</li><li><font color="white">I'M NOT OKAY (I PROMISE) (My Chemical Romance)</li><li><font color="red">ALL THAT I'VE GOT (The Used)</li><li><font color="white">WITHOUT YOU (Dixie Chicks)</ol></b></font></div></a>
_Aerospace_Eng_
11-10-2005, 09:10 PM
You can't not without javascript. You could make a flash player but even the links to the songs would need to be done in flash.
Lovebugx69
11-10-2005, 09:36 PM
how difficult is it to make a flash player? i dont plan on changing it very often so if its not extremely complicated, id like to know how.
:):p
_Aerospace_Eng_
11-10-2005, 09:55 PM
You may find this premade one useful. http://www.*******************/?item=Flash+Mp3+Player
Lovebugx69
11-10-2005, 10:13 PM
so... but if im reading that correctly... it wont play videos? how can i make it a playlist like that but of videos???
_Aerospace_Eng_
11-10-2005, 11:05 PM
Look for XML Video Playlist on this site http://www.gotoandlearn.com/index.html
Lovebugx69
11-11-2005, 06:03 PM
ok so i went ahead and just made it the normal embed player but is there any way to add something to the playlist or the code to make it play random?
Lovebugx69
11-11-2005, 07:11 PM
or.... is there a premade video playlist code that i can use like the one you showed me above for the mp3 player? cuz i dont have macromedia.
istoy
11-13-2005, 10:24 PM
hi... i copied and paste your embed codes to my friendster profile but it didnt work....is there any codes that can make it works?? thnx...
_Aerospace_Eng_
11-13-2005, 10:44 PM
Which codes? Does friendster allow javascript? Post a link to your friendster page please.
_Aerospace_Eng_
11-13-2005, 11:17 PM
or.... is there a premade video playlist code that i can use like the one you showed me above for the mp3 player? cuz i dont have macromedia.
He has the files available for download under the Now Playing section.
Lovebugx69
11-14-2005, 07:38 PM
sorry i thought it was a downloaded version of the how to!
so one last question i swear! do they have to be the flv type files? can they be asx? and if not how do i go about changing the file etension. thanks!:thumbsup:
and i also didnt see anywhere that had the acutal code that i need to put into myspace???? if you could tell me where to find that code or what the code is that would be great! sorry im being such a pain!
caileanadriyel
11-14-2005, 08:15 PM
I have designed a page that will create a popup to display either the Windows Media or Quicktime versions of a particular clip. I am interested in knowing how to, after it is finished playing the clip, have it automatically execute the close window command rather than having the user do it. You can check out the page below. Look at the testimonials section and click on the Quicktime or Windows Media links.
http://www.digitaltalkingscreenmedia.com/thesitev2/advertising.html
Thanks for all of your help. This has been a most informative site.
Cailean
_Aerospace_Eng_
11-14-2005, 08:31 PM
You might be able to do it in IE by checking the playState but the user could hit stop before its done playing. Then you won't know when to close the window. Its hard enough already since download times vary among users.
Lovebugx69
11-14-2005, 09:44 PM
sorry i thought it was a downloaded version of the how to!
so one last question i swear! do they have to be the flv type files? can they be asx? and if not how do i go about changing the file etension. thanks!:thumbsup:
and i also didnt see anywhere that had the acutal code that i need to put into myspace???? if you could tell me where to find that code or what the code is that would be great! sorry im being such a pain!
anyone???
_Aerospace_Eng_
11-14-2005, 10:48 PM
Honestly it was barely an hour. You have to be patient. We aren't here 24/7. Yes it was designed for a flv files. An asx file is a windows media player file. You can get a free video converter. Search for Riva Flash Encoder. There is an xml file that needs to be hosted somewhere. One line in the flash will also need to be changed to reference the url of the xml file on your webhost.
Fit 4 Real
11-14-2005, 11:33 PM
Hi Aerospace...I am very new to this thing...I have done my entire websit through some tutorials and help menus....I am trying to add som audio as I am a writer and speaker but I just can't get it...I have copied and pasted some code that you have put up but the peoblem I am running into is how to get the Audio in the right spots....I mean from the beginnin, like where should It be stored...haha
I am using Frontpage....And they are mp3 files....I just want a simple link that will play the files on the embeded player
I emailed you earlier but figured I should poset here...
Please excuse my ignorance..
Thanks a lot.
_Aerospace_Eng_
11-14-2005, 11:38 PM
Well you will need to find a web host that supports mp3's. Once you have found that, you can use this code to play the mp3s
<object width="370" height="45"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="url" value="http://urltomp3here.mp3">
<param name="uiMode" value="full">
<param name="autoStart" value="true">
<param name="loop" value="true">
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="true" uimode="full" width="370" height="45"
src="http://urltomp3here.mp3" autostart="true" loop="true">
</object>
Fit 4 Real
11-15-2005, 12:02 AM
Thank You....My host does support it...I am having a problem because I am so new I don't know where I should stor the fmp3's that I want the player to play...
I mean...do I leave them where they are on the hard drive or do I move them to a web folder like Media Files in front page?
I am dumb eh?
haha
Thanks
_Aerospace_Eng_
11-15-2005, 12:46 AM
Is this site going to be a local site or an online site? If its online then the songs would need to be stored online because if they were stored on your hard drive no one but you would be able to hear them.
Fit 4 Real
11-15-2005, 02:51 PM
It is an online site.....I figured you have to store them online...I just don't know how to do that...
Fit 4 Real
11-15-2005, 03:12 PM
I got it....Thanks for all the help...you are awesome....what code do I change if I don't want it to start automatically?
You are a great man
_Aerospace_Eng_
11-15-2005, 06:02 PM
Find all the places where it says autostart="true" and change it to autostart="false"
ElBeasto
11-17-2005, 04:48 PM
im trying to play links in the embedded media player but with the different
classid:6BF52A52-394A-11D3-B153-00C04F79FAA6
(media player 10)
how do i play the different tracks using regular links?
thanks
Steve
no_sprinkles
11-17-2005, 10:50 PM
Hello
I've been following these discussions with interest. I'm a programming novice and am trying to embed a wmv file on a webpage. I can get the player to work fine but I'm a little irked at the black screen that appears when the page loads (the user needs to be able to press play to start the video).
I would like to embed a static image in the embedded player so that the user has something to look at before they choose to press play. It would be somewhat like QT's poster frame in function. Is there any javascript or parameter that I can add to my existing code to get it to display this static picture? I'm not all that familiar with javascript but am a quick learner.
Channel 9 at MSDN is an example of what I hope to accomplish:
http://channel9.msdn.com/Showpost.aspx?postid=126995
Here is my existing code:
<object
id="movie" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase=
"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
width=320 height=240
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject" name="movie">
<param name="FileName" value="movie.asx">
<param name="AutoStart" value="false">
<param name="Loop" value="false">
<param name="OnClick" value="1">
<param name="ShowControls" value="true">
<param name-"ShowDisplay" value="true">
<param name="autoSize" value="false">
<param name="displaySize" value="0">
<param name="TransparentStart" value="true">
<embed type="application/x-mplayer2" width="320" height="240"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
filename="movie.asx"
autostart="false"
showcontrols="false"
autosize="false" displaysize="0"
src="movie.asx" name="movie"
> </embed>
</object>
Any help or pointers would be appreciated. :)
_Aerospace_Eng_
11-18-2005, 03:50 AM
im trying to play links in the embedded media player but with the different
classid:6BF52A52-394A-11D3-B153-00C04F79FAA6
(media player 10)
how do i play the different tracks using regular links?
thanks
Steve
You should actually read through this thread next time. It was around pages 14-16 where I posted an example on how to do this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
body {
text-align:center;
}
</style>
<script type="text/javascript">
function PlayIt(what){
player.document.getElementById('music').innerHTML='<object width="300" height="300" '
+'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="url" value="'+what+'">'
+'<param name="uiMode" value="full">'
+'<param name="autoStart" value="true">'
+'<param name="loop" value="true">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'showcontrols="true" uimode="full" width="300" height="45" '
+'src="'+what+'" autostart="true" loop="true">'
+'</object>';
}
</script>
</head>
<body>
<select name="player" onchange="PlayIt(this.value)">
<option value="none">::Choose a Song::</option>
<option value="http://home.austin.rr.com/fairpoolerz/switchfoot.mp3">Song 1</option>
<option value="http://urltosong2.mp3">Song 2</option>
<option value="http://urltosong3.mp3">Song 3</option>
<option value="http://urltosong4.mp3">Song 4</option>
<option value="http://urltosong5.mp3">Song 5</option>
</select><br>
<div id="music">
<object width="300" height="44"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="url" value="">
<param name="uiMode" value="full">
<param name="autoStart" value="true">
<param name="loop" value="true">
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="true" uimode="full" width="300" height="45"
src="" autostart="true" loop="true">
</object>
</div>
</html>
_Aerospace_Eng_
11-18-2005, 03:52 AM
Hello
I've been following these discussions with interest. I'm a programming novice and am trying to embed a wmv file on a webpage. I can get the player to work fine but I'm a little irked at the black screen that appears when the page loads (the user needs to be able to press play to start the video).
I would like to embed a static image in the embedded player so that the user has something to look at before they choose to press play. It would be somewhat like QT's poster frame in function. Is there any javascript or parameter that I can add to my existing code to get it to display this static picture? I'm not all that familiar with javascript but am a quick learner.
Channel 9 at MSDN is an example of what I hope to accomplish:
http://channel9.msdn.com/Showpost.aspx?postid=126995
Here is my existing code:
<object
id="movie" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase=
"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
width=320 height=240
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject" name="movie">
<param name="FileName" value="movie.asx">
<param name="AutoStart" value="false">
<param name="Loop" value="false">
<param name="OnClick" value="1">
<param name="ShowControls" value="true">
<param name-"ShowDisplay" value="true">
<param name="autoSize" value="false">
<param name="displaySize" value="0">
<param name="TransparentStart" value="true">
<embed type="application/x-mplayer2" width="320" height="240"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
filename="movie.asx"
autostart="false"
showcontrols="false"
autosize="false" displaysize="0"
src="movie.asx" name="movie"
> </embed>
</object>
Any help or pointers would be appreciated. :)
That site uses mms there is a thread in here that discusses mms briefly like page #2 or something. Note what you want to do will only work in IE. I haven't done anything like this myself because I use solutions that are somewhat cross browser.
no_sprinkles
11-18-2005, 04:55 AM
That site uses mms there is a thread in here that discusses mms briefly like page #2 or something. Note what you want to do will only work in IE. I haven't done anything like this myself because I use solutions that are somewhat cross browser.
I'd like a more cross-browser solution. I'm going to opt for a workaround --have people click on the image and launch the media player in a separate player.
I guess what I plan to do can be done in say QT or even Flash but I plan to use WMV for a while until I pony up for a Flash MX communication server.
Thanks for all your help btw :)
petery
11-18-2005, 03:22 PM
Hello all, any way to insert a logo in a live streaming windows media player ?
I explain my self I live stream music from my website I would like to have a logo linking me back to my website...Is this Possible ?
no_sprinkles
11-18-2005, 10:18 PM
Hello all, any way to insert a logo in a live streaming windows media player ?
I explain my self I live stream music from my website I would like to have a logo linking me back to my website...Is this Possible ?
Petery, you may want to check this out: http://www.microsoft.com/windows/windowsmedia/howto/articles/adsolutions.aspx
Hope this helps
ElBeasto
11-19-2005, 03:41 AM
I've read through the thread and I can't work out how to play the different tracks with a regular <a href.... link using the different classid, only the drop down boxes and radio buttons.
Sorry but I'm very new to this stuff.:o
Steve
_Aerospace_Eng_
11-19-2005, 07:14 AM
I already posted the code for what you want on the previous page.
ElBeasto
11-19-2005, 01:46 PM
I found the code on page 15 as you said but when I click the link to play the song the black video screen disappears. I there a way to make it stay there?
Thanks and sorry if this has been answered before.
Steve
_Aerospace_Eng_
11-19-2005, 06:22 PM
Just use THIS code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
body {
text-align:center;
}
</style>
<script type="text/javascript">
function PlayIt(what){
player.document.getElementById('music').innerHTML='<object width="300" height="300" '
+'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="url" value="'+what+'">'
+'<param name="uiMode" value="full">'
+'<param name="autoStart" value="true">'
+'<param name="loop" value="true">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'showcontrols="true" uimode="full" width="300" height="45" '
+'src="'+what+'" autostart="true" loop="true">'
+'</object>';
}
</script>
</head>
<body>
<select name="player" onchange="PlayIt(this.value)">
<option value="none">::Choose a Song::</option>
<option value="http://urltosong1.mp3">Song 1</option>
<option value="http://urltosong2.mp3">Song 2</option>
<option value="http://urltosong3.mp3">Song 3</option>
<option value="http://urltosong4.mp3">Song 4</option>
<option value="http://urltosong5.mp3">Song 5</option>
</select><br>
<div id="music">
<object width="300" height="300"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="url" value="">
<param name="uiMode" value="full">
<param name="autoStart" value="true">
<param name="loop" value="true">
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="true" uimode="full" width="300" height="45"
src="" autostart="true" loop="true">
</object>
</div>
</html>
Internet explorer will show the visualization, Firefox will not which is why I use a different height for the player.
ElBeasto
11-20-2005, 02:02 AM
Hey, thanks so much for your time and patience, your help is very much appreciated!:thumbsup:
...and yes firefox and netscape don't display the video screen but the songs still play never the less.
cheers
Steve
PinkyWhite01
11-21-2005, 12:06 AM
How do I can the background color to fit my web page?:p
<div align=center>
<SELECT id=cancion onchange=document.all.music.filename=document.all.cancion.value; size=1 name=Music>
<OPTION selected>::::::::::::: Choose Your Song Here :::::::::::::</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
</SELECT><BR>
<OBJECT id=music height=44 width=230 classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95>
<PARAM NAME="AutoStart" VALUE="-1">
<PARAM NAME="Balance" VALUE="0">
<PARAM NAME="DisplaySize" VALUE="0">
<PARAM NAME="Filename" VALUE="">
<PARAM NAME="Mute" VALUE="0">
<PARAM NAME="SelectionStart" VALUE="-1">
<PARAM NAME="SelectionEnd" VALUE="-1">
<PARAM NAME="ShowControls" VALUE="-1">
<PARAM NAME="ShowAudioControls" VALUE="-1">
<PARAM NAME="ShowDisplay" VALUE="0">
<PARAM NAME="ShowPositionControls" VALUE="-1">
<PARAM NAME="Volume" VALUE="0">
<PARAM NAME="AudioStream" VALUE="-1">
<PARAM NAME="AutoSize" VALUE="0">
<PARAM NAME="AnimationAtStart" VALUE="-1">
<PARAM NAME="AllowScan" VALUE="-1">
<PARAM NAME="AllowChangeDisplaySize" VALUE="-1">
<PARAM NAME="AutoRewind" VALUE="1">
<PARAM NAME="BaseURL" VALUE="">
<PARAM NAME="BufferingTime" VALUE="5">
<PARAM NAME="CaptioningID" VALUE="">
<PARAM NAME="ClickToPlay" VALUE="-1">
<PARAM NAME="CursorType" VALUE="0">
<PARAM NAME="CurrentPosition" VALUE="-1">
<PARAM NAME="CurrentMarker" VALUE="0">
<PARAM NAME="DefaultFrame" VALUE="">
<PARAM NAME="DisplayBackColor" VALUE="0">
<PARAM NAME="DisplayForeColor" VALUE="16777215">
<PARAM NAME="DisplayMode" VALUE="0">
<PARAM NAME="Enabled" VALUE="-1">
<PARAM NAME="EnableContextMenu" VALUE="-1">
<PARAM NAME="EnablePositionControls" VALUE="-1">
<PARAM NAME="EnableFullScreenControls" VALUE="0">
<PARAM NAME="EnableTracker" VALUE="-1">
<PARAM NAME="InvokeURLs" VALUE="-1">
<PARAM NAME="Language" VALUE="-1">
<PARAM NAME="PlayCount" VALUE="1">
<PARAM NAME="PreviewMode" VALUE="0">
<PARAM NAME="Rate" VALUE="1">
<PARAM NAME="SAMILang" VALUE="">
<PARAM NAME="SAMIStyle" VALUE="">
<PARAM NAME="SAMIFileName" VALUE="">
<PARAM NAME="SendOpenStateChangeEvents" VALUE="-1">
<PARAM NAME="SendWarningEvents" VALUE="-1">
<PARAM NAME="SendErrorEvents" VALUE="-1">
<PARAM NAME="SendKeyboardEvents" VALUE="0">
<PARAM NAME="SendMouseClickEvents" VALUE="0">
<PARAM NAME="SendMouseMoveEvents" VALUE="0">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="-1">
<PARAM NAME="ShowCaptioning" VALUE="0">
<PARAM NAME="ShowGotoBar" VALUE=0">
<PARAM NAME="ShowStatusBar" VALUE="0">
<PARAM NAME="ShowTracker" VALUE="-1">
<PARAM NAME="TransparentAtStart" VALUE="-1">
<PARAM NAME="VideoBorderWidth" VALUE="0">
<PARAM NAME="VideoBorderColor" VALUE="0">
<PARAM NAME="VideoBorder3D" VALUE="0">
<PARAM NAME="WindowlessVideo" VALUE="0">
</OBJECT>
</div>
windows media player may be IE only though
_Aerospace_Eng_
11-25-2005, 08:41 AM
You don't. The embedded WMP is not as customizable as you think. If you are looking for something more customizable use flash. If you don't know flash then either learn it or stick with whats available.
cjcd5000
11-28-2005, 12:38 AM
Hello:
I am new here, and certainly not well versed in this arena. That being said, I have an idea for a new product. What I need to do, is embed 90 minute (or more) tutorial onto an MP3 player. I want the information to be fixed. Has anyone heard of a way to do this. I will sell the MP3 player with my tutorial.
Thank you in advance for your response.
I didn't know where to post...:)
Cj:)
_Aerospace_Eng_
11-28-2005, 12:53 AM
I'm not sure what you mean by fixed.
cjcd5000
11-28-2005, 01:09 AM
Hi
What I mean by fixed, is that when the client receives the MP3 player, my audio information will already be programmed on the player. I do not want the information embeded on the MP3 player to have the ability to get 'accidently' over -written or deleted.
So that the only thing they can listen to on this particular MP3 player ( like a low end IPOD) is my instruction guide.
Is there a way to do this?
Thanks
Cj
_Aerospace_Eng_
11-28-2005, 01:17 AM
With flash yes you can do this. The likely hood of the file being overwritten is low unless you give the user the fla file. I made this (http://prdesignz.inraged-inc.com/songcontrol.html) last night, maybe its something you might want. I would be willing to sell it to you.
cjcd5000
11-28-2005, 01:24 AM
Can you please explain exactly what it is that you have made.
_Aerospace_Eng_
11-28-2005, 01:39 AM
The explanation is on that same page. Basically its a flash mp3 player. It reads the song location, song info, and whether or not to loop the song. All of this info is stored in a text file. This can easily be changed to be put in the actual swf file itself. Then you could do away with the text file. It has stop, play, volume down, and volume up buttons. It shows the amount downloaded as the file plays. It also has a progress bar that shows how much of the sound has been played.
cjcd5000
11-28-2005, 01:53 AM
I am not sure what 'page' you are talking about.
I am not copying songs but more like a 'seminar' I suppose it's the same concept. I will probably have a total of 2 hours of verbaige and music.
My concern is that once I ship the product they will not be able to destroy or erase the material. (It will be their loss if they do, but I don't want it to be easily erased)
They will also need to charge it.
Thanks again,
Cj
_Aerospace_Eng_
11-28-2005, 02:18 AM
There is a link in the posts I made. Sighs. Here it is again, if you can't read this then I dunno what to tell you. http://prdesignz.inraged-inc.com/songcontrol.html
surfing4ever24
11-28-2005, 10:00 PM
This may seem off topic, but is there a way to make it play a video without the pesky buttons on the bottom. Like you load the site, it plays the video and then stops. Like it will have just the video none of the buttons, I would fit it into the background with a border so it looks apart of the site. This would be really helpful.
Here is the site: cfd.clanhn.com
We're gamers. :cool:
Peace,
John AKA Tweak
_Aerospace_Eng_
11-28-2005, 11:14 PM
<object width="300" height="300"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="url" value="http://urltoyourvideohere.wmv">
<param name="uiMode" value="none">
<param name="autoStart" value="true">
<param name="loop" value="true">
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="0" uimode="none" width="300" height="300"
src="http://urltoyourvideohere.wmv" autostart="true" loop="true"></embed>
</object>
TerrorPloppy
11-29-2005, 02:50 PM
hi _Aerospace_Eng_
i was wondering if you can help me too
i want a code that i can play many songs on my internet site
my site is now www.robertkuiper.tk and i have now just 1 song that is playing when you visit my site.
i want that if you visit my site the first time ,play nr 1
and if you visit another time , play song nr 2
etc.
can u help me with that please :)
greets
DvSRadar
12-06-2005, 09:49 AM
hey I want to know if anyone could tweek this code to make it work so people could pick what video play in sted of mp3? Its a great code hats off to who ever wrote it
<div align=center>
<SELECT id=cancion onchange=document.all.music.filename=document.all.cancion.value; size=1 name=Music>
<OPTION selected>::::::::::::: Choose Your Song Here :::::::::::::</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
</SELECT><BR>
<OBJECT id=music height=44 width=230 classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95>
<PARAM NAME="AutoStart" VALUE="-1">
<PARAM NAME="Balance" VALUE="0">
<PARAM NAME="DisplaySize" VALUE="0">
<PARAM NAME="Filename" VALUE="">
<PARAM NAME="Mute" VALUE="0">
<PARAM NAME="SelectionStart" VALUE="-1">
<PARAM NAME="SelectionEnd" VALUE="-1">
<PARAM NAME="ShowControls" VALUE="-1">
<PARAM NAME="ShowAudioControls" VALUE="-1">
<PARAM NAME="ShowDisplay" VALUE="0">
<PARAM NAME="ShowPositionControls" VALUE="-1">
<PARAM NAME="Volume" VALUE="0">
<PARAM NAME="AudioStream" VALUE="-1">
<PARAM NAME="AutoSize" VALUE="0">
<PARAM NAME="AnimationAtStart" VALUE="-1">
<PARAM NAME="AllowScan" VALUE="-1">
<PARAM NAME="AllowChangeDisplaySize" VALUE="-1">
<PARAM NAME="AutoRewind" VALUE="1">
<PARAM NAME="BaseURL" VALUE="">
<PARAM NAME="BufferingTime" VALUE="5">
<PARAM NAME="CaptioningID" VALUE="">
<PARAM NAME="ClickToPlay" VALUE="-1">
<PARAM NAME="CursorType" VALUE="0">
<PARAM NAME="CurrentPosition" VALUE="-1">
<PARAM NAME="CurrentMarker" VALUE="0">
<PARAM NAME="DefaultFrame" VALUE="">
<PARAM NAME="DisplayBackColor" VALUE="0">
<PARAM NAME="DisplayForeColor" VALUE="16777215">
<PARAM NAME="DisplayMode" VALUE="0">
<PARAM NAME="Enabled" VALUE="-1">
<PARAM NAME="EnableContextMenu" VALUE="-1">
<PARAM NAME="EnablePositionControls" VALUE="-1">
<PARAM NAME="EnableFullScreenControls" VALUE="0">
<PARAM NAME="EnableTracker" VALUE="-1">
<PARAM NAME="InvokeURLs" VALUE="-1">
<PARAM NAME="Language" VALUE="-1">
<PARAM NAME="PlayCount" VALUE="1">
<PARAM NAME="PreviewMode" VALUE="0">
<PARAM NAME="Rate" VALUE="1">
<PARAM NAME="SAMILang" VALUE="">
<PARAM NAME="SAMIStyle" VALUE="">
<PARAM NAME="SAMIFileName" VALUE="">
<PARAM NAME="SendOpenStateChangeEvents" VALUE="-1">
<PARAM NAME="SendWarningEvents" VALUE="-1">
<PARAM NAME="SendErrorEvents" VALUE="-1">
<PARAM NAME="SendKeyboardEvents" VALUE="0">
<PARAM NAME="SendMouseClickEvents" VALUE="0">
<PARAM NAME="SendMouseMoveEvents" VALUE="0">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="-1">
<PARAM NAME="ShowCaptioning" VALUE="0">
<PARAM NAME="ShowGotoBar" VALUE=0">
<PARAM NAME="ShowStatusBar" VALUE="0">
<PARAM NAME="ShowTracker" VALUE="-1">
<PARAM NAME="TransparentAtStart" VALUE="-1">
<PARAM NAME="VideoBorderWidth" VALUE="0">
<PARAM NAME="VideoBorderColor" VALUE="0">
<PARAM NAME="VideoBorder3D" VALUE="0">
<PARAM NAME="WindowlessVideo" VALUE="0">
</OBJECT>
</div>
_Aerospace_Eng_
12-06-2005, 07:52 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
body {
text-align:center;
}
</style>
<script type="text/javascript">
function PlayIt(what){
player.document.getElementById('music').innerHTML='<object width="300" height="270" '
+'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="url" value="'+what+'">'
+'<param name="uiMode" value="full">'
+'<param name="autoStart" value="true">'
+'<param name="loop" value="true">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'showcontrols="true" uimode="full" width="300" height="270" '
+'src="'+what+'" autostart="true" loop="true">'
+'</object>';
}
</script>
</head>
<body>
<select name="player" onchange="PlayIt(this.value)">
<option value="none">::Choose a Movie::</option>
<option value="http://urltovideo1.wmv">Video 1</option>
<option value="http://urltovideo2.wmv">Video 2</option>
<option value="http://urltovideo3.wmv">Video 3</option>
<option value="http://urltovideo4.wmv">Video 4</option>
<option value="http://urltovideo5.wmv">Video 5</option>
</select><br>
<div id="music">
<object width="300" height="270"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="url" value="">
<param name="uiMode" value="full">
<param name="autoStart" value="true">
<param name="loop" value="true">
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="true" uimode="full" width="300" height="270"
src="" autostart="true" loop="true">
</object>
</div>
</html>
DvSRadar
12-06-2005, 09:45 PM
Hey man thats great thanks for the help :thumbsup:
DvSRadar
12-07-2005, 04:37 AM
Ok So I copy and pasted that code over to my myspace page and put the url's to the video's I wanted to use. The wmp and drop box come up but the video's dont play when I click on it in the drop box. I dont know if it cause its in myspace or want but the it doesnt look like the video is even trying to run? Any Ideas anyone
_Aerospace_Eng_
12-07-2005, 04:59 AM
Yeah javascript doesn't work on myspace sorry. You'll need to find a flash video player. I don't know of one that plays normal videos.
DvSRadar
12-07-2005, 07:38 AM
I dont know if any can even do this but is there away to write java in to HTML? Im think I heard of that but Im not very good at this coding stuff yet, Im ok at CSS but just learning HTML and Java.... any thoughts :)
_Aerospace_Eng_
12-07-2005, 07:59 AM
I dont know if any can even do this but is there away to write java in to HTML? Im think I heard of that but Im not very good at this coding stuff yet, Im ok at CSS but just learning HTML and Java.... any thoughts :)
Okay now you aren't making sense. Sounds like you are trying to make javascript act as html. No that isn't possible. Note Javascript is NOT Java.
photopilote
12-07-2005, 06:48 PM
how can I manage to get just a 'seek-slider' (to seek and scroll through the video), that is positioned elsewhere then, independently from the embedded player (which is uimode none)
thanx
_Aerospace_Eng_
12-07-2005, 06:50 PM
You don't. As in other posts you are trying to do too much with the WMP interface. Its not that customizable sorry.
samuisamu
12-08-2005, 04:50 AM
if you've already answered this... (I dont have time to read through 20 pages LOL)
I was wondering if its possible to have two dropdown menu lists and one mediaplayer.
For instance I could have two catergories:
cd1: [drop down menu] cd2: [drop down menu]
They could choose tracks from either menu. I tried duplicating the <select> tag for each category but the mediaplayer doesnt work right. Example:
I choose a track from cd1 menu and the mediaplayer plays it.
But then I go to cd2 menu and choose to listen to a track from it.
The mediaplayer loads the track from the cd1 list again. Do you see my problem?
The mediaplayer plays whatever song I want from cd1 menu, but then when I choose a song from cd2 menu the player just loads the last song I chose on the cd1 menu.
Does this have something to do with the <select> ids being the same name? or the functions being called being the same? In both menus I have the ids as cancion as you had them and the called function as song().
Tell me what I need to do.
_Aerospace_Eng_
12-08-2005, 05:13 AM
if you've already answered this... (I dont have time to read through 20 pages LOL)
I'm sorry if this sounds mean but if you don't have the time or don't feel like reading then I guess I don't have the time to help you. I spend time helping others, you should spend time helping yourself as well. And if you expect me to do the code for you, I don't think you deserve it if you aren't even going to try or much less search.
photopilote
12-08-2005, 09:55 AM
You don't. As in other posts you are trying to do too much with the WMP interface. Its not that customizable sorry.
right, I got this one :)
And I assume that its not possible to have slider-only-controls @ their normal place neither; something inbetween uimode none and uimode mini?
ActiveX control/EnablePositionControls/EnableTracker/VBScript?
(http://www.lib.tsinghua.edu.cn/chinese/INTERNET/ActiveX/pax10.htm#I168)
thanx again
samuisamu
12-08-2005, 05:17 PM
I'll try searching from were I left off (pg.5). But if I dont find the answer then I hope you dont mind me asking again........ :o
samuisamu
12-08-2005, 09:13 PM
And I couldn't find the answer! I honestly read every single page (I will not lie sometimes I didnt understand some of the peoples questions. However, on page 9 Bubbisthedog mentioned something about drop down menus (plural). I couldnt understand whether or not he was referring to the difference between href and drop down menus or something else. Also you mentioned about how a lot of people are "mixing" Id's. I think that could be the problem with what I'm trying to do. So now I'm asking, please, could you help me Aero? My question is on page 22. If you want me to repost it I will!
Thanks a lot :). I certainly dont takr your help for granted.
_Aerospace_Eng_
12-08-2005, 09:19 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
body {
text-align:center;
}
</style>
<script type="text/javascript">
function PlayIt(what){
player.document.getElementById('music').innerHTML='<object width="300" height="45" '
+'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="url" value="'+what+'">'
+'<param name="uiMode" value="full">'
+'<param name="autoStart" value="true">'
+'<param name="loop" value="true">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'showcontrols="true" uimode="full" width="300" height="45" '
+'src="'+what+'" autostart="true" loop="true">'
+'</object>';
}
</script>
</head>
<body>
<select name="player" onchange="PlayIt(this.value)">
<option value="none">::Choose a Song from CD1::</option>
<option value="http://urltosong1.wmv">Song 1</option>
<option value="http://urltosong2.wmv">song 2</option>
<option value="http://urltosong3.wmv">song 3</option>
<option value="http://urltosong4.wmv">song 4</option>
<option value="http://urltosong5.wmv">song 5</option>
</select><br>
<select name="player2" onchange="PlayIt(this.value)">
<option value="none">::Choose a Song from CD2::</option>
<option value="http://urltosong1.wmv">Song 1</option>
<option value="http://urltosong2.wmv">song 2</option>
<option value="http://urltosong3.wmv">song 3</option>
<option value="http://urltosong4.wmv">song 4</option>
<option value="http://urltosong5.wmv">song 5</option>
</select><br>
<div id="music">
<object width="300" height="45"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="url" value="">
<param name="uiMode" value="full">
<param name="autoStart" value="true">
<param name="loop" value="true">
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="true" uimode="full" width="300" height="45"
src="" autostart="true" loop="true">
</object>
</div>
</html>
samuisamu
12-08-2005, 09:26 PM
You Really Are Quick ;)
_Aerospace_Eng_
12-08-2005, 09:30 PM
No just the answer was already pretty much posted coincidently on page 22.
samuisamu
12-08-2005, 10:16 PM
I didnt know what I was looking at ^_^'
Onetoomanysodas
12-11-2005, 10:27 PM
Ok let's say I want to prevent the user from right clicking the object and viewing properties to see the url of the song playing. I've tried disabling right click on the page with javascript but unfortunately it does not disable the right click for the window's media player object in FireFox browser. Is there anything I can do to not allow the user to uncover the url of the song playing?
EDIT: I also assume that there's a parameter to control this however I have had no luck in finding one.
Here's an example of the script i'm using:
<script language=JavaScript>
<!--
var message="This content is copyright!";
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
_Aerospace_Eng_
12-12-2005, 01:40 AM
Which object code are you using? Try using this parameter.
<param name="enablecontextmenu" value="false">
While if the use wants the song they will get it. It will be in their cach and in the source code. That no right click stuff is easy to circumvent. If you don't want it to be taken don't publish it.
Onetoomanysodas
12-12-2005, 04:50 AM
I'm using the code you gave me pages back. I've got hiding the source covered with frames of php and javascript but the parameter does not work with this object code either.
<object width="300" height="44"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" oncontextmenu="return true">
<param name="url" value="">
<param name="uiMode" value="full">
<param name="autoStart" value="true">
<param name="loop" value="true">
<param name="invokeURLs" value="-1">
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="true" uimode="full" width="300" height="44"
src="what" autostart="true" loop="true"></embed>
</object>
_Aerospace_Eng_
12-12-2005, 05:07 AM
Yes it does.
<object width="300" height="44"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" oncontextmenu="return true">
<param name="enablecontextmenu" value="false">
<param name="url" value="">
<param name="uiMode" value="full">
<param name="autoStart" value="true">
<param name="loop" value="true">
<param name="invokeURLs" value="-1">
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="true" uimode="full" enablecontextmenu="0" width="300" height="44"
src="" autostart="True" loop="True"></embed>
</object>
Unless you were using Firefox, I forgot to tell you to add it in there as well.
aaroncavanaugh2
12-14-2005, 07:59 AM
Hi,
I wanted to add something for mp4 files. Just simply that windows media will support mp4 files if you download 3ivx.
I am posting this to my musiv video page where I have an embedded windows media player.
If you want to view these mp4 files online (there will be a short load time) windows users need 3ivx installed http://www.3ivx.com/ mac users must have the mac 3ivx codec installed. Until Windows media player supports MP4. Once you have this codec installed you will also be able to view mp4 files in windows media player and online with the embedded player. To associate (ALL) mp4 files with window media player right click on any file properties and click change and select the windows media player.
Here's my code
<td width=590 valign=top style='width:6.15in;border:solid windowtext .5pt;
padding:0in 5.4pt 0in 5.4pt'>
<p class=MsoNormal align=center style='text-align:center'><OBJECT id=music height=284 width=360 classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95>
<PARAM NAME="AutoStart" VALUE="-1">
<PARAM NAME="Balance" VALUE="0">
<PARAM NAME="DisplaySize" VALUE="1">
<PARAM NAME="Filename" VALUE="">
<PARAM NAME="Mute" VALUE="0">
<PARAM NAME="SelectionStart" VALUE="-1">
<PARAM NAME="SelectionEnd" VALUE="-1">
<PARAM NAME="ShowControls" VALUE="-1">
<PARAM NAME="ShowAudioControls" VALUE="-1">
<PARAM NAME="ShowDisplay" VALUE="0">
<PARAM NAME="ShowPositionControls" VALUE="-1">
<PARAM NAME="Volume" VALUE="0">
<PARAM NAME="AudioStream" VALUE="-1">
<PARAM NAME="AutoSize" VALUE="0">
<PARAM NAME="AnimationAtStart" VALUE="-1">
<PARAM NAME="AllowScan" VALUE="-1">
<PARAM NAME="AllowChangeDisplaySize" VALUE="-1">
<PARAM NAME="AutoRewind" VALUE="1">
<PARAM NAME="BaseURL" VALUE="">
<PARAM NAME="BufferingTime" VALUE="5">
<PARAM NAME="CaptioningID" VALUE="">
<PARAM NAME="ClickToPlay" VALUE="-1">
<PARAM NAME="CursorType" VALUE="0">
<PARAM NAME="CurrentPosition" VALUE="-1">
<PARAM NAME="CurrentMarker" VALUE="0">
<PARAM NAME="DefaultFrame" VALUE="">
<PARAM NAME="DisplayBackColor" VALUE="0">
<PARAM NAME="DisplayForeColor" VALUE="16777215">
<PARAM NAME="DisplayMode" VALUE="0">
<PARAM NAME="Enabled" VALUE="-1">
<PARAM NAME="EnableContextMenu" VALUE="-1">
<PARAM NAME="EnablePositionControls" VALUE="-1">
<PARAM NAME="EnableFullScreenControls" VALUE="0">
<PARAM NAME="EnableTracker" VALUE="-1">
<PARAM NAME="InvokeURLs" VALUE="-1">
<PARAM NAME="Language" VALUE="-1">
<PARAM NAME="PlayCount" VALUE="1">
<PARAM NAME="PreviewMode" VALUE="0">
<PARAM NAME="Rate" VALUE="1">
<PARAM NAME="SAMILang" VALUE="">
<PARAM NAME="SAMIStyle" VALUE="">
<PARAM NAME="SAMIFileName" VALUE="">
<PARAM NAME="SendOpenStateChangeEvents" VALUE="-1">
<PARAM NAME="SendWarningEvents" VALUE="-1">
<PARAM NAME="SendErrorEvents" VALUE="-1">
<PARAM NAME="SendKeyboardEvents" VALUE="0">
<PARAM NAME="SendMouseClickEvents" VALUE="0">
<PARAM NAME="SendMouseMoveEvents" VALUE="0">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="-1">
<PARAM NAME="ShowCaptioning" VALUE="0">
<PARAM NAME="ShowGotoBar" VALUE=0">
<PARAM NAME="ShowStatusBar" VALUE="0">
<PARAM NAME="ShowTracker" VALUE="-1">
<PARAM NAME="TransparentAtStart" VALUE="-1">
<PARAM NAME="VideoBorderWidth" VALUE="0">
<PARAM NAME="VideoBorderColor" VALUE="0">
<PARAM NAME="VideoBorder3D" VALUE="0">
<PARAM NAME="WindowlessVideo" VALUE="0">
</OBJECT><![if !supportEmptyParas]> <![endif]><o:p></o:p></p>
</td>
</tr>
<tr>
<td width=590 valign=top style='width:6.15in;border:solid windowtext .5pt;
border-top:none;mso-border-top-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt'>
<p class=MsoNormal align=center style='text-align:center'><SELECT NAME="Music"
id=cancion onchange="document.all.music.filename=document.all.cancion.value;">
<OPTION SELECTED>::::::::::::: Choose Your Video Here :::::::::::::
<OPTION VALUE="musicvideos.htm">::::::::::::: 120x90 :::::::::::::
<OPTION VALUE="./currentvideos/Yellow Teapot -Dance in the spirit (event trailer).mp4"><span class="rss:item">Yellow Teapot -Dance in the spirit (event trailer)</span>
<OPTION VALUE="./currentvideos/Igniter Media Group-That's My King!.wmv"><span class="rss:item">Igniter Media Group-That's My King!</span>
<OPTION VALUE="./currentvideos/Kris Barberg-psalm51.wmv"><span class="rss:item">Kris Barberg-psalm51</span>
<OPTION VALUE="./currentvideos/Highway Video-Silent_Night.wmv"><span class="rss:item">Highway Video-Silent_Night</span>
<OPTION VALUE="./currentvideos/Astral Elements-Footprints Retold.wmv"><span class="rss:item">Astral Elements-Footprints Retold</span>
<OPTION VALUE="./currentvideos/401k-brainwash.wmv"><span class="rss:item">401k-brainwash</span>
</SELECT></p>
</td>
</tr>
</table>
Thanks. God Bless.
Aaron.
_Aerospace_Eng_
12-14-2005, 08:47 AM
Your code is a bit old. I suggest you update it. Quicktime natively plays mp4 files so you might need to go with the quicktime code. Go here to have it generated for you. http://cit.ucsf.edu/embedmedia/step1.php
w1zarduvaahs
12-14-2005, 07:23 PM
Would anyone know how I can change the color of an embedded player with a drop down menu to black? My entire page is black except for this silver media player smack dab in the middle of it lol.
_Aerospace_Eng_
12-14-2005, 08:03 PM
You can't change the color sorry, the best you can do is make your own stop and play buttons but thats it, and it only works in IE. Another possible option would be to add this in your head tags.
<!--[if IE]>
<style type="text/css">
object {
filter:xray;
}
</style>
<![endif]-->
It will make your player have an xray look only in Internet Explorer though.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
body {
text-align:center;
}
select {
background:#000;
color:#FFF;
}
</style>
<!--[if IE]>
<style type="text/css">
object {
filter:xray;
}
</style>
<![endif]-->
<script type="text/javascript">
function PlayIt(what){
player.document.getElementById('music').innerHTML='<object width="300" height="45" '
+'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="url" value="'+what+'">'
+'<param name="uiMode" value="full">'
+'<param name="autoStart" value="true">'
+'<param name="loop" value="true">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'showcontrols="true" uimode="full" width="300" height="45" '
+'src="'+what+'" autostart="true" loop="true">'
+'</object>';
}
</script>
</head>
<body>
<select name="player" onchange="PlayIt(this.value)">
<option value="none">::Choose a Song from CD1::</option>
<option value="http://urltosong1.wmv">Song 1</option>
<option value="http://urltosong2.wmv">song 2</option>
<option value="http://urltosong3.wmv">song 3</option>
<option value="http://urltosong4.wmv">song 4</option>
<option value="http://urltosong5.wmv">song 5</option>
</select><br>
<div id="music">
<object width="300" height="45"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="url" value="">
<param name="uiMode" value="full">
<param name="autoStart" value="true">
<param name="loop" value="true">
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="true" uimode="full" width="300" height="45"
src="" autostart="true" loop="true">
</object>
</div>
</html>
w1zarduvaahs
12-14-2005, 10:28 PM
:thumbsup: Thanks alot
CroCrew
12-15-2005, 07:40 PM
Below is the code that i am using. My question is there anyway to pick what “Visualization” will be used by WMP?
<object id="player" name="player" width="300" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media player components..." type="application/x-oleobject">
<param name="url" value="Play.wmv">
<param name="uiMode" value="full">
<param name="autoStart" value="true">
<param name="loop" value="true">
<embed type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" showcontrols="true" uimode="full" width="240" height="320" src="" autostart="true" loop="true">
</object>
Thanks,
CroCrew-
_Aerospace_Eng_
12-15-2005, 11:12 PM
No its random, sorry.
CroCrew
12-16-2005, 02:20 PM
No its random, sorry.
Thanks Aero!
By far this is the best place to get any answer on embedding WMP. Thanks everyone for helping everyone out.
CroCrew-:thumbsup:
Mike13009
12-17-2005, 07:40 AM
ok i know you guys have probualy answered this question a hundred times but i really cant read 24 pages of answers i read about 7-8 pages and no answer but how do wmp to play lets say like 7-8 songs but the person can scroll thru them like the wmp has controls of play stop next song and previous song something like that and itll be for my myspace page
thanks in advance
_Aerospace_Eng_
12-17-2005, 07:53 AM
I'm going to tell you the same thing I told some one else in this thread. If you don't have the time to read through the pages then I guess I really don't have the time to help you, because the answer is there. :rolleyes:
coughs*m3u playlist*coughs
Mike13009
12-17-2005, 07:55 AM
I'm going to tell you the same thing I told some one else in this thread. If you don't have the time to read through the pages then I guess I really don't have the time to help you, because the answer is there. :rolleyes:
coughs*m3u playlist*coughs
ahh thats mean can you give me a page range like for example pgs 14-20 or 3-5 something like that
_Aerospace_Eng_
12-17-2005, 08:20 AM
I don't even think you read those 7-8 pages its on page 3.:mad:
raghoo
12-20-2005, 07:45 PM
thank to all giving better java scripts i have one doubt all programers are askin and giving scripts in dropdown style only no one can consuntrating about checkbox style.
can you plz any one provide checkbox audio embede script for me that my website visitors can choose some of all songs they most liked.
_Aerospace_Eng_
12-20-2005, 10:44 PM
Thats because no one asked until now. I think you want something different though. It sounds like you want a system that gets the songs that the user likes and then submits them to you, but having them check the songs isn't going to do much, you will probably need to have them check the boxes then have them submit it and a file created just for them (an m3u playlist) will be embedded into the next page they see. You can do a check box but it will only one song played per check box not all of the songs they play. There is only so much you can do with javascript.
Onetoomanysodas
12-21-2005, 01:00 AM
I'm guessing there's no javascript responses to Window's Media Player actions such as 'OnPlay'. The reason I want to know is because I need it to perform a function when a song ends.
_Aerospace_Eng_
12-21-2005, 01:19 AM
IE only maybe, search for playState, I think there is some stuff about it on this thread.
pixelsounds
12-21-2005, 11:59 AM
Hya
First off thanks to all contributors to this site, especially Aerospace Eng - your're definately making web page design and programming more accessible to all.
I've read through ALL (!) the pages over the last few days but apologise if I've missed anything.
I hope someone can help:
I'm creating a website for new bands / music demos etc and have managed to embed a media player into the site. I want the player to randomly play a track on opening the page. After that I would like the page viewer to be able to play further tracks in the same embeded player using text links, rather than drop down selection.
I have used the jukebox code in post 67 and tried to add the following from previous codes:
<a href="yoursong.mp3" onclick="document.all.music.filename='yoursong.mp3';return false">Play Song</a>
I can't get it to work and am going mad! I have played around with the 'Playit' scripts also but can't get it all to fit together!
Any help would be much appreciated.
Merry Xmas to all!
:confused:
_Aerospace_Eng_
12-21-2005, 07:40 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
body {
text-align:center;
}
</style>
<script type="text/javascript">
<!--
function PlayIt(mp3){
nummp3 = 5
day = new Date()
z = day.getTime()
y = (z - (parseInt(z/1000,10) * 1000))/10
x = parseInt(y/100*nummp3,10) + 1
if (x == (1)){
mp3=("http://absoluteurltosong1.mp3")
}
if (x == (2)){
mp3=("http://absoluteurltosong2.mp3")
}
if (x == (3)){
mp3=("http://absoluteurltosong3.mp3")
}
if (x == (4)){
mp3=("http://absoluteurltosong4.mp3")
}
if (x == (5)){
mp3=("http://absoluteurltosong5.mp3")
}
document.getElementById('music').innerHTML='<object width="300" height="45" '
+'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="url" value="'+mp3+'">'
+'<param name="uiMode" value="full">'
+'<param name="autoStart" value="true">'
+'<param name="loop" value="true">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'showcontrols="true" uimode="full" width="300" height="45" '
+'src="'+mp3+'" autostart="true" loop="true">'
+'<\/object>';
}
window.onload=PlayIt;
//-->
</script>
</head>
<body>
<a href="http://absoluteurltosong1.mp3" onclick="PlayIt(this.href);return false">Song 1</a><br>
<a href="http://absoluteurltosong2.mp3" onclick="PlayIt(this.href);return false">Song 2</a><br>
<a href="http://absoluteurltosong3.mp3" onclick="PlayIt(this.href);return false">Song 3</a><br>
<a href="http://absoluteurltosong4.mp3" onclick="PlayIt(this.href);return false">Song 4</a><br>
<a href="http://absoluteurltosong5.mp3" onclick="PlayIt(this.href);return false">Song 5</a><br>
<div id="music">
<object width="300" height="45"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="url" value="null.mp3">
<param name="uiMode" value="full">
<param name="autoStart" value="true">
<param name="loop" value="true">
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="true" uimode="full" width="300" height="45"
src="null.mp3" autostart="true" loop="true"></embed>
Your browser does not support this plugin.
</object>
</div>
</body>
</html>
pixelsounds
12-22-2005, 12:13 PM
:thumbsup: :thumbsup: :thumbsup: :thumbsup:
Thanks for the code!
Made a few changes though - noticed that the 'playit' command actually causes random songs to be played - so clicking on the text links caused a further random song to be played.
I worked round this by copying the code under a command 'playit 2' and removing the random element (shown in green). This worked on a blank html page as required. However on adding to my page I also had to make some modifications as 2x wm players were popping up. I removed part of the code (in red) and it seems to work.
Merry Christmas.
Ps if you want any website links let me know - I think you deserve them after all the coding help you're giving everyone!
Example of it working is www.worldsmostexpensivehomepage.com/korridors.html
(I'm using that domain to host a diffent site as you will see)
Code (not sure how to put in window sorry):
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
body {
text-align:center;
}
</style>
<script type="text/javascript">
<!--
function PlayIt(mp3){
nummp3 = 5
day = new Date()
z = day.getTime()
y = (z - (parseInt(z/1000,10) * 1000))/10
x = parseInt(y/100*nummp3,10) + 1
if (x == (1)){
mp3=("music/StepIntoTh.mp3")
}
if (x == (2)){
mp3=("music/deal.mp3")
}
if (x == (3)){
mp3=("music/YoullFindU.mp3")
}
if (x == (4)){
mp3=("music/bethere.mp3")
}
if (x == (5)){
mp3=("music/wasted.mp3")
}
document.getElementById('music').innerHTML='<object width="300" height="45" '
+'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="url" value="'+mp3+'">'
+'<param name="uiMode" value="full">'
+'<param name="autoStart" value="true">'
+'<param name="loop" value="true">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'showcontrols="true" showstatusbar="true" uimode="full" width="300" height="69" '
+'src="'+mp3+'" autostart="true" loop="true">'
+'<\/object>';
}
window.onload=PlayIt;
//-->
</script>
<script type="text/javascript">
<!--
function PlayIt2(mp3){
document.getElementById('music').innerHTML='<object width="300" height="45" '
+'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="url" value="'+mp3+'">'
+'<param name="uiMode" value="full">'
+'<param name="autoStart" value="true">'
+'<param name="loop" value="true">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'showcontrols="true" showstatusbar="true" uimode="full" width="300" height="69" '
+'src="'+mp3+'" autostart="true" loop="true">'
+'<\/object>';
}
//--> </script>
</head>
<body>
<a href="music/StepIntoTh.mp3" onclick="PlayIt2(this.href);return false">Step
Into The Light</a><br>
<a href="music/deal.mp3" onclick="PlayIt2(this.href);return false">Deal</a><br>
<a href="music/wasted.mp3" onclick="PlayIt2(this.href);return false">Wasted</a><br>
<a href="music/YoullFindU.mp3" onclick="PlayIt2(this.href);return false">You'll
Find Us There</a><br>
<a href="music/bethere.mp3" onclick="PlayIt2(this.href);return false">Be
There (Beware)</a><br>
<div id="music">
<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject" height="45" width="300"> <param
name="url" value="null.mp3"> <param name="uiMode" value="full"> <param
name="autoStart" value="true"> <param name="loop" value="true">
(Getting rid of above code seemed to work in finished web page!)
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="true" uimode="full" src="null.mp3" autostart="true"
loop="true" height="69" width="300"> Your browser does not support
this plugin.
</object></div>
<br>
<br>
<br>
</body>
</html>
dietrologia
12-22-2005, 07:41 PM
I have a very simple webpage hosted offsite where I use the embed command to automatically stream mp3s from a playlist.m3u file. There are approximately 350 mp3s in the playlist. It's working fine.
This is practically the entirety of the html body:
<embed src="playlist.m3u"
kioskmode="true"
autostart="true"
type="audio/mpeg">
Question: What can I use to automatically randomize the playlist.m3u file without any user prompting every time someone visits my page?
Posts #357, 358 & 359 touch on the randomization, but I'd rather randomize the playlist.m3u than going through and coding for each of the 350 mp3s I have on the server.
Many thanks for any help.
_Aerospace_Eng_
12-22-2005, 07:47 PM
You can't really. You would need to make a playlist for each song where each song was moved up or down one then use the random codes to pick a random playlist.
dietrologia
12-22-2005, 10:39 PM
You can't really. You would need to make a playlist for each song where each song was moved up or down one then use the random codes to pick a random playlist.
Hmmm... that's too bad for me then! :)
I figured that if somthing like WinAmp can shuffle and save playlists, there might be a way to code something similar on the server end. Oh well.
Thank you for your response.
alaskaguy
12-29-2005, 09:00 AM
Is there a way to place a graphic in the space reserved for the movie when WMP ver 10 is embedded in a web page? I have worked several days on this and come up with nothing. I would like something there besides a black box.
_Aerospace_Eng_
12-29-2005, 10:37 AM
As for the graphic in place of the video well as long as the object/embed code is set to the height of the video you will have that black spot though there is a parameter called transparentatstart when set to true should make that black box go away when the video is done playing. You would need to have a background image set on an element and put the object code over it. This parameter may be IE only. As for the book goes well Microsoft kind of covers a lot of it. Though I've learned through experience with streaming media. transparentatstart works in Firefox and should work in IE only if the classid for WMP 7 and below is used. The classid that begins with a 22 is the on you would want to use. Here (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay10/mmp_sdk/paramtags.asp) is a list of possible parameters. This may be of use to you.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Image in video</title>
<style type="text/css">
h3 {
text-align:center;
margin:0;
padding:10px;
}
#music {
width:300px;
height:300px;
margin:20px auto;
position:relative;
background:#000 url(images/oompaloompa2.jpg) no-repeat;
}
#music object {
position:absolute;
left:0;
bottom:0;
z-index:0;
}
</style>
<script type="text/javascript">
function PlayIt(where,what,wid,hgt){
document.getElementById(where).innerHTML='<object width="'+wid+'" height="'+hgt+'" '
+'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="url" value="'+what+'">'
+'<param name="uiMode" value="full">'
+'<param name="autoStart" value="true">'
+'<param name="loop" value="true">'
+'<param name="enabled" value="true">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'showcontrols="true" uimode="full" width="'+wid+'" height="'+hgt+'" '
+'src="'+what+'" autostart="true" loop="true">'
+'</object>';
}
</script>
</head>
<body>
<h3>Click on the image to play the song</h3>
<div id="music" onclick="PlayIt('music','http://prdesignz.inraged-inc.com/10 Years - Wasteland.mp3','300','300');">
<object id="player1" width="300" height="44"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="url" value="http://prdesignz.inraged-inc.com/10 Years - Wasteland.mp3">
<param name="uiMode" value="full">
<param name="autoStart" value="false">
<param name="loop" value="true">
<param name="enabled" value="false">
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="true" uimode="full" width="300" height="44"
src="http://prdesignz.inraged-inc.com/10 Years - Wasteland.mp3" enabled="0" autostart="0" loop="true"></embed>
</object>
</div>
</body>
</html>
See it in action here (http://prdesignz.inraged-inc.com/test.html). The above is the best I could do for a cross browser solution. Firefox uses the embed IE uses the object tag.
alaskaguy
12-30-2005, 12:43 AM
Here is what I have so far. You can see it at
http://www.electrician.com/martian/martian2_bak.htm
It appears that every time the onlcick function (etc) invokes a video it will have to activate a script function that plays the video and removes the graphic. I have yet to figure that out.
The code is too long to post here.
_Aerospace_Eng_
12-30-2005, 04:16 AM
So are you targeting the Internet Explorer users only?
gamesport
01-01-2006, 12:00 AM
hey Aerospace,
do you know wether or not there is a code to disable viewing the window media player properties, without entirely disabling contextmenu?
_Aerospace_Eng_
01-01-2006, 05:13 AM
<param name="enablecontextmenu" value="false">
You will need to add
enablecontextmenu="0"
to the embed tag as well.
gamesport
01-01-2006, 06:44 PM
sorry i didnt make myself clear, i understand the enablecontextmenu part, but i was wondering if there was a way to leave contextmenu enabled, but user wouldn't be able to view location, but i realize that WM is limited in what you can do, i suppose one can do it via c++, but i am not familiar with the language, but thanks anyways
gamesport
01-01-2006, 06:51 PM
Could you tell me if there are any inefficiencies with my code here, or if there is a better way of doing it
<object id="mediaPlayer"
width ="480"
height ="425"
classid ="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
codebase ="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby ="Loading Microsoft Windows Media Player components..."
type=application/x-oleobject" viewastext>
<param name="autoStart" value="true">
<param name="url" value="pathtomyvid/vidfile.wmv">
<param name="FileName" value="pathtomyvid/vidfile.wmv">
<param name="ShowStatusBar" value="true">
<param name="wmode" value="transparent">
<param name="uiMode" value="full">
<param name="loop" value="false">
<param name="enableContextMenu" value="true">
<script language=javascript type="text/javascript">
{
//////////////////////////////////
// the subfolder and file name - these are used only on the mozilla browser
var videosubdirectory = "pathtomyvid";
var videofile = "vidfile.wmv; ?>";
//this will be the final video link (absolute path)
var videolink = location.href;
//remove the file:// because windows media doesn't understand that
var file = videolink.indexOf( "file://");
if ( file > -1 )
{
// THIS IS A LOCAL PATH
videolink = videolink.substring( file + 8 );
//remove the %20 because media player doesn't understand those
while( videolink.lastIndexOf( "%20" ) != -1 )
{
videolink = videolink.replace( "%20", " " );
}
//remove the html file name now
var lastslash = videolink.lastIndexOf( "/");
if ( lastslash > -1 )
videolink = videolink.substring( 0, lastslash );
//add the subfolder (if there is one) and then the video file name
if ( videosubdirectory.length > 0 )
videolink = videolink + "/" + videosubdirectory + "/" + videofile;
else
videolink = videolink + "/" + videofile;
}
else
{
////////////////////////////
// THIS IS NOT A LOCAL FILE - give relative path
//no need to give an absolute path
if ( videosubdirectory.length > 0 )
videolink = videosubdirectory + "/" + videofile;
else
videolink = videofile;
}
//write out the mozilla complient code
document.write( "<EMBED NAME =\"EmbedmediaPlayer\"");
document.write( "PLUGINSPAGE =\"http://microsoft.com/windows/mediaplayer/en/download/\" ");
document.write( "FILENAME =\"pathtomyvid/vidfile.wmv\" ");
document.write( "SHOWSTATUSBAR =\"1\" ");
document.write( "ENABLECONTEXTMENU =\"1\" ");
document.write( "TYPE =\"application/x-mplayer2\" ");
document.write( "SRC =\"" + videolink + "\"");
document.write( "WIDTH =\"480\" ");
document.write( "HEIGHT =\"425\"> ");
document.write( "</EMBED>" );
}
</script>
<noscript>
<embed name ="EmbedmediaPlayer"
pluginspage ="http://microsoft.com/windows/mediaplayer/en/download/"
filename ="pathtomyvidfile.wmv"
showstatusbar ="1"
enablecontextmenu ="1"
type ="application/x-mplayer2"
src ="pathtomyvid/vidfile.wmv"
width ="480"
height ="425"></embed>
</noscript>
</object></td>
</tr>
</table>
</body>
</html>
_Aerospace_Eng_
01-02-2006, 02:07 AM
There is no point to feed a url using JS. I believe Firefox won't even output the code. The class id you specified doesn't have a filename parameter. It doesn't have a wmode parameter either. As for disabling the location, no you can't do that. You CANNOT protect anything on the web. If you don't want it taken don't publish it end of story.
lunetico
01-05-2006, 03:10 AM
I've created a web pag for radio broadcasting i ve got the server and everything else that i need but the 1 thing that kills me is to embedd a player on ma web page so far i've embedded a real player but it doesn't work it has some general failure so i was wondering if some1 knows a code for windows media player so i can put it somehow on ma webpage 'lol' and also give me information on how to work with it or how to deal with this general failure that i've got on ma web page frm ma real player!
thnx a wud i appreciate ur help ! :) :thumbsup:
_Aerospace_Eng_
01-05-2006, 06:22 AM
English. Please speak properly English. Its hard to understand you. There are 24 pages that contain code for Embedded Windows Media Players. Read them.
alaskaguy
01-07-2006, 04:35 AM
First for aereo_space_eng I only program for IE 5.0 or better. Webstat collects statistics for my site electrician.com that now has received over one million hits. The results are conclusive. Netscape is dead. 98 per cent of the visitors use IE 5.0 or better. Netscape is faster but the problems of compatibility are too time consuming for a 2% audience. Additionally I develop training programs using Power Point. Netscape will not display the pages correctly. When you have to turn out hundreds of graphics and pages for a course that has an immediate market, Power Point is the highest production tool that I have found!
Now about the help:
I received a lot of good advice here and that set me off to a good start. For the last several weeks (actually started on this in 2001) I have worked day and night getting the code right. I now have a working model to use for further development of instructional programs that I sell at electrician.com. My working model is at alaskavirtualtour.com It is a true multimedia site that uses wmv's in WMP, virtual movies in PTViewer, and slide shows in applets. The navigator is in a separate side frame and some links call functions in the main frame.
I do not hide code. And I don't care who borrows it. I wrote about 70 per cent of the code there. The rest I borrowed. And I did get those graphics to hide when the player starts up using JavaScript object.visibility = 'hidden'
Hi guys,
it´s a relly helpy site.
I´m a German guy, so my englisch isn´t the best^^.
Ich hav h question to all.
Can someone Post a Code for embeding a Medi PLayer which is playing automatically if you visit the site. And which is start the next track autmatically if the first track finished. So the player must have a playlist or not???
Thx for help
BenQ
_Aerospace_Eng_
01-12-2006, 06:33 PM
Well the way on how to make a playlist has been covered. Pretty much almost any possible embed code has also been posted in this thread. Read through the threads.
dietrologia
01-14-2006, 12:21 AM
<embed src="playlist.m3u"
autostart="true"
type="audio/mpeg">
^ That's all you need to put within the body of your html in order to have automatic, embeded, streaming mp3 playback. Nothing fancy, to be sure, but it works in IE and Firefox. Firefox defaults to Quicktime, IE uses Media Player. With IE, you can pause, fast-forward, stop, skip with the embeded player. I don't know about Firefox.
You have to create a playlist which is super-easy. Just open Notepad and type the path where the songs can be found on your server (or wherever) like so:
www.yourserver.com/song1.mp3
www.yourserver.com/song2.mp3
www.yourserver.com/song3.mp3
etc, etc, etc...
Save it as an M3U file, upload it to your server and that's it.
I know it works because I'm using it on my own lame website. I'd like to be able to come up with a php script or something that randomizes and rewrites the playlist each time someone hits my site, but that's beyond my capabilities. I can barely point and click! ;)
omyz1
01-16-2006, 06:45 PM
Need help i just need to mute my video but dont no how to do it. This is wut i got so far:
<embed src="http://miguelcotto.com/video/Cotto_Pinto.asx" autostart="true" height="300" width="300" volume="0" )><br><small>Miguel Cotto vs. Pinto</a></small>
_Aerospace_Eng_
01-16-2006, 10:56 PM
You can only mute the video in Internet Explorer. Is your target audience Internet Explorer only?
flerd
01-20-2006, 08:36 AM
Hi all,
i'm new in this forum, but it helped me a lot, so first of all thanks for everybody :) especially for Aero, for his shared codes, i learnd a lot from that.
I have my embadded media player on my site (with embade tag), and it works as i want. I have href links to controll the mp3, m3u-s.
I have only one problem. I can't set the volume for the media player as i want. I managed to set the starting volume, but if the user set the volume manually and then he/she click on another mp3/mpu (so the media player starts again), the volume is set back to my default setting. My aim is to keep the manually (set by the user) volume for every mp3. Is there any solution for that? Aero my hope is in you ;) (i can copy the code if needed)
Thx for reading and hope someone gives me the solution :cool:
bratzmania
01-21-2006, 12:31 AM
Good thread! :thumbsup:
_Aerospace_Eng_
01-21-2006, 12:34 AM
You need to read a bit more.
rpistor
01-21-2006, 01:18 AM
I have come across a peculiar situation: a javascript based menu bar does not show on a web page along with the embedded Media Player, but does so on pages that do not have the embedded player. This I have noticed only with FF or NS - the menu shows fine in IE. Since all other pages show the menu in all browsers, I tend to believe that it may be a Media Player code issue? Or paramater issue?
Has anybody experienced the same or similar problem, and what if any would be the remedy?
The code is VERY VERY long, therefore I better provide a link to the page in question - please compare with other pages of this site where the menu show just fine .....
http://www.prodivemex.com/engvid.htm
Thanks for the help,
Ralph
_Aerospace_Eng_
01-21-2006, 01:24 AM
It would help if you had some what decent coding. You never close your embed tag.
bratzmania
01-21-2006, 06:26 AM
I read all of this and it still didn't help the problem I'm having.
I just wanna add this:
<script type="text/javascript"><!--
function song(){
document.getElementById('music1').innerHTML="<embed type='application/x-mplayer2' id='music2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='"+document.getElementById('cancion').value+"' name='MediaPlayer1' autostart='true' loop='true' style='display: none;'></embed>";
}
//-->
</script>
</head>
<select id="cancion" onchange="song()" size="1" STYLE="font-family=Verdana,Arial,Helvetica,Sans-Serif; font-size=10px; background-color=#FFFFFF; color=#660066">>
<OPTION selected> » Background Music:</OPTION>
<OPTION VALUE="0">------------------------
<OPTION value=/BackGroundMusic/track_01.wav>Artist - Song Title</OPTION>
<OPTION value=/BackGroundMusic/track_02.wav>Artist - Song Title</OPTION>
</select><br>
<span id="music1"><embed type="application/x-mplayer2" id="music1"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
src=""
name="MediaPlayer1"
autostart="true" loop="true" style="display: none;">
</embed></span>
To this:
<a class="link2" href="#" onclick="document.all.music[0].play();">Play</a> |
<a class="link2" href="#" onclick="document.all.music[0].pause();">Pause</a> |
<a class="link2" href="#" onclick="document.all.music[0].stop();">Stop</a>
And have it work. *sigh* :mad:
flerd
01-21-2006, 08:17 AM
You need to read a bit more.
Hi,
Aero is that a reply to my post? Why do i need to read a bit more? Please give me some help if you can... i don't want you to make all the codeing to me, i just need an advice. Thx in advance.
Other question (perhaps not javascript, but maybe someone know it):
Is there any chance to move a layer with the page when someone is scrolling the page up and down? I would like to have a layer on my page which allways stays in the same position (on the visible part of the screen) as the user scrolls the page. I hope you understand what i would like to do :)
Please help me :D
highland
01-27-2006, 02:47 PM
Hi.. not sure this is where this question goes... but i hope so...
The following code is what Im using to play songs or video using QuickTime so the songs/videos play one after another automatically.. it works just fine... However, what I really want to do is have a dropdown window of another menu type thingy to allow viewers to choose which song or video they prefer.. I've search and search and cant find the code anywhere including up on Apples site... any help is appreciated... thanks... Im pretty new to all this HTML stuff.... Thanks again
<!-- The display panel for the video -->
<div id = "video-panel">
<embed PLUGINSPAGE="http://www.apple.com/quicktime/download/"
src="http://ia300837.eu.archive.org/0/items/DoinguntitledChloeWalkingmov_1/ChloeWalking.mov" width="320" height="260" autoplay="true" scale="tofit"
controller="true" loop="false"
qtnext1="<http://ia300803.eu.archive.org/1/items/DoingMaevMarbleHalls/MaevMarbleHalls.mov> T<myself>" width="320" height="260" autoplay="true" scale="tofit"
controller="true" loop="false"
enablejavascript="false"></embed>
<div style="position: relative; bottom: 0px; left: 10px; width: 300px;">
This media file's URL: <a href="http://ia300837.eu.archive.org/0/items/DoinguntitledChloeWalkingmov_1/ChloeWalking.mov">Link</a></div>
</div>
<b>Thanks again !!</b>
_Aerospace_Eng_
01-27-2006, 03:52 PM
I guess you didn't search well enough. http://www.codingforums.com/showthread.php?t=63644
highland
01-28-2006, 04:52 AM
I guess you didn't search well enough. http://www.codingforums.com/showthread.php?t=63644
I did see the above thread... which refers to another thread... On that thread you state that the code, which is for Window Media Player, can easily be coded for Quick Time... That may be so... but for a novice like me... it isnt...:confused:
I am already doing something similar with the Windows Media Player code there... But I have no idea where I would put that in the Quick Time code I am using, or if there are different tages that must be used, and where those tags would go for the Quick Time code...
<!-- The display panel for the video -->
<div id = "video-panel">
<embed PLUGINSPAGE="http://www.apple.com/quicktime/download/"
src="http://ia300837.eu.archive.org/0/items/DoinguntitledChloeWalkingmov_1/ChloeWalking.mov" width="320" height="260" autoplay="true" scale="tofit"
controller="true" loop="false"
qtnext1="<http://ia300803.eu.archive.org/1/items/DoingMaevMarbleHalls/MaevMarbleHalls.mov> T<myself>" width="320" height="260" autoplay="true" scale="tofit"
controller="true" loop="false"
enablejavascript="false"></embed>
<div style="position: relative; bottom: 0px; left: 10px; width: 300px;">
This media file's URL: <a href="http://ia300837.eu.archive.org/0/items/DoinguntitledChloeWalkingmov_1/ChloeWalking.mov">Link</a></div>
</div>
From what little i know, I dont think QuickTime uses the OPTION tag... I tried putting that into my code for Quick Time and it didnt work
_Aerospace_Eng_
01-28-2006, 06:55 AM
But that thread also has the code for quicktime dropdown box
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
text-align:center;
}
form {
margin:0;
padding:0;
}
-->
</style>
<script type="text/javascript">
<!--
function PlayIt(){
document.getElementById("music1").innerHTML='<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" '
+'height="255" codebase="http://www.apple.com/qtactivex/qtplugin.cab">'
+'<param name="src" value="'+document.getElementById('cancion').value+'">'
+'<param name="autoplay" value="true">'
+'<param name="controller" value="true">'
+'<param name="loop" value="true">'
+'<embed src="'+document.getElementById('cancion').value+'" width="320" height="255" autoplay="true"'
+'controller="true" loop="true" pluginspage="http://www.apple.com/quicktime/download/"></embed>'
+'</object>'
}
//-->
</script>
</head>
<body onload="document.forms['player'].reset()">
<form name="player" action="" method="">
<select name="" id="cancion" onchange="PlayIt()" size="1">
<option value="none">::::::::::::: Choose Your Song Here :::::::::::::</option>
<option value="http://urltosong1.mp3">Song 1</option>
<option value="http://urltosong2.mp3">Song 2</option>
<option value="http://urltosong3.mp3">Song 3</option>
<option value="http://urltosong4.mp3">Song 4</option>
<option value="http://urltosong5.mp3">Song 5</option>
<option value="http://urltosong6.mp3">Song 6</option>
<option value="http://urltosong7.mp3">Song 7</option>
<option value="http://urltosong8.mp3">Song 8</option>
<option value="http://urltosong9.mp3">Song 9</option>
<option value="http://urltosong10.mp3">Song 10</option>
</select>
</form>
<span id="music1">
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320"
height="255" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="">
<param name="autoplay" value="true">
<param name="controller" value="true">
<param name="loop" value="true">
<embed src="" width="320" height="255" autoplay="true"
controller="true" loop="true" pluginspage="http://www.apple.com/quicktime/download/">
</embed>
</object>
</span>
</body>
</html>
All you need now is to learn how to make an m3u playlist. There is a thread in here like page #7 or so that explains how to make an m3u playlist.
nitrousoxide52
01-29-2006, 01:39 AM
I just noticed this thread, but I think it kind of pertains to a thread that I started earlier. http://www.codingforums.com/showthread.php?t=78162
shehbazt
01-31-2006, 02:22 AM
hello i just wanted to know how to disable the right click on the windows media player and how to disable the buffering bar (status bar).
thanks
bownut
02-11-2006, 05:46 AM
I'm running a website that is dependent upon a Windows database. I believe everything is written in VBScript, but I really don't know. I got the embedded WMP information from here before and was wondering if someone could help me with this now.
My site pulls up real estate listings. Right now, it is programmed to pull up the information for each listing including the photos. It does create a clickable link if you want to watch a virtual tour of the property. However, I'd like to embed the player and have it run the virtual tour of the property. But I've tried a million different versions of the code (because I don't know VB) and cannot get it to work.
Here is the coding for the link that goes to the virtual tour:
[InfoLink:!LINK:value:text{}:img.src{images/fi_info.gif}:img.width{26}:img.aspectratio{19/26}]
When I looked in the database, the field is actually labeled info_URL for where the URL for the virtual tour is stored.
I want the embedded player to be able to pick up this link and play it rather than having a random list or even have a choice, because it needs to play the virtual tour associated with each individual property.
Here is my embedded player script:
<OBJECT
ID="music"
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
STANDBY="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="fileName" VALUE="?????">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="ShowStatusBar" VALUE="true">
<PARAM NAME="autoStart" VALUE="true">
<PARAM NAME="showControls" VALUE="true">
</OBJECT>
I put the five questions marks because that field is what I need to pull from my databse.
Any suggestions?
dazza61
02-11-2006, 06:34 AM
Hi Aerospace,
I posted a question way back on pages 17/18 of this thread. You posted some php code to help me let Opera play m3u files in a PC's users default desktop player...
My PC then blew up!!
Anyway - Just letting you know that although the code didn't seem to work at the time, it does on my new shiny PC :)
I don't think it's the PC though - simply that I upgraded my ISP/hosting account from 30MB to 100MB of webspace. Although my ISP claims to offer PHP support on both services, a friend on the inside says it's only available on the upgraded service...
So without further ado - Many thanks once again for your time and expertise.
Best regards.
dazza61
flerd
02-11-2006, 06:40 PM
Hi all,
i just wanted to thank to everyone who helped me in this forum, and for averyone who has shared codes here. I learned a lot from this thread.
here is the website which couldn't have been finished without this forum ;)
http://www.aenimacgs.com/web/index2.htm
Check these menus:
- 3Daenimations
- music
- low budget
- commercial
- other art
thx again.
flerd :cool:
flerd
02-11-2006, 06:52 PM
hello i just wanted to know how to disable the right click on the windows media player and how to disable the buffering bar (status bar).
thanks
hi,
to disable right click i don't know the solution...
to hide status bar check this code:
</script>
<script type="text/javascript">
<!--
function PlayIt(thesong){
document.getElementById("music1").innerHTML='<object id="mediaPlayer" width="300" height="70" '
+'classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" '
+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="fileName" value="'+thesong+'">'
+'<param name="autoStart" value="true">'
+'<param name="showControls" value="true">'
+'<param name="Volume" value="-2000">'
+'<param name="loop" value="true">'
+'<param name="ShowStatusBar" value="0">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'ShowStatusBar="0" '
+'Volume="-2000" '
+'showcontrols="true" width="300" height="70" '
+'src="'+thesong+'" autostart="true" loop="true" '
+'</embed>'
+'</object>'
}
//-->
</script>
check this line:
+'<param name="ShowStatusBar" value="0">'
and in the embaded player:
+'ShowStatusBar="0" '
if you write "1" than you show the statusbar ;)
theone3
02-15-2006, 09:57 AM
Whoa. This is a long thread. I'm not going to read through it, however, Isn't Flash a simpler solution for playlists? You can do all sorts of fancy crossfading and interface design, it's a smaller plugin than WMP, it dosent need JS controls and it's cross-platform.
_Aerospace_Eng_
02-15-2006, 10:00 AM
Yeah but some users don't even know what flash is or much less have a flash program so they resort to JS. Half the users asking for these scripts use IE only anyways so them if it works it doesn't really matter. I have recommended a few flash players only because I knew what the user wanted was far fetched using WMP.
npman5
02-18-2006, 05:19 PM
I am trying to play a set of midi files in myspace and I have discovered that the flash media player that I use on myspace only plays MP3s. I discovered this thread and I am wondering if there is a way to embed a Window's Media Player into myspace that will run midi files with a list that scrolls in a way that there are 7 or so columns that scroll down the entire list of music based on how far down the mouse pointer is in the entire selection area with no scrollbar. If that is not possible than anything will do. Also, I would like to have the title of the current song scroll sideways(left) while the song is playing. Also, if it is possible, I would like the songs to play when selected from the list and then when finished continue into the next song but have nothing play until the initial song desired has been selected by the viewer. I do not need to have visualizations and would rather have them disabled completely because my myspace is already a gigantic page which probably murders dial-up users. I also would like to have the player start at 100% volume at 1x speed. Also, i would like to have the small black blob bar thing at the bottom of the embedded media player disapear. Myspace blocks javascript and I believe that it also filters out the object tag. I have used aerospace's code listed on page 2 near the bottom and I have taken the media player embed from the javascript tags and I have a player that will at least have the play button clickable and it says that it is connecting to media and then it goes back to nothing. The code is listed below with the piece that I currently am using bolded.
<script type="text/javascript"><!--
function song(){
document.getElementById('music1').innerHTML="<embed type='application/x-mplayer2' id='music2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='"+document.getElementById('cancion').value+"' name='MediaPlayer1' width='300' height='75' controltype='2' showcontrols='1' showstatusbar='1' AutoStart='true'></embed>";
}
//-->
</script>
I have recreated the flash player and the embeded media player at http://www.geocities.com/npman5/flashmusic.htm. Everything below track 8 is a midi file on the flash player and all of those items are on the list for the jukebox. This is what I currently have on my myspace and pretty much what I want to have with the embedded Window's Media, minus the opening and closing portions if they are not possible (the playlist and the equilizer)
Sorry for having no knowledge but I am still in high school and haven't even finished learning about dreamweaver and frontpage basic's. If anyone could help it would be greatly appreciated.
_Aerospace_Eng_
02-18-2006, 06:41 PM
You can embed a media player on myspace but you will only be able to play one song file. You will need to use this generator for the music to work properly.
http://mygen.co.uk/index.php?page=generators§ion=audio
Again you will ONLY be able to place one midi file since myspace doesn't allow javascript.
npman5
02-19-2006, 07:29 PM
Is there any way to play the midi files by having links that change the background song of the page, much like changing the background color, or would that involve javascript?
_Aerospace_Eng_
02-19-2006, 10:30 PM
Yeah that would involve javascript.
clickhere
02-23-2006, 11:24 PM
nice:)
_Aerospace_Eng_
02-24-2006, 01:25 AM
nice:)
What? Did you solve your problem? :confused:
clickhere
02-24-2006, 08:12 AM
What? Did you solve your problem? :confused:
No i really need your help with this code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript"><!--
function song(){
document.getElementById('music1').innerHTML="<embed type='application/x-mplayer2' id='music2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='"+document.getElementById('cancion').value+"' name='MediaPlayer1' width='300' height='75' controltype='2' showcontrols='0' showstatusbar='1' AutoStart='true'></embed>";
}
//-->
</script>
</head>
<div id="jukebox">JUKEBOX<br><br>
<select id="cancion" onchange="song()" size="1">
<option value="none">::::::::::::: Choose Your Song Here :::::::::::::</option>
<option value="mms://media.indline.com/female">Song 1</option>
<option value="http://urltosong2.mp3">Song 2</option>
<option value="http://urltosong3.mp3">Song 3</option>
<option value="http://urltosong4.mp3">Song 4</option>
<option value="http://urltosong5.mp3">Song 5</option>
<option value="http://urltosong6.mp3">Song 6</option>
<option value="http://urltosong7.mp3">Song 7</option>
<option value="http://urltosong8.mp3">Song 8</option>
<option value="http://urltosong9.mp3">Song 9</option>
<option value="http://urltosong10.mp3">Song 10</option>
</select><br>
<span id="music1"><embed type="application/x-mplayer2" id="music1"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
src=""
name="MediaPlayer1"
width="300"
height="70"
controltype="2"
showcontrols="1"
showstatusbar="1"
AutoStart="0">
</embed></span>
</div>
</body>
</html></p>
</body>
</html>
The Code works Great but can you show me how I could move the drop down box and the windows media player without the code not working...I hope i'm being clear, basicly i need to move the drop box and video player to different areas of my page and still have it work the same:)
clickhere
03-03-2006, 05:31 AM
nevermind i figured it
wrekk.com
03-07-2006, 08:12 PM
Thanks for the coding. It was really helpful in what I am trying to accomplish. Here's an example:
http://shop.wrekk.net/product_info.php?cPath=21_25&products_id=30
Any suggestions on how to improve functionality or make this a little more cosmetically pleasing? i.e.--decrease the space in between lines, put a little pic like a music note or play button, decrease font size, etc.?
Thanks alot.
_Aerospace_Eng_
03-07-2006, 08:39 PM
Well you are using the outdated version of the code so it doesn't even work in Firefox. There is some updated code that you can use. All of those things you asked about how to make it more pleasing require CSS and some HTML. Its not to hard to do.
wrekk.com
03-07-2006, 08:54 PM
uhhhh.....Firefox? No, just IE. Is there a site that you can point me to, that would have a examples like this, that I can see and emulate? Thanks.
BlonT
03-10-2006, 02:56 PM
Hi there, good topic, learned a lot already. I just wanted to know something actually.
Within the embedded mediaplayer, when the autostart set to false (so the people have to click) is the client already downloading the file then?
I want people to have the choice wether they download it and somehow, when I look at my traffic, it seems the file is already downloading, even if autostart is set off.
Is that true, and if so, is there a way to stop that. So that the file is only downloaded when someone presses play?
ToGeThaAsOne
03-10-2006, 06:28 PM
Hi _Aerospace_Eng_
I have my little webpage with a list of songs, but what I have now is a link for visitors to click on to listen to the song of their choice with a pop up window...........and that's not what I want, I don't want a pop up window.......the code below is exactly what I want on my page, I tried this code but it's not working :rolleyes:
This is what I put in my page, I have the URL link and everything but it is not working somehow. Can you please help me correcting the problem? thank you so much and have a nice day.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
body {
text-align:center;
}
</style>
<script type="text/javascript">
<!--
function PlayIt(mp3){
nummp3 = 5
day = new Date()
z = day.getTime()
y = (z - (parseInt(z/1000,10) * 1000))/10
x = parseInt(y/100*nummp3,10) + 1
if (x == (1)){
mp3=("http://www.vnheaven.com/music/download/01.Em%20Doi%20Gian%20Toi%20De%20Lam%20Gi.mp3")
}
if (x == (2)){
mp3=("http://absoluteurltosong2.mp3")
}
if (x == (3)){
mp3=("http://absoluteurltosong3.mp3")
}
if (x == (4)){
mp3=("http://absoluteurltosong4.mp3")
}
if (x == (5)){
mp3=("http://absoluteurltosong5.mp3")
}
document.getElementById('music').innerHTML='<object width="300" height="45" '
+'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="url" value="'+mp3+'">'
+'<param name="uiMode" value="full">'
+'<param name="autoStart" value="true">'
+'<param name="loop" value="true">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'showcontrols="true" uimode="full" width="300" height="45" '
+'src="'+mp3+'" autostart="true" loop="true">'
+'<\/object>';
}
window.onload=PlayIt;
//-->
</script>
</head>
<body>
<a href="http://www.vnheaven.com/music/download/01.Em%20Doi%20Gian%20Toi%20De%20Lam%20Gi.mp3" onclick="PlayIt(this.href);return false">em doi giang toi</a><br>
<a href="http://absoluteurltosong2.mp3" onclick="PlayIt(this.href);return false">Song 2</a><br>
<a href="http://absoluteurltosong3.mp3" onclick="PlayIt(this.href);return false">Song 3</a><br>
<a href="http://absoluteurltosong4.mp3" onclick="PlayIt(this.href);return false">Song 4</a><br>
<a href="http://absoluteurltosong5.mp3" onclick="PlayIt(this.href);return false">Song 5</a><br>
<div id="music">
<object width="300" height="45"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="url" value="null.mp3">
<param name="uiMode" value="full">
<param name="autoStart" value="true">
<param name="loop" value="true">
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="true" uimode="full" width="300" height="45"
src="null.mp3" autostart="true" loop="true"></embed>
Your browser does not support this plugin.
</object>
</div>
</body>
</html>
_Aerospace_Eng_
03-10-2006, 06:50 PM
It works fine for me. Where are you trying this at? Are you trying this on a site like MySpace?
ToGeThaAsOne
03-10-2006, 07:13 PM
It works fine for me. Where are you trying this at? Are you trying this on a site like MySpace?
not myspace but xanga, are you online now? if so i'll post up the code and let you see how it looks in my page
_Aerospace_Eng_
03-10-2006, 07:19 PM
Umm the little green circle under my ID is a good indicator that I'm online.
ToGeThaAsOne
03-10-2006, 07:58 PM
Umm the little green circle under my ID is a good indicator that I'm online.
today is my first day here so thank you :)
ok i just post up the code in my xanga's page, can you please take a look and tell me what i did wrong? ...........
www.xanga.com/ToGeThaAsOne
_Aerospace_Eng_
03-10-2006, 08:05 PM
You can't just post a complete html page inside another html page. Get rid of the stuff in red.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
< http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
body {
text-align:center;
}
</style>
<script type="text/javascript">
<!--
function PlayIt(mp3){
nummp3 = 5
day = new Date()
z = day.getTime()
y = (z - (parseInt(z/1000,10) * 1000))/10
x = parseInt(y/100*nummp3,10) + 1
if (x == (1)){
mp3=("http://www.vnheaven.com/music/download/01.Em%20Doi%20Gian%20Toi%20De%20Lam%20Gi.mp3")
}
if (x == (2)){
mp3=("http://absoluteurltosong2.mp3")
}
if (x == (3)){
mp3=("http://absoluteurltosong3.mp3")
}
if (x == (4)){
mp3=("http://absoluteurltosong4.mp3")
}
if (x == (5)){
mp3=("http://absoluteurltosong5.mp3")
}
document.getElementById('music').innerHTML='<object width="300" height="45" '
+'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="url" value="'+mp3+'">'
+'<param name="uiMode" value="full">'
+'<param name="autoStart" value="true">'
+'<param name="loop" value="true">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'showcontrols="true" uimode="full" width="300" height="45" '
+'src="'+mp3+'" autostart="true" loop="true">'
+'<\/object>';
}
window.onload=PlayIt;
//-->
</script>
</head>
<body>
<a href="http://www.vnheaven.com/music/download/01.Em%20Doi%20Gian%20Toi%20De%20Lam%20Gi.mp3" onclick="PlayIt(this.href);return false">em doi giang toi</a><br>
<a href="http://absoluteurltosong2.mp3" onclick="PlayIt(this.href);return false">Song 2</a><br>
<a href="http://absoluteurltosong3.mp3" onclick="PlayIt(this.href);return false">Song 3</a><br>
<a href="http://absoluteurltosong4.mp3" onclick="PlayIt(this.href);return false">Song 4</a><br>
<a href="http://absoluteurltosong5.mp3" onclick="PlayIt(this.href);return false">Song 5</a><br>
<div id="music">
<object width="300" height="45"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="url" value="null.mp3">
<param name="uiMode" value="full">
<param name="autoStart" value="true">
<param name="loop" value="true">
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="true" uimode="full" width="300" height="45"
src="null.mp3" autostart="true" loop="true"></embed>
Your browser does not support this plugin.
</object>
</div>
</body>
</html>
ToGeThaAsOne
03-10-2006, 08:19 PM
You can't just post a complete html page inside another html page. Get rid of the stuff in red.
</html>[/color] [/code]
thank you, "Your browser does not support this plugin." how can I make it works then? sorry for asking too much questions ;)
_Aerospace_Eng_
03-10-2006, 08:20 PM
Take out the stuff I told you in red. It does work. You need to actually scroll the box in my post. There is more stuff in red that you need to take out.
ToGeThaAsOne
03-10-2006, 08:28 PM
Thank you, ok take all of the red stuff out and also click on the song but it doesn't play.........does it play or works for you? THANK YOU SO MUCH FOR YOUR HELP :)
_Aerospace_Eng_
03-10-2006, 08:52 PM
Where did you put it? I don't even see the code in your page.
DimaN
03-11-2006, 12:12 AM
HOW CAN I ADD ITEMS TO A PLAYLIST DYNAMICALLY (like on the http://video.msn.com/v/us/v.htm ?)
I have embedded wm player in the page. Basic controls like play/stop work fine. The playlist is generated automatically when the page loads (php in the url field).
I need to know how to add or insert items to that playlist after the player started playing.
Anybody knows how to make it work?
optimist
03-11-2006, 07:50 PM
Hello,
Thanks for all the help. I have a question for Aerospace. My website has a lot of mp3 files for streaming (and growing..well I am working on it) and I have wmp embedded in a pop up window, which pops up once user click on 'play' icon besides a song. But, I will soon have a lot of songs on a single page form a single artist. So, it would be great if the user could choose which ones (multiple songs) they wanna listen to instead waiting for one to finish then go to the page to click the other to play. I was thinking something like checkbox and a 'play selected' botton, which if pressed will creat .m3u file and play with the embedded player. I do not know JS, and my webhost doesn't support php/perl/asp...(I don't know them either :o ). The dropdown list is fine, but won't let me select multiple files..
I have read all the previous posts and only one related to mine seems to be #354. Is it possible to make a system that you were talking about? Any suggestion towards my goal, anywork arounds or options without having to learn php (seems a lot complicated...and then I would need a new host too..)? Please help.
Thanks
BlonT
03-13-2006, 11:03 AM
Hi there, good topic, learned a lot already. I just wanted to know something actually.
Within the embedded mediaplayer, when the autostart set to false (so the people have to click) is the client already downloading the file then?
I want people to have the choice wether they download it and somehow, when I look at my traffic, it seems the file is already downloading, even if autostart is set off.
Is that true, and if so, is there a way to stop that. So that the file is only downloaded when someone presses play?
Maybe this question was overlooked, but I really need an answer, and I'm looking all over the internet to ask a pretty obvious thing. Does it download when the page loads, even if autostart is "0"?
Thanks for the help in advance
I find it impossible to add song titles to a playlist (.wpl) using media player.
I notice that the wpl file is not unlike html. I appears to be easy to insert a
line for the location of an audio file (song) but it also has this tid=" and then
some sort of encoding. Is this required ? If so is there a way to figure out
what this value should be for the record(s) i want to insert in the playlist.
Thanks for any help.
_Aerospace_Eng_
03-15-2006, 10:22 PM
Use an m3u playlist instead. Its more compatable with other systems and players. There is a tutorial somewhere in this thread that explains how to do so. It allows you to add titles and song location. Look for the tutorial. Good luck.
Thanks,
I figured out how to add a song (mp3). I used explorer and then drag and drop the song title to WMP search area then right click and add to the playlist. It seems to work fine.
dsanz888
03-18-2006, 02:43 AM
whats up I just wanna thank the guy who came up with the code in page three (with the playlist embedded )very useful info.
_Aerospace_Eng_
03-18-2006, 02:49 AM
What did you need? Ask your questions here. I don't do email or pm requests.
Tiffany2006
03-18-2006, 09:22 AM
Aerospace_Eng_ ,
Hi so glad I found this thread, there;re a lot of useful info I've been looking for the past 2 weeks. Thanks
(please take a look at the attached image first so you won't be confused) http://img85.imageshack.us/img85/3566/music11bn.th.jpg (http://img85.imageshack.us/my.php?image=music11bn.jpg)
I'm looking for a code that let me do, if possible the same thing as what is shown in the image. I want to have a search box w/options also, that let users to search for artists name, song title, or composers....etc within my database. How do I do that? If that's too much to ask, can you please show me how to add a search box on my page that would search within my website only so it's easier for my visitors to search for music. Thanks a lot.
_Aerospace_Eng_
03-18-2006, 09:55 AM
What you require is a server side solution. Unfortunately a search engine for a site is out of my range of expertise. Perhaps you can find what you need at www.hotscripts.com
Tiffany2006
03-18-2006, 10:54 AM
Ic, that's ok. Thanks _Aerospace_Eng_
Oh a question about pop up, what code should I use so that when a person click on the link to listen to the music on page, it would pop up with a new small window that just fits the wmp player (bar code, and what's playing only) and not the whole new big screen?
Example:
http://img56.imageshack.us/img56/392/music29gt.th.jpg (http://img56.imageshack.us/my.php?image=music29gt.jpg)
Appreciated it.
_Aerospace_Eng_
03-18-2006, 08:44 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script type="text/javascript">
function openPlayer(url)
{
musicwin = window.open('test2.html','musicwin','width=315,height=115,top=0,left=0,status=0,resizable=0,menubar= 0,toolbars=0');
musicwin.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
musicwin.document.write('\n<html xmlns="http://www.w3.org/1999/xhtml">');
musicwin.document.write('\n<head>');
musicwin.document.write('\n<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />');
musicwin.document.write('\n<title>test2</title>');
musicwin.document.write('\n<style type="text/css">');
musicwin.document.write('\nhtml, body {');
musicwin.document.write('\nmargin:0;');
musicwin.document.write('\npadding:0;');
musicwin.document.write('\nborder:0;');
musicwin.document.write('\nbackground:#000;');
musicwin.document.write('\ncolor:#FFF;');
musicwin.document.write('\n}');
musicwin.document.write('\n</style>');
musicwin.document.write('\n</head>');
musicwin.document.write('\n<body>');
musicwin.document.write('\n<div id="music">');
musicwin.document.write('\n<object width="320" height="120"');
musicwin.document.write('\n classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"');
musicwin.document.write('\n codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"');
musicwin.document.write('\n type="application/x-oleobject">');
musicwin.document.write('\n <param name="url" value="'+url+'">');
musicwin.document.write('\n <param name="uiMode" value="full">');
musicwin.document.write('\n <param name="autoStart" value="true">');
musicwin.document.write('\n <param name="playCount" value="9999">');
musicwin.document.write('\n <embed type="application/x-mplayer2"');
musicwin.document.write('\n pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"');
musicwin.document.write('\n showcontrols="true" uimode="full" width="320" height="120"');
musicwin.document.write('\n src="'+url+'" autostart="1" playcount="9999">');
musicwin.document.write('\n</object>');
musicwin.document.write('\n</div>');
musicwin.document.write('\n</body>');
musicwin.document.write('\n</html>');
musicwin.document.close();
musicwin.focus();
}
</script>
</head>
<body>
<a href="somesong.mp3" onclick="openPlayer(this.href);return false">Song 1</a>
</body>
</html>
test2.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script type="text/javascript">
if(!opener)
{
window.location = 'test.html';
}
</script>
</head>
<body>
</body>
</html>
Tiffany2006
03-19-2006, 04:43 AM
Thank you so much, _Aerospace_Eng_ !
I actually read all the pages in here, and I find alot of music codes I've been searching for all these time. You're awesome.
Aerospace_Eng
Thanks so much for your great code. Could we eliminate the test2.html?
Why the window.location = 'test.html" ?
Thanks in advance.
test2.html
....
if(!opener)
{
window.location = 'test.html';
}
</script>
</head>
<body>
</body>
</html>
_Aerospace_Eng_
03-24-2006, 09:28 AM
It checks to see that the page was opened by using a popup. If its not then it redirects to the page with the popup.
Spineless77
03-26-2006, 02:42 AM
First embed:
<OBJECT target="_blank" id="NSPlay" width="295" height="125" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Media Player compnents..." type="application/x-oleobject">
<PARAM name="AudioStream" value="-1">
<PARAM name="AutoSize" value="0">
<PARAM name="AutoStart" value="0">
<PARAM name="AnimationAtStart" value="0">
<PARAM name="AllowScan" value="-1">
<PARAM name="AllowChangeDisplaySize" value="-1">
<PARAM name="AutoRewind" value="0">
<PARAM name="Balance" value="0">
<PARAM name="BaseURL" value>
<PARAM name="BufferingTime" value="30">
<PARAM name="CaptioningID" value>
<PARAM name="ClickToPlay" value="-1">
<PARAM name="CursorType" value="0">
<PARAM name="CurrentPosition" value="-1">
<PARAM name="CurrentMarker" value="0">
<PARAM name="DefaultFrame" value>
<PARAM name="DisplayBackColor" value="0">
<PARAM name="DisplayForeColor" value="16777215">
<PARAM name="DisplayMode" value="0">
<PARAM name="DisplaySize" value="4">
<PARAM name="Enabled" value="-1">
<PARAM name="EnableContextMenu" value="-1">
<PARAM name="EnablePositionControls" value="-1">
<PARAM name="EnableFullScreenControls" value="0">
<PARAM name="EnableTracker" value="-1">
<PARAM name="Filename" value="http://www.tac9.com/tac9boston.asx">
<PARAM name="InvokeURLs" value="-1">
<PARAM name="Language" value="-1">
<PARAM name="Mute" value="0">
<PARAM name="PlayCount" value="1">
<PARAM name="PreviewMode" value="0">
<PARAM name="Rate" value="1">
<PARAM name="SAMILang" value>
<PARAM name="SAMIStyle" value>
<PARAM name="SAMIFileName" value>
<PARAM name="SelectionStart" value="-1">
<PARAM name="SelectionEnd" value="-1">
<PARAM name="SendOpenStateChangeEvents" value="-1">
<PARAM name="SendWarningEvents" value="-1">
<PARAM name="SendErrorEvents" value="-1">
<PARAM name="SendKeyboardEvents" value="0">
<PARAM name="SendMouseClickEvents" value="0">
<PARAM name="SendMouseMoveEvents" value="0">
<PARAM name="SendPlayStateChangeEvents" value="-1">
<PARAM name="ShowCaptioning" value="0">
<PARAM name="ShowControls" value="-1">
<PARAM name="ShowAudioControls" value="-1">
<PARAM name="ShowDisplay" value="-1">
<PARAM name="ShowGotoBar" value="0">
<PARAM name="ShowPositionControls" value="-1">
<PARAM name="ShowStatusBar" value="-1">
<PARAM name="ShowTracker" value="0">
<PARAM name="TransparentAtStart" value="0">
<PARAM name="VideoBorderWidth" value="0">
<PARAM name="VideoBorderColor" value="0">
<PARAM name="VideoBorder3D" value="0">
<PARAM name="Volume" value="0">
<PARAM name="WindowlessVideo" value="0"><embed target="_blank" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/downloads/contents/products/mediaplayer/" src="http://www.tac9.com/tac9boston.asx" name="NSPlay" width="295" height="125" ShowControls="1" ShowAudioControls="1" ShowPositionControls="1" ShowTracker="0" ShowStatusBar="1" AnimationAtStart="0" AudioStart="0"></OBJECT>
second embed:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript"><!--
function song(){
document.getElementById('music1').innerHTML="<embed type='application/x-mplayer2' id='music2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='"+document.getElementById('cancion').value+"' name='MediaPlayer1' width='300' height='75' controltype='2' showcontrols='1' showstatusbar='1' AutoStart='true'></embed>";
}
//-->
</script>
</head>
<div id="jukebox" style="width: 160; height: 131"><br><br>
<select id="cancion" onchange="song()" size="1">
<option value="none">::::::::::::: Select Feed :::::::::::::</option>
<option value="http://www.thebravest.com/FDNY Manhattan LIVE.m3u">Manhattan -
Squad 18</option>
<option value="http://www.thebravest.com/FDNY Brooklyn LIVE.m3u">Brooklyn -
Squad 1</option>
<option value="http://www.thebravest.com/FDNY Citywide LIVE.m3u">Citywide -
Marine Co. 6</option>
<option value="http://www.thebravest.com/FDNY Queens LIVE.m3u">Queens - Squad
228</option>
<option value="http://www.thebravest.com/FDNY DaBronx LIVE.m3u">Da Bronx -
Squad 61</option>
</select><br>
<span id="music1"><embed type="application/x-mplayer2" id="music1"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
src=""
name="MediaPlayer1"
width="300"
height="70"
controltype="2"
showcontrols="1"
showstatusbar="1"
AutoStart="0">
</span>
</div>
</html>
I've placed these two players (one m3u, one asx) in a table together...(but each in different cells) one always seems to end up null...
any ideas? :mad:
adlohmeyer
03-28-2006, 07:00 PM
:confused: I am very new to HTML coding and I was wondering if anyone could write me a code (or point me in the right direction) to embed Windows Media Player into a Webpage. I would like it to have a functional playlist that you can select different videos not just see what is in the queue. I also wanted to know if the playlist code can be written so that I can just insert the videos' URL (*.asx) I need this to all be in HTML or CSS if possible. Thanks for anything you can do to help! :D
lupes
04-04-2006, 02:44 PM
I just spent the best part of 4 hours reading this whole thread!
I came here with like 5 problems and i'm leaving with 5 billion solutions, i don't know which one to use i'm so spoilt for choice.
Aerospace, full credit to you.
_Aerospace_Eng_
04-04-2006, 02:54 PM
I appreciate you reading the thread rather than asking a question thats been asked and answered before.
thefancyway
04-06-2006, 04:42 AM
That script is the BEST thing ever! Thank you SO much for sharing that! We used it on our site - http://www.officialalproductions.com - and it works PERFECTLY. It really came in handy and we just wanted to say thank you and good job! :thumbsup:
do what have the drop down menu change the song of the player? its just simple javascript, i've been teaching myself javascript, and i know how certain things work and what not, but being pretty good in C Programming other programming languages come naturally to me, i've said i would make this cross browser functional just haven't had the time yet, i write a script thought that does the same thing but it doesn't use the object tag it uses the embed tag, here is one that works on most browsers that are on a windows OS, that have windows media player
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript"><!--
function song(){
document.getElementById('music1').innerHTML="<embed type='application/x-mplayer2' id='music2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='"+document.getElementById('cancion').value+"' name='MediaPlayer1' width='300' height='75' controltype='2' showcontrols='1' showstatusbar='1' AutoStart='true'></embed>";
}
//-->
</script>
</head>
<div id="jukebox">JUKEBOX<br><br>
<select id="cancion" onchange="song()" size="1">
<option value="none">::::::::::::: Choose Your Song Here :::::::::::::</option>
<option value="http://urltosong1.mp3">Song 1</option>
<option value="http://urltosong2.mp3">Song 2</option>
<option value="http://urltosong3.mp3">Song 3</option>
<option value="http://urltosong4.mp3">Song 4</option>
<option value="http://urltosong5.mp3">Song 5</option>
<option value="http://urltosong6.mp3">Song 6</option>
<option value="http://urltosong7.mp3">Song 7</option>
<option value="http://urltosong8.mp3">Song 8</option>
<option value="http://urltosong9.mp3">Song 9</option>
<option value="http://urltosong10.mp3">Song 10</option>
</select><br>
<span id="music1"><embed type="application/x-mplayer2" id="music1"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
src=""
name="MediaPlayer1"
width="300"
height="70"
controltype="2"
showcontrols="1"
showstatusbar="1"
AutoStart="0">
</embed></span>
</div>
</body>
</html>
for some strange reason for it to work in the gecko browsers the value to the song file has to be absolute
Boerie
04-06-2006, 01:57 PM
Maybe you should take a look Radio FM - http://www.radiofm.nl
They use a very nice script for selecting live audio streams. I presume it is useful for select or Input/Radio.
Boerie
_Aerospace_Eng_
04-06-2006, 02:00 PM
It still uses the windows media player plugin so its no different.
Carol Clark
04-07-2006, 08:31 PM
This is a question for _Aerospace_Eng_
I've read through many of the posts in this thread and your code has been immensely helpful, but I have 2 issues I still need help with:
Issue 1: When the page opens, the table where the movie will play is blank and there's a space between the controls and the bottom of the table.
-- What I'd like: When the page opens, the table will show the first frame of the first movie on the list to the left of the table. The controls will fit at the bottom of the table with no extra vertical space.
Issue 2: When I click on one of the text links to the left of the movie display table, the table elongates and there's a black space between the top edge of the table and the top of the movie.
-- What I'd like: For the table to stay the same size (320 x 290) when the page first opens and when each of the movies play. No black space between the top edge of the table and the top of the movie.
Thanks in advance for your help!
Carol
--------------------
Here's the code for this page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Welcome to Chris Johnson Video Productions!</title>
<script type="text/javascript">
<!--
function PlayIt(what){
document.getElementById('music').innerHTML='<object width="320" height="320" '
+'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="url" value="'+what+'">'
+'<param name="uiMode" value="full">'
+'<param name="autoStart" value="true">'
+'<param name="loop" value="false">'
+'<param name="ShowControls" value="True">'
+'<param name="ShowStatusBar" value="True">'
+'<param name="ShowDisplay" value="False">'
+'<param name="AutoRewind" value="True">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'showcontrols="true" uimode="full" width="320" height="290" '
+'src="'+what+'" autostart="true" loop="true">'
+'<\/object>';
}
//-->
</script>
<style type="text/css">
<!--
a:link {
text-decoration: none;
color: #FFCC00;
}
a:visited {
text-decoration: none;
color: #FFCC00;
}
a:hover {
text-decoration: none;
color: #598BFF;
}
a:active {
text-decoration: none;
color: #FFCC00;
}
-->
</style>
<style type="text/css">
<!--
body {
background-color: #000000;
margin-left: 0px;
}
.style1 {
font-size: 10px;
font-weight: bold;
}
.style2 {font-size: 10px}
.style3 {
color: #FFCC00;
font-weight: bold;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
</head>
<body link="#FFCC00" vlink="#FFCC00" alink="#FFCC00" topmargin="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td colspan="4"><img src="images/logo02.jpg" width="761" height="270"></td>
</tr>
<tr>
<td width="122" align="center" valign="middle"> </td>
<td width="320" align="center" valign="middle"><span class="style1"><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif"><span class="style2"> </span></font></span></td>
<td align="left" valign="top"> </td>
<td align="left" valign="top"> </td>
</tr>
<tr>
<td width="122" align="left" valign="top"> </td>
<td width="320" height="290" align="left" valign="top"><br>
<br>
<p class="style3"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> <br>
View a sample video clip:</font></p>
<blockquote>
<p><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://www.agilityaction.com/videos/2006_04/01.wmv" onclick="PlayIt(this.href);return false">Stuart and Ania's wedding</a></font></p>
<p><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://www.agilityaction.com/videos/2006_04/02.wmv" onclick="PlayIt(this.href);return false">Fred Mayberry's retirement dinner</a></font></p>
<p><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://www.agilityaction.com/videos/2006_04/03.wmv" onclick="PlayIt(this.href);return false">Acme Machine Works Corporate Video</a></font></p>
</blockquote>
<p><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">If you are considering preserving your special event on video for the future, or need help organizing your video project, please <a href="contact.html"><strong>contact us</strong></a>.</font></p></td>
<td width="35" align="left" valign="top"> </td>
<td width="483" height="290" align="left" valign="top"><table width="320" height="290" border="1" cellpadding="0" cellspacing="3" bordercolor="#FFCC00">
<tr>
<td><span id="music">
<object
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" name="player" width="320" height="290" hspace="0" vspace="0" id="player">
<param name="url" value="">
<param name="uiMode" value="full">
<param name="autoStart" value="true">
<param name="loop" value="false">
<param name="ShowControls" value="True">
<param name="ShowStatusBar" value="True">
<param name="ShowDisplay" value="False">
<param name="AutoRewind" value="True">
<embed
src="" width="320" height="290" hspace="0" vspace="0" autostart="true" loop="false" type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="true" uimode="full" name="player"></embed>
</object></span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" valign="middle"> </td>
<td width="320" align="center" valign="middle"><span class="style1"><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif"><span class="style2"> </span></font></span></td>
<td align="left" valign="top"> </td>
<td align="left" valign="top"><span class="style2"><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif">Mac Users: Download the free Windows Media Player</font></span><span class="style1"><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif"> <a href="http://www.microsoft.com/windows/windowsmedia/software/Macintosh/osx/default.aspx">HERE</a><span class="style2"><br>
</span></font></span></td>
</tr>
<tr align="center" valign="top">
<td colspan="4"><font color="#FFCC00" size="1" face="Verdana, Arial, Helvetica, sans-serif"><br>
<br>
©2006 Chris Johnson Video Productions. All rights reserved. Site design by <a href="http://www.cdclark.com/" target="_blank">CDClark Web Development.</a></font></td>
</tr>
</table>
<br>
<br>
</body>
</html>
Carol Clark
04-07-2006, 08:49 PM
_Aerospace_Eng_,
I came up with a compromise that works for me for this web site:
-- No gold border around the table
-- Changed "uiMode" param from "full" to "none"
-- Changed "ShowControls" and "ShowStatusBar" params from "True" to "False"
If you have any insights to my earlier post, I'd still appreciate a response.
Thanks so much.
Carol
_Aerospace_Eng_
04-08-2006, 12:33 AM
Issue 1
That is a browser issue nothing you can do. As for the first frame playing you might need to use an asx file but I don't know how to do it.
Issue 2
Your markup is bad. Its table ridden, and you use the font tag. Tables aren't for web layout, they are to display data. The font tag is old and shouldn't be used.
Carol Clark
04-08-2006, 12:38 AM
Issue 1
That is a browser issue nothing you can do. As for the first frame playing you might need to use an asx file but I don't know how to do it.
Issue 2
Your markup is bad. Its table ridden, and you use the font tag. Tables aren't for web layout, they are to display data. The font tag is old and shouldn't be used.
Issue 1: Resolved since I'm no longer using a border around the table.
Issue 2: Can you direct me somewhere so I can relearn how to do HTML? Am I supposed to be using CSS exclusively now?
Carol
_Aerospace_Eng_
04-08-2006, 12:44 AM
Issue 2: Can you direct me somewhere so I can relearn how to do HTML? Am I supposed to be using CSS exclusively now?
Carol
Yes and yes. I like this site http://bonrouge.com/br.php?page=home
especially the CSS Layouts section. I also like www.htmldog.com and www.w3schools.com/css
This site is good for floating http://css.maxdesign.com.au/floatutorial/
Carol Clark
04-08-2006, 12:46 AM
Yes and yes. I like this site http://bonrouge.com/br.php?page=home
especially the CSS Layouts section. I also like www.htmldog.com and www.w3schools.com/css
This site is good for floating http://css.maxdesign.com.au/floatutorial/
Very helpful. Thanks!
Carol
flerd
04-18-2006, 04:25 PM
Hi Aero,
i think you've heard about this:
http://www.amarasoftware.com/flash-problem.htm
i tried to solve this problem as it is recomended on this website... and it works for flash objects and other objects which are in the HTML file.
My problem is that i have embaded player which is in a function, and i can't figure out how to solve this problem with these objects.
here is my code:
function PlayItvideo1(thevideo){
clearMus(thevideo);
clearVid2(thevideo);
document.getElementById("video1").innerHTML='<object id="mediaPlayer" width="320" height="285" '
+'classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" '
+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="fileName" value="'+thevideo+'">'
+'<param name="autoStart" value="1">'
+'<param name="showControls" value="1">'
+'<param name="Volume" value="1000">'
+'<param name="loop" value="1">'
+'<PARAM NAME="ShowTracker" VALUE="1">'
+'<param name="ShowStatusBar" value="0">'
+'<param name="ShowPositionControls" value="0">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'ShowPositionControls="0" '
+'ShowTracker="1" '
+'ShowStatusBar="0" '
+'Volume="1000" '
+'showcontrols="true" width="320" height="285" '
+'src="'+thevideo+'" '
+'autoStart="1" '
+'loop="1" '
+'</embed>'
+'</object>'
}
it is used on this site:
http://www.egonanddonci.com/
have you got any ideas how to solve it? i guess you have ;)
Thank you in advance.
flerd
_Aerospace_Eng_
04-18-2006, 04:43 PM
This thread might help. http://www.codingforums.com/showthread.php?t=82694
good luck.
flerd
04-19-2006, 12:27 AM
This thread might help. http://www.codingforums.com/showthread.php?t=82694
good luck.
thank you Aero!
i've read the thread, and i've tried a few ideas, ways out but i couldn't solve it.
i'm thinking about someting like this.
i've made a ieupdate_emb.js file:
// JavaScript Document
function embupdate()
{
theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
}
}
i also put this line in the <head>:
<script type="text/javascript" src="ieupdate_emb.js"></script>
and my function looks like this:
function PlayItvideo1(thevideo){
clearMus(thevideo);
clearVid2(thevideo);
document.getElementById("video1").innerHTML='<object id="mediaPlayer" width="320" height="285" '
+'classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" '
+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="fileName" value="'+thevideo+'">'
+'<param name="autoStart" value="1">'
+'<param name="showControls" value="1">'
+'<param name="Volume" value="1000">'
+'<param name="loop" value="1">'
+'<PARAM NAME="ShowTracker" VALUE="1">'
+'<param name="ShowStatusBar" value="0">'
+'<param name="ShowPositionControls" value="0">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'ShowPositionControls="0" '
+'ShowTracker="1" '
+'ShowStatusBar="0" '
+'Volume="1000" '
+'showcontrols="true" width="320" height="285" '
+'src="'+thevideo+'" '
+'autoStart="1" '
+'loop="1" '
+'</embed>'
+'</object>'
embupdate();
}
Everytime i call my "PlayItvideo1(thevideo);" function it creats the embaded player and there is no "click to activate...", but the video/song doesn't start in the media player... somehow i should give the "thevideo" value to the new embaded player which is created by the embupdate(); function... but i don't know how... please if you have any idea share it with me... i'm so close to finish it, but i have no more ideas.. :(
thank you.
flerd
flerd
04-20-2006, 11:21 PM
i have done it :cool:
i put my function in an external .js file and called the function from there... and it works fine and no "click to activate..." thing... :)
i'm happy now :) i just wanted to let you know :thumbsup:
www.egonanddonci.com (http://www.egonanddonci.com)
www.aenimacgs.com (http://www.aenimacgs.com/web/index2.htm)
earlcebu
04-28-2006, 10:59 AM
wow this forum is amazing , I am just a newbie here and when i read the forum , seems that everybody is happy :)
Is anybody there who can help me with my coding prob .
my current script is working which is
<OBJECT ID="MediaPlayer1" width=320 height=240
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="http://www.wowphilippines.com.ph/media_source/byahetayo.wmv">
<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="http://www.wowphilippines.com.ph/media_source/byahetayo.wmv"
name="MediaPlayer1"
width=160
height=162
AutoStart=true>
</EMBED>
</OBJECT>
however I need to add these parameters so that i can play this streaming music file after that video by creating a pop up window with media player in it
the address is mms://xxxx.xxxx xxxxx
and while playing that file i need to embed a flash website
address which is
www.xxxxx.xxx
Hope to hear from somebody out there who is willing to help . Thanks a lot .
Earl
I am trying to live streaming the music directly from my computer on my website. The problem I have is that apart from my computer, nobody else's seems to be able to access my live streaming audio which I have embedded on the website. My friends said they coudn't connect. I am using Windows Media Encoder for the live streaming. Is it to with my firewall? I tried changing to different ports but still it wouldn't let them connect.
Also, how to show the information of the songs that I am currently playing onto the embedded media player?
Below is the code I currently have on the website.
Thanks!! :thumbsup:
<html>
<center>
<head>
<title>Freakz FM Live</title>
</head>
<body bgcolor="#ccff99">
<b>Freakz FM Live</b>
<br>
<!-- BEGIN GENERIC ALL BROWSER FRIENDLY HTML FOR WINDOWS MEDIA PLAYER -->
<object id="MediaPlayer1" width=70 height=230
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft� Windows� Media Player components..."
type="application/x-oleobject" align="middle">
<param name="FileName" value="Server/file">
<param name="ShowStatusBar" value="1">
<param name="DefaultFrame" value="mainFrame">
<embed type="application/x-mplayer2"
pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
src="http://192.168.38.2:1777/" align="middle"
width=176
height=144
defaultframe="rightFrame"
showstatusbar=true>
</embed>
</object> <!-- END GENERIC ALL BROWSER FRIENDLY HTML FOR WINDOWS MEDIA PLAYER --><br>
</body>
</html>
earlcebu
05-02-2006, 07:25 PM
hello tatt , are you using a router ? then you should allow your local pc ip to pass through the router and open your set port . If you have a linksys /cisco router then go to Apllications and Gaming then click port range forward and input the port and the local ip address of the pc with media encoder . Just wondering also if you are using a dynamic or static ip?
hello tatt , are you using a router ? then you should allow your local pc ip to pass through the router and open your set port . If you have a linksys /cisco router then go to Apllications and Gaming then click port range forward and input the port and the local ip address of the pc with media encoder . Just wondering also if you are using a dynamic or static ip?
Hi earlcebu,
Indeed I am using a Netgear router. I haven't a clue how to allow the local pc ip to pass thru the router or open set port. :confused: How do I find out whether i'm using dynamic or static ip?
I'm super noob here. Pls help. Thanks.
earlcebu
05-02-2006, 07:58 PM
you will know that you have a dynamic ip when your ip address keeps on changing , a static ip when it will remain the same all the time .
If you have a dynamic ip , you need to get a client like at www.dydns.org or www.noip.com so that it will update your ip automatically , so it will work this way ex ... when your ip is http://192.168.38.2 and will always change to any number , your downloaded client will say to dydns.org that it changed again . when youve got an account with dyndns , your address will be the same all the time and it will go this way http://youraccount.dyndns.org:1777
Pls go to www.dyndns.org for more info . Sorry I am not familiar with netgear , just try to ring the Netgear for product support .
Ive got yahoo if you'd like to talk to me via IM : earlcebu
earl
Anyway, thanks for all your info, earl!
earlcebu
05-02-2006, 08:14 PM
you're welcome :thumbsup:
Mistawicket
05-04-2006, 09:54 PM
Hi! 1st time poster on the boards here & this topic is right the alley of the project I'm working on. I wouldn't mind using an embedded media player for my site, but I don't want users to see the file path using properties, or have tha ability to save to their HD's using Save or save as in the file menu. It looks like changing the hight of the player will allows to cover up the file menu...
So I'm wondering how do you disable the properties option in the right click menu.
Thanks in advance & great work!
_Aerospace_Eng_
05-05-2006, 12:51 AM
<param name="EnableContextMenu" value="false">
Mistawicket
05-05-2006, 02:42 PM
You are a newbies blessing! Thanks! :D
I'd like to know whether there are any other ways for broadcasting streaming audio on a website without having to use something like Windows Media Encoder? Coz I have a problem of people not able to access through my firewall coz i'm using a router, and it's too compilcated for me to set or forward ports etc. :confused:
Thanks.:(
fase_xi
05-18-2006, 07:23 AM
boy, what a looooonnnnngggg thread..............
_Aerospace_Eng_
05-18-2006, 07:24 AM
Tell me about it, now are you just saying that just because you felt it was necessary even though it probably wasn't or were you actually reading the whole thing tyring to find an answer?
highland
05-25-2006, 02:22 AM
I started a new thread 5 days ago and have not received any responses to my question... So I'm asking it here... Hope someone can help me with this...
Aerospace helped be before with a similar Windows Media Player question.... But it seems I can't apply that coding to FLASH...
Can anyone help me with this? The code below, for FLASH VIDEOS, allows visitors to my web page to watch ONE video that is loaded. I want to give them a choice of videos to watch via a DROPDOWN WINDOW... I'm a novice at this and only know the very basics. Does anyone know the HTML Code to add to the code below to make this happen? Thanks in advance !!!
<OBJECT ID="SWFlash" CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" data="http://www.youtube.com/v/dY7c5nc3yTA&autplay=1"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=2,0,0,11"
width=425 height=350 align=center>
<param NAME="Movie" VALUE="http://www.youtube.com/v/dY7c5nc3yTA&autoplay=1">
<param NAME="Play" VALUE="True">
<param NAME="Loop" VALUE="True">
<param NAME="Quality" VALUE="High">
<param NAME="Scale" VALUE="ShowAll">
<param NAME="SAlign" VALUE="TR">
<param NAME="BGColor" VALUE="808080">
<param NAME="Menu" VALUE="true">
</OBJECT>
If there is a smiley face after "CLSID" above, I have no clue as to why its being added there when I post this question...lol.... It just keeps popping up.. In any case... the CLSID should read as follows: D27CDB6E-AE6D-11cf-96B8-444553540000 ... It's taking the "COLON AND THE D (: D = :D ) and changing into a smiley face...weird... but funny...
I have embeded a media player on my website. All I want to do is to broadcast live to it (and I know how to do that already). The thing is that I would like the embedded player to show songs/broadcast info so people can see what they are listening to and who is the broadcaster. Would someone please paste me the code for the whole embedded player with songs info?
I really appreciate it, thanks.
telekinhack
05-25-2006, 10:41 PM
I have been looking for a code an finally I found one that lets me pick the actuall song. I had one question with the code below that I use now, It there a way for the first song to start automatically when the web page loads. Thanks
<div align=center>
<SELECT id=cancion onchange=document.all.music.filename=document.all.cancion.value; size=1 name=Music>
<OPTION selected>::::::::::::: Choose Your Song Here :::::::::::::</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
<OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
</SELECT><BR>
<OBJECT id=music height=44 width=230 classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95>
<PARAM NAME="AutoStart" VALUE="-1">
<PARAM NAME="Balance" VALUE="0">
<PARAM NAME="DisplaySize" VALUE="0">
<PARAM NAME="Filename" VALUE="">
<PARAM NAME="Mute" VALUE="0">
<PARAM NAME="SelectionStart" VALUE="-1">
<PARAM NAME="SelectionEnd" VALUE="-1">
<PARAM NAME="ShowControls" VALUE="-1">
<PARAM NAME="ShowAudioControls" VALUE="-1">
<PARAM NAME="ShowDisplay" VALUE="0">
<PARAM NAME="ShowPositionControls" VALUE="-1">
<PARAM NAME="Volume" VALUE="0">
<PARAM NAME="AudioStream" VALUE="-1">
<PARAM NAME="AutoSize" VALUE="0">
<PARAM NAME="AnimationAtStart" VALUE="-1">
<PARAM NAME="AllowScan" VALUE="-1">
<PARAM NAME="AllowChangeDisplaySize" VALUE="-1">
<PARAM NAME="AutoRewind" VALUE="1">
<PARAM NAME="BaseURL" VALUE="">
<PARAM NAME="BufferingTime" VALUE="5">
<PARAM NAME="CaptioningID" VALUE="">
<PARAM NAME="ClickToPlay" VALUE="-1">
<PARAM NAME="CursorType" VALUE="0">
<PARAM NAME="CurrentPosition" VALUE="-1">
<PARAM NAME="CurrentMarker" VALUE="0">
<PARAM NAME="DefaultFrame" VALUE="">
<PARAM NAME="DisplayBackColor" VALUE="0">
<PARAM NAME="DisplayForeColor" VALUE="16777215">
<PARAM NAME="DisplayMode" VALUE="0">
<PARAM NAME="Enabled" VALUE="-1">
<PARAM NAME="EnableContextMenu" VALUE="-1">
<PARAM NAME="EnablePositionControls" VALUE="-1">
<PARAM NAME="EnableFullScreenControls" VALUE="0">
<PARAM NAME="EnableTracker" VALUE="-1">
<PARAM NAME="InvokeURLs" VALUE="-1">
<PARAM NAME="Language" VALUE="-1">
<PARAM NAME="PlayCount" VALUE="1">
<PARAM NAME="PreviewMode" VALUE="0">
<PARAM NAME="Rate" VALUE="1">
<PARAM NAME="SAMILang" VALUE="">
<PARAM NAME="SAMIStyle" VALUE="">
<PARAM NAME="SAMIFileName" VALUE="">
<PARAM NAME="SendOpenStateChangeEvents" VALUE="-1">
<PARAM NAME="SendWarningEvents" VALUE="-1">
<PARAM NAME="SendErrorEvents" VALUE="-1">
<PARAM NAME="SendKeyboardEvents" VALUE="0">
<PARAM NAME="SendMouseClickEvents" VALUE="0">
<PARAM NAME="SendMouseMoveEvents" VALUE="0">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="-1">
<PARAM NAME="ShowCaptioning" VALUE="0">
<PARAM NAME="ShowGotoBar" VALUE=0">
<PARAM NAME="ShowStatusBar" VALUE="0">
<PARAM NAME="ShowTracker" VALUE="-1">
<PARAM NAME="TransparentAtStart" VALUE="-1">
<PARAM NAME="VideoBorderWidth" VALUE="0">
<PARAM NAME="VideoBorderColor" VALUE="0">
<PARAM NAME="VideoBorder3D" VALUE="0">
<PARAM NAME="WindowlessVideo" VALUE="0">
</OBJECT>
</div>
_Aerospace_Eng_
05-25-2006, 10:48 PM
Find the param for FILENAME and put the song in the src value there. I would like to add that the code you are using will only work in Internet Explorer. Its rather outdated. Search for an updated one, the updated ones have something that look like this
CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6
Notice the numbers and letters, they are different than the one you are currently using.
telekinhack
05-25-2006, 11:07 PM
THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU
I have been trying to get a code to work for 5 hours, I looked through 10 different ones.
I needed one that
1- Started a song automatically
2- let you pic a song from a list
9 of the 10 only let me do either 1 or 2
yours is the first one that let me do both, THANK YOU THANK YOU THANK YOU
I have embeded a media player on my website. All I want to do is to broadcast live to it (and I know how to do that already). The thing is that I would like the embedded player to show songs/broadcast info so people can see what they are listening to and who is the broadcaster. Would someone please paste me the code for the whole embedded player with songs info?
I really appreciate it, thanks.
This is the code I have at the moment:
<script language="JavaScript">var PUpage="76001548"; var PUprop="geocities"; </script><script language="JavaScript" src="http://www.geocities.com/js_source/pu5geo.js"></script><script language="JavaScript"> var thGetOv="http://themis.geocities.yahoo.com/themis/h.php"; var thCanURL="http://us.geocities.com/freakzfm/index.html"; var thSpaceId="76001548"; var thIP="81.170.10.163"; var thTs="1148581725"; var thCs="de2a68cd765ed8a9156d96f4fd1920a3";</script><noscript><link rel="stylesheet" href="http://themis.geocities.yahoo.com/jsoff.css?thIP=81.170.10.163&thTs=1148581725"></noscript><script language="JavaScript" src="http://us.geocities.com/js_source/geovck08.js"></script>
<!-- text above generated by server. PLEASE REMOVE -->
<html>
<center>
<head>
<title>Freakz FM Live</title>
</head>
<body bgcolor="#ccff99">
<b>Freakz FM Live</b>
<br>
<!-- BEGIN GENERIC ALL BROWSER FRIENDLY HTML FOR WINDOWS MEDIA PLAYER -->
<OBJECT id=music height=70 width=230 classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95>
<param name="FileName" value="http://freakzfm.kicks-***.net:51000">
<param name="AutoStart" value="0">
<param name="ShowStatusBar" value="1">
<param name="DefaultFrame" value="mainFrame">
<embed type="application/x-mplayer2"
pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
src="http://freakzfm.kicks-***.net:51000" align="middle"
width=230
height=70
defaultframe="rightFrame"
showstatusbar=true>
</embed>
</object><!-- text below generated by server. PLEASE REMOVE --></object></layer></div></span></style></noscript></table></script></applet>
<link href="http://us.geocities.com/js_source/div.css" rel="stylesheet" type="text/css"><script language="JavaScript" src="http://us.geocities.com/js_source/div03.js"></script><script language="JavaScript" src="http://us.i1.yimg.com/us.yimg.com/i/mc/mc.js"></script><script language="JavaScript" src="http://geocities.com/js_source/geov2.js"></script><script language="javascript">geovisit();</script><noscript><img src="http://visit.geocities.yahoo.com/visit.gif?us1148581725" alt="setstats" border="0" width="1" height="1"></noscript>
<IMG SRC="http://geo.yahoo.com/serv?s=76001548&t=1148581725&f=us-w83" ALT=1 WIDTH=1 HEIGHT=1>
Please help me how to show song info on the embedded player. :)
dresas
05-27-2006, 10:05 PM
How do I access a specific entry in an asx file. I want users to be able to click on videos they want to see, instead of pressing next in the playlist.
That video should than appear in the embeded video.
Does anyone know how to do this?
_Aerospace_Eng_
05-27-2006, 10:09 PM
Yeah you need to actually read this thread.
dresas
05-28-2006, 02:27 PM
Hi there!
I have read the entire 32 pages know, and I can see a solution to my question, but it seams like I have bean pretty bad to explain what I was looking for.
1 My embeded player opens a playlist and plays it when the page start.
2 I can switch between the videos in the list by clicking next
3a I have utilized the code from post 67, so that the link opens in the player.
3b The link is the same as the link in the entry in the playlist
BUT
I do not wish to link to the asf file directly, but to the entry.
This is so that when the video has finnished it continues with the next entry in the list.
This is also so that the information about the asf file that is entered in the asx file is shown in the embeded player.
I know I can make an asx file for each asf file and link to that, but it is not that easy when I have more than 100 files. Time consuming.
So my question is:
Is there a way skip for example, from entry no 2 to entry no 6, and then let the playlist continue?
The post I have read are very close to the solution, but not as close as I want.
I found a page that adress this issue on an other site, but when I tried to implement that code it did not work. I got an "error on page" down on the left of the statusbar in IE.
This is the page I am refering to: http://www.mcse.ms/archive220-2004-8-915549.html
I hope that this clearified my question, and that it is possible to do this?
Kind regards Andreas Lindqvist
cleancutconnect
05-28-2006, 06:49 PM
Hi i have been searching and not yet found a way for people to submit a link ie. a link where a certain mp3 is stored e.g http:www.yoursite.com/yoursong.mp3 ,and then that link automaticaly added to the playlist of the embed player:o
so then a user based player is built up and with the drop down menu users can listen to each others songs,
i know it sounds complicated but i am sure this code is avalible,
thanks in advance,
ps. i know this is asking a bit much but if the songs submitted could sorted in alphbetical order this would be of much help:thumbsup:
Ajaxx
05-29-2006, 05:27 PM
Will that only work with audio files? Could I use that same code snippet to allow the selection of various vedio files?? I have a request for help on this but no help so far so any sugggestions would be greatly appreciated.
thanks
sam8599
05-29-2006, 09:02 PM
I was looking for some help with modification to the script.
Basically I have 2 streams (filenames) with "64.asx' & "prem.asx'
<SELECT id=cancion onchange=document.all.music.filename=document.all.cancion.value; size=1 name=Music>
<option> </option>
<option value="64.asx" > » unreg</option>
<option value="prem.asx" > » prem</option>
</select>
What I want is that on the fly the lsitener be able to change the stream
<OBJECT ID="music"
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
STANDBY="Loading Microsoft Windows Media Player components..." TYPE="application/x-oleobject" WIDTH="320" HEIGHT="25" VIEWASTEXT>
<PARAM NAME="Filename" VALUE="">
<PARAM NAME="AllowChangeDisplaySize" VALUE="1">
<PARAM NAME="AnimationAtStart" VALUE="0">
<PARAM NAME="AutoStart" VALUE="1">
<PARAM NAME="Autosize" VALUE="0">
<PARAM NAME="Width" VALUE="200">
<PARAM NAME="Height" VALUE="15">
......
<EMBED TYPE="application/x-mplayer2" SRC="??.asx" NAME="MediaPlayer"
PLUGINSPAGE="http://windowsmedia.com/download/download.asp"
AllowChangeDisplaySize="1"
AnimationAtStart="0"
AutoStart="1"
Autosize="0"
...
WIDTH="300"
HEIGHT="25">
</EMBED>
</OBJECT>
Please help me to how I can change the stream on the fly. Also by default it will launch 64.asx on launch and then the listener can change as desired.
I would be using the player across each browser.
TIA.
sam8599
05-30-2006, 04:49 PM
Hi All,
I have been able to put the code together with toggle option with <object></object>
What I need help is
1. How to include <embed></embed> to make it browser friendly
2. How to make the player launch with autostart with 64.asx and then have an option to change the stream
3. Any ideas how the same can be implemented for Real Player
<HTML>
<Head>
<Script type="text/javascript">
function playAudio(URL){
if (URL != ""){document.Player.filename = URL}
}
</Script>
</Head>
<Body>
<Table align='center' cellpadding='5'>
<TR>
<TD align='right'>
<Select name='audioList' onchange="playAudio(this.value)">
<option selected value=""> Choose One </option>
<option value="64.asx"> 24K </option>
<option value="prem.asx"> 24K(P) </option>
</Select>
</TD>
<TD>
<OBJECT ID="Player" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" STANDBY="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject" WIDTH="320" HEIGHT="25" VIEWASTEXT>
<PARAM NAME="AllowChangeDisplaySize" VALUE="1">
<PARAM NAME="AnimationAtStart" VALUE="0">
<PARAM NAME="AutoStart" VALUE="1">
<PARAM NAME="Autosize" VALUE="0">
<PARAM NAME="Width" VALUE="200">
<PARAM NAME="Height" VALUE="15">
<PARAM NAME="TransparentAtStart" VALUE="1">
<PARAM NAME="ShowStatusBar" VALUE="">
<PARAM NAME="ShowSeekBar" VALUE="0">
<PARAM NAME="ShowDisplay" VALUE="0">
<PARAM NAME="ShowGotoBar" VALUE="0">
<PARAM NAME="ShowCaptioning" VALUE="0">
<PARAM NAME="ShowControls" VALUE="1">
<PARAM NAME="ShowAudioControls" VALUE="-1">
<PARAM NAME="ShowPositionControls" VALUE="-1">
<PARAM NAME="ShowTracker" VALUE="0">
</OBJECT>
</TD>
</TR>
</Table>
</Body>
</HTML>
The <embed></embed> code which I want to include
<EMBED TYPE="application/x-mplayer2" NAME="Player" PLUGINSPAGE="http://windowsmedia.com/download/download.asp"
AllowChangeDisplaySize="1"
AnimationAtStart="0"
AutoStart="1"
Autosize="0"
TransparentAtStart="1"
ShowStatusBar=""
ShowSeekBar="0"
ShowDisplay="0"
ShowGotoBar="0"
ShowCaptioning="0"
ShowControls="1"
ShowAudioControls="-1"
ShowPositionControls="-1"
ShowTracker="0"
CONTROLTYPE="0"
WIDTH="300" HEIGHT="25">
</EMBED>
Any help would be appreciated
UnifiedProd
06-06-2006, 11:47 AM
Hi everyone. New member here. Looked around on this forum and couldnt find something similar to my problem. Im trying to make a embeded player like the one on this site: http://www.hawaiivideomemories.com/video.html
I am trying to get a drop down menu in that style but dont know what to do. Sorry if this has already been discussed, if so could you please point me in the right direction. Any help is appreciated
Much Thanks! :)
zurnik
06-06-2006, 12:52 PM
good information, thank you guys..
vivaissy
06-06-2006, 02:13 PM
i have the following code...<object id="MediaPlayer" width=320 height=286 align="center"
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Microsoft® Windows® Media Player components..."
type="application/x-oleobject"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
<PARAM NAME="filename" VALUE="interpol_evil.mp3">
<PARAM NAME="autoStart" VALUE="false"> <PARAM NAME="showControls" VALUE="true">
<param name="ShowStatusBar" value="true"> <PARAM NAME="Autorewind" VALUE="true">
<PARAM NAME="ShowDisplay" VALUE="false">
<EMBED SRC="interpol_evil.mp3" WIDTH=320 HEIGHT=286 type="application/x-mplayer2" name=MediaPlayer autostart=1 showcontrols=0 showstatusbar=1 autorewind=1 showdisplay=0>
</EMBED>
</OBJECT>
which is a simple media player. all i want to be able to do is add more tracks to play. currently, when the play button is pressed it plays the one track. is it possible to add more tracks with this code?
thanks for your help!
issy
_Aerospace_Eng_
06-06-2006, 09:17 PM
Look into an m3u playlist.
zurnik
06-07-2006, 10:41 AM
Hi guys,
All of your posts are very helpfull.. However, I've just read all posts but I haven't seen my answer yet.
My problem: I have a web site and I put some codes so that my visitors listen to a popular radio station.. My visitors are able to listen to the radio while they're viewing index.html but when another link is clicked, the connection to the radio cut off..
So, I put these codes into all html pages in entire site.. But this time, when another page is loaded, the connection still cut off and WMP is reloaded...
How can I stick WMP on after a visitor jumps onto different pages from index.html? I just want that WMP would be loaded when a visitor come to my site and continue to listen to the radio while he's surfing on my site..
Can someone help? Here's my codes below.
<td><object id="NSPlay" name="NSPlay"
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
width=400
height=50
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,1,5,217"
standby="Loading Microsoft® Windows Media™ Player components..."
type="application/x-oleobject" align="left">
<param name='AutoStart' value='-1'>
<param name='filename' value='mms://xiphias.vargonen.net/PowerFm'>
<param name='WindowlessVideo' value='0'>
<param name='PreviewMode' value='0'>
<param name='AutoSize' value='0'>
<param name='AnimationAtStart' value='0'>
<param name='EnableContextMenu' value='0'>
<param name='ShowStatusBar' value='-1'>
<param name='ShowControls' value='-1'>
<param name='ShowAudioControls' value='-1'>
<param name='ShowPositionControls' value='0'>
<param name='ShowDisplay' value='0'>
<param name='ShowTracker' value='0'>
<param name='ShowGotoBar' value='0'>
<param name="AudioStream" value="-1">
<param name="AllowScan" value="-1">
<param name="AllowChangeDisplaySize" value="-1">
<param name="AutoRewind" value="0">
<param name="Balance" value="0">
<param name="BaseURL" value>
<param name="BufferingTime" value="3">
<param name="CaptioningID" value>
<param name="ClickToPlay" value="-1">
<param name="CursorType" value="0">
<param name="CurrentPosition" value="-1">
<param name="CurrentMarker" value="0">
<param name="DefaultFrame" value>
<param name="DisplayBackColor" value="0">
<param name="DisplayForeColor" value="16777215">
<param name="DisplayMode" value="0">
<param name="DisplaySize" value="4">
<param name="Enabled" value="-1">
<param name="EnablePositionControls" value="-1">
<param name="EnableFullScreenControls" value="0">
<param name="EnableTracker" value="-1">
<param name="InvokeURLs" value="-1">
<param name="Language" value="-1">
<param name="Mute" value="0">
<param name="PlayCount" value="1">
<param name="Rate" value="1">
<param name="SAMILang" value>
<param name="SAMIStyle" value>
<param name="SAMIFileName" value>
<param name="SelectionStart" value="-1">
<param name="SelectionEnd" value="-1">
<param name="SendOpenStateChangeEvents" value="-1">
<param name="SendWarningEvents" value="-1">
<param name="SendErrorEvents" value="-1">
<param name="SendKeyboardEvents" value="0">
<param name="SendMouseClickEvents" value="0">
<param name="SendMouseMoveEvents" value="0">
<param name="SendPlayStateChangeEvents" value="-1">
<param name="ShowCaptioning" value="0">
<param name="TransparentAtStart" value="0">
<param name="VideoBorderWidth" value="0">
<param name="VideoBorderColor" value="0">
<param name="VideoBorder3D" value="0">
<param name="Volume" value="-600">
<embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"
src="mms://xiphias.vargonen.net/PowerFm"
name="NSPlay"
width="400"
height="50"
showstatusbar="1" showcontrols="1" showdisplay="0" showgotobar="0" autosize="0" showcaptioning="0"
enabletracker="0" showtracker="0" enablecontextmenu="0" volume="0" showpositioncontrols="0" showaudiocontrols="1">
</embed>
</object></td>
_Aerospace_Eng_
06-07-2006, 10:53 AM
And its always going to be cut off because the page RELOADS. To get the effect you want you need to use some sort of frames. It may be a frameset or an iframe up to you. You will put the code in the top frame if you use a frameset or put it on the main page if you use an iframe. You will need to target the frames by giving them a name then using target="yourframename" in your links.
zurnik
06-07-2006, 12:49 PM
And its always going to be cut off because the page RELOADS. To get the effect you want you need to use some sort of frames. It may be a frameset or an iframe up to you. You will put the code in the top frame if you use a frameset or put it on the main page if you use an iframe. You will need to target the frames by giving them a name then using target="yourframename" in your links.
Thanks for your quick reply.. Isn't there any different ways to do it without frames? I mean, a couple of javascript codes can't do it?
AntoneHenry
06-07-2006, 03:17 PM
I posted this elsewhere first, but I got a lot of help from here: So let's hope this is appropriate.
So I've stayed up all night trying to figure out how to embed video playlists on my page.
I do some video blogging, so I thought if people wanted to just watch videos, I'd set up sort of a "channel" that would play all the videos I've posted.
You have to continually update your playlists, this is no simple plug-in (although if this sparks some ideas, woohooo,) this is just some embedding codes that you can play with to put all of your video/music files in a row, and have them play continuously.
Quicktime:
<object codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="395" scale="16:9"classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" height="225" ><param name="src" value="DIRECT PATH TO MEDIA" align="right"/><param name="controller" value="True" /><param name="autoplay" value="True" /><param name="cache" value="False" /><param name="kioskmode" value="False" /><param name="scale" value="tofit" /><embed src="DIRECT PATH TO MEDIA" pluginspage="http://www.apple.com/quicktime/download/" scale="tofit" kioskmode="False" qtsrc="DIERECT PATH TO MEDIA" cache="False" height="225" width="395" scale="aspect" controller="True" type="video/quicktime" autoplay="True" QTNEXT1="<DIRECT PATH TO MEDIA> T<myself>" QTNEXT2="GOTO0"></embed></object>
The first video = 0, second=1, third=2....
QTNEXTn="<DIRECT PATH TO MEDIA T<myself>"
So QTNEXTn="GOTO0"..... starts the playlist over.
Windows Media:
Make an .asx file to define your playlist. (use notepad, save as "playlist.asx")
<ASX VERSION = "3.0">
<TITLE>Title</TITLE>
<ENTRY>
<REF HREF = "DIRECT PATH TO MEDIA" />
</ENTRY>
<ENTRY>
<REF HREF = "DIRECT PATH TO MEDIA" />
</ENTRY>
<ENTRY>
<REF HREF = "DIRECT PATH TO MEDIA" />
</ENTRY>
</ASX>
Now here's your embedding code:
<!-- begin embedded WindowsMedia file... -->
<table border='0' cellpadding='0' align="left">
<tr><td>
<OBJECT id='mediaPlayer' width="395" height="275"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<param name='fileName' value="PATH TO YOUR .ASX FILE">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="true">
<param name='showControls' value="true">
<param name='loop' value="true">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="395" height="275"
src="PATH TO YOUR .ASX FILE" autostart="true" designtimesp='5311' loop="true">
</EMBED>
</OBJECT>
</td></tr>
<!-- ...end embedded WindowsMedia file -->
<!-- begin link to launch external media player... -->
<tr><td align='center'>
<a href="PATH TO YOUR .ASX FILE" style='font-size: 85%;' target='_blank'>Launch in external player</a>
<!-- ...end link to launch external media player... -->
</td></tr>
</table>
And there we go... Depending on what kind of files you have, there's both ways.
example: http://www.antonehenry.com/blog/Blogroll.php
I won't have this example up forever most likely. So if you can't find it, I started using my blogroll. haha.
Personally, I prefer quicktime for the file types, and the look of the player. But I like the controller on Windows Media, and the .asx file is what is updated so you can't screw up your embedding.
Hope this helps someone!
MY NEXT STEP IS TO GET THEM TO PLAY AT RANDOM. SO IF ANYONE HAS A TIP FOR ME THERE, I'D BE HAPPY TO GET IT.
_Aerospace_Eng_
06-07-2006, 04:53 PM
Thanks for your quick reply.. Isn't there any different ways to do it without frames? I mean, a couple of javascript codes can't do it?
Nope. Javascript has no way of knowing where a song starts or stops.
AntoneHenry
06-08-2006, 04:18 AM
Hey, any way to randomize my playlist once I've made it?
I'm using an .asx playlist, and I want my media to play at random, rather than the order I put it in.
My .asx reads like this:
<ASX VERSION = "3.0">
<TITLE>Title</TITLE>
<ENTRY>
<REF HREF = "E:\Documents\Nerd Stuff\AV Work\Videos\remote.mpg" />
</ENTRY>
<ENTRY>
<REF HREF = "E:\Documents\Nerd Stuff\AV Work\Videos\super.mpg" />
</ENTRY>
<ENTRY>
<REF HREF = "E:\Documents\Nerd Stuff\AV Work\Videos\za2.mpg" />
</ENTRY>
</ASX>
Now if I can get the <ref href="RANDOM URL FROM LIST OF URLS" /> I would would be set for my operation.
Thanks for all this forum has provided me already. This topic is king.
_Aerospace_Eng_
06-08-2006, 05:27 AM
You will probably need to use a server side script to randomly write the coding and then create and save that file as the new playlist. Do you have access to php on your server?
AntoneHenry
06-08-2006, 07:37 AM
I figured out what you meant by the php thing. I got it to work awesome for both media player and quicktime.
I just made a random url php file:
<?php
// Go to a random URL
// http://www.bloodys.com/
// email: info@bloodys.com
// If you use this script, please put a link back to http://www.bloodys.com/
$url[0] = "http://PATH TO MEDIA";
$url[1] = "http://PATH TO MEDIA";
$url[2] = "http://PATH TO MEDIA";
$url[3] = "http://PATH TO MEDIA";
$url[4] = "http://PATH TO MEDIA";
$url[5] = "http://PATH TO MEDIA";
srand ((double)microtime()*1000000);
$randomnum = rand(0, count($url)-1);
header ("Location: $url[$randomnum]");
?>
You can make this file by putting it in Notepad, and saving it as "random.php" or something of the sorts.
Then in the Embedding code, use the URL to the PHP file in the place where you would normally put the URL of the media.
I'm so happy with this, thanks for all of your input!
oasis
06-14-2006, 03:50 AM
How can I add visualization to my enbedded media player so that the visualization shows when the song streams?
Here is an edited version of my codes:
<OBJECT ID="MediaPlayer" width="320" height="240"
CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
<PARAM name="autoStart" value="True">
<PARAM name="filename" value="http://mylink.com:0000">
<EMBED TYPE="application/x-mplayer2"
SRC="http://mylink.com:0000"
NAME="MediaPlayer"
ShowStatusBar=1
volume=50
HEIGHT=50 WIDTH=300>
</EMBED>
</object>
_Aerospace_Eng_
06-14-2006, 05:24 AM
You will need to update your code a bit. Try this
<object
classid="CLSID:clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" width="320" height="285">
<param name="url" value="http://mylink.com:0000">
<param name="uiMode" value="full">
<param name="autoStart" value="true">
<param name="playCount" value="9999">
<embed
src="http://mylink.com:0000" width="320" height="45" autostart="1" playcount="9999" type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="1" uimode="full" name="player"></embed>
</object>
Visualizations only work in IE.
oasis
06-14-2006, 01:22 PM
Thanks for the quick response! I tried it but no visualization appears in the black background. Here is the code I tried to modify:
<OBJECT ID="MediaPlayer" width=300 height=200
CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
<PARAM name="autoStart" value="True">
<param name="ShowDisplay" value="1">
<param name="ShowStatusBar" value="True">
<PARAM name="filename" value="http://www.com:0000">
<EMBED TYPE="application/x-mplayer2"
SRC="http://www.com:0000"
NAME="MediaPlayer"
ShowStatusBar=True>
volume=50
HEIGHT=200 WIDTH=300>
</EMBED>
</object>
_Aerospace_Eng_
06-14-2006, 04:57 PM
There are some differences in your code and the code I gave you. Yours is slightly outdated and doesn't support visualizations.
BrentAWood
06-15-2006, 05:57 PM
I am trying to add previous song and next song into my embedded player. is this possible? here is my current code. . . . .
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
</script>
</head>
<div id="jukebox">SOME OLD GOSPEL SONGS<br><br>
<span id="music1"><embed type="application/x-mplayer2" id="music1"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
src="http://www.members.rushmore.com/~brentwoodard/music/playlist.m3u"
name="MediaPlayer1"
width="300"
height="70"
controltype="2"
showcontrols="1"
showstatusbar="1"
AutoStart="true">
</embed></span>
</div>
</body>
</html>
This is my first post, so if I have done it wrong please forgive me. Your page has been very helpful though.
Brent
_Aerospace_Eng_
06-15-2006, 06:29 PM
Use [code][/code] tags to post your code please. Try this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>SOME OLD GOSPEL SONGS</title>
<style type="text/css">
#jukebox {
text-align:center;
}
#jukebox h1 {
font-size:15px;
font-weight:normal;
margin:0;
padding:0;
}
</style>
</head>
<body>
<div id="jukebox">
<h1>SOME OLD GOSPEL SONGS</h1>
<object classid="CLSID:clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" width="300" height="70">
<param name="url" value="http://www.members.rushmore.com/~brentwoodard/music/playlist.m3u">
<param name="uiMode" value="full">
<param name="autoStart" value="true">
<param name="playCount" value="9999">
<embed src="http://www.members.rushmore.com/~brentwoodard/music/playlist.m3u" width="300" height="70" autostart="1" playcount="9999" type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" showcontrols="1" uimode="full"></embed>
</object>
</div>
</body>
</html>
The code for your page was quite bad, use what I just gave you as a replacement.
BrentAWood
06-15-2006, 10:06 PM
It does not show any information when i used this code. previously it showed the current song, artist and time, etc. when i posted the new code it didn't show any of that. I hope I am making myself clear. I would like to keep the other info, but show the last song played (or any number of songs played) and also the next song and info to be played. My player is on my web page, so the music doesn't open up in a separate player.
Thank's again, and I probably didn't make myself clear before. Sorry.
Brent
oasis
06-15-2006, 11:24 PM
Aerospace_Eng,
The Visualization code did not work out for me. I just want the black background to have something in it, preferably the "Spikes." Really need help with that.
2. I am using a winamp and would like to show the song title as the music streams on the embedded media player.
Thanks
Am I Evil
06-20-2006, 10:27 AM
Ok, i've read the entire thread, but couldn't find an answer for my problem.
I want this script, but when the 1st song stops playing, another random song should begin playing.
Is this possible?
thanks in advance.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Random mp3 Music Player</title>
<script type="text/javascript">
<!--
nummp3 = 10
day = new Date()
z = day.getTime()
y = (z - (parseInt(z/1000,10) * 1000))/10
x = parseInt(y/100*nummp3,10) + 1
if (x == (1))
mp3=("song1.mp3")
if (x == (2))
mp3=("song2.mp3")
if (x == (3))
mp3=("song3.mp3")
if (x == (4))
mp3=("song4.mp3")
if (x == (5))
mp3=("song5.mp3")
if (x == (6))
mp3=("song6.mp3")
if (x == (7))
mp3=("song7.mp3")
if (x == (8))
mp3=("song8.mp3")
if (x == (9))
mp3=("song9.mp3")
if (x == (10))
mp3=("song10.mp3")
//-->
</script>
</head>
<body>
<script type="text/javascript">
<!--
document.write('<embed type="application/x-mplayer2" '
+'pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" '
+'src="'+mp3+'" '
+'name="MediaPlayer1" '
+'width="300" '
+'height="69" '
+'controltype="2" '
+'showcontrols="1" '
+'showstatusbar="1" '
+'autostart="true">'
+'</embed>');
//-->
</script>
</body>
</html>
jammula
06-27-2006, 05:13 PM
Please help me,I seen so many websites are doing like this
Check box--- Song1
Check box--- Song2
Check box--- Song3
Check box--- Song4
Buttons
PlaySelected Playall Reset
1)What i need is When User Select the Song1,Song2 Check Box and Press the
Button "PlaySelected"
I want to Display a Popup Window with Media player plugin and Play Song1 and Song2
2) When user Press button "Playall" .I want to play all songs
3) Pressing "Reset" button should uncheck the Checkbox if its checked
Any help is appreciated
Thanks for all your help
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.