I just noticed before reading your last reply I have been using 2 different classid's.
I have not tried your last post code yet. I have some questions first about what classid affects? reason I ask this is because I was trying to use your drop down list code you provided several posts earlier and my full screen stopped working. I did get this to work perfect before reading your last post and will share once I digest whats going on first. The one I believe you used in the prior post for the drop down list is : classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95
When I use the one that works with my full screen code (CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6) your drop down list doesnt work. Unless i am missing something.
Sorry, but I am trying to absorb alot at once here.
I will only be using this code for IE only, ,and locally.
Thanks for the super help!!
I almost have it all peiced together but this classid is maybe a hangup?
Your last code still opens a IE browser window.
Below is code that does exactly what I want except for it doesnt start automatically but I can work with that.
Got rid of the video.asx file also.
When I click the FULL button it opens a WMP window and ESC or double click closes it and returns to the HTML browser, AND the media file plays without interuption perfectly! Finally! (Other buttons have wrong names but work too)
Code:
<HTML>
<HEAD>
</HEAD>
<BODY>
<OBJECT ID="Player" height="240" width="320"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
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">
<PARAM NAME="FileName" VALUE="tc4014-v.wmv">
<PARAM NAME="AutoStart" Value="true">
<PARAM NAME="ShowControls" Value="true">
<Embed type="application/x-mplayer2"
pluginspage=
"http://www.microsoft.com/Windows/MediaPlayer/"
src="tc4014-v.wmv"
Name=Player
AutoStart=1
Width=320
Height=240
autostart=1
ShowControls=1
</embed>
</OBJECT>
<INPUT TYPE="BUTTON" NAME="BtnPlay" VALUE="true" OnClick="StartMeUp()">
<INPUT TYPE="BUTTON" NAME="BtnStop" VALUE="Stop" OnClick="ShutMeDown()">
<INPUT TYPE="BUTTON" NAME="Btnfull" VALUE="FULL" OnClick="screenfull()">
<SCRIPT>
<!--
function StartMeUp ()
{
Player.URL = "tc4014-v.wmv";
}
function screenfull ()
{
/* Check to be sure the player is playing. */
if (Player.playState == 3)
Player.fullScreen = 'true';
}
function ShutMeDown ()
{
Player.controls.stop();
}
-->
</SCRIPT>
</BODY>
</HTML>
This code works alone and would like to add it to the above code so it works in unison. When I do this neither one works.
It's probably one of the parameters or the CLASSID. i tried different ones and still didnt get it to work. I'm sure it's simple but I'm not getting it.
I thought I could just add the code from above between the <SELECT> tags into the first code and have both work. Of course I changed this code
The above pulls the value from the select menu and places it in the url parameter. If you id of the player is music then leave this alone, if you changed the id then you would have to change the reference to music to whatever id you changed it to. You might want to put the name as well. Your current object code has an id of player so change this
Again you are using the wrong classid for the parameters you are using. Use the last code I posted. Just add id="player" name="player" to it and it should work in conjuction with the select menu. I'm pretty sure IE needs the name to access the object.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
please know I'm trying to figure this out without help... but still new to me. sorry.
I did try using the id= player and name = player. Will try again.
Secondly I am using CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6
which from all I can find on MSDN is the latest for WMP 10. Is this wrong?
The one you used for your drop down selection code is:
classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95
which I read is for WMP 6 or 6.4?
There are a LOT of PARAM's in your drop down code on the first page of this thread.
I'm only using 3 PARAM's for my Fullscreen code.
Not sure if your drop down PARAM's are all needed and suspect some are not compatible with the CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6?
No they aren't all needed. If you indeed did read the whole thread you would know that I have trimmed my original to something less bulkier. Okay I am now repeating myself (something I don't like doing), some of the parameters that are in the original code will not work with the newest classid. Please refer the the most recent code I posted. It IS the media code you should use.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
I'll try to sift through the 13 pages posted and figure it out. no prob.
Here is the combined code. The Full screen I was trying to accomplish works great. I guess I am trying to get too fancy with the drop down list. The drop down list doesnt do anything.
If it's painfully obvious please let me know what PARAM is missing or what I did wrong, otherwise I'll keep working on it until I figure it out.
thanks again!
Code:
<HTML>
<HEAD>
</HEAD>
<BODY>
<div align=center>
<SELECT id=cancion onchange=document.all.player.filename=document.all.cancion.value; size=1 name="player">
<OPTION selected>::::::::::::: Choose Your Song Here :::::::::::::</OPTION>
<OPTION value=s292.wma>Jon Courson - Song </OPTION>
<OPTION value=tc4014-v.wmv>Jon Couson - Video</OPTION>
</SELECT>
<BR>
<OBJECT ID="Player" height="240" width="320" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
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">
<PARAM NAME="AutoStart" Value="true">
<PARAM NAME="ShowControls" Value="true">
<Embed type="application/x-mplayer2"
pluginspage=
"http://www.microsoft.com/Windows/MediaPlayer/"
Name="Player"
AutoStart=1
Width=320
Height=240
ShowControls=1
</embed>
</OBJECT>
<br>
<INPUT TYPE="BUTTON" NAME="BtnPlay" VALUE="PLAY" OnClick="StartMeUp()">
<INPUT TYPE="BUTTON" NAME="BtnStop" VALUE="STOP" OnClick="ShutMeDown()">
<INPUT TYPE="BUTTON" NAME="Btnfull" VALUE="FULL" OnClick="screenfull()">
<SCRIPT>
<!--
function StartMeUp ()
{
Player.URL = "tc4014-v.wmv";
}
function screenfull ()
{
/* Check to be sure the player is playing. */
if (Player.playState == 3)
Player.fullScreen = 'true';
}
function ShutMeDown ()
{
Player.controls.stop();
}
-->
</SCRIPT>
</div>
</BODY>
</HTML>
ok, sorry i missed that change. Now the buttons to start, stop, and fullscreen work but the drop down list doesnt do anything.
sorry for being a pest...I'm trying to learn all this
appreciate your help!
Code:
<HTML>
<HEAD>
</HEAD>
<BODY>
<div align=center>
<SELECT id=cancion onchange="document.all.player.url=document.all.cancion.value;"
size=1 name="player">
<OPTION selected>::::::::::::: Choose Your Song Here :::::::::::::</OPTION>
<OPTION value=s292.wma>Jon Courson - Song </OPTION>
<OPTION value=tc4014-v.wmv>Jon Couson - Video</OPTION>
</SELECT>
<BR>
<OBJECT ID="Player" height="240" width="320"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
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">
<PARAM NAME="URL" VALUE="">
<PARAM NAME="AutoStart" Value="true">
<PARAM NAME="ShowControls" Value="true">
<Embed type="application/x-mplayer2"
pluginspage=
"http://www.microsoft.com/Windows/MediaPlayer/"
Name="Player"
AutoStart=1
Width=320
Height=240
ShowControls=1
</embed>
</OBJECT>
<br>
<INPUT TYPE="BUTTON" NAME="BtnPlay" VALUE="PLAY" OnClick="StartMeUp()">
<INPUT TYPE="BUTTON" NAME="BtnStop" VALUE="STOP" OnClick="ShutMeDown()">
<INPUT TYPE="BUTTON" NAME="Btnfull" VALUE="FULL" OnClick="screenfull()">
<SCRIPT>
<!--
function StartMeUp ()
{
Player.URL = "tc4014-v.wmv";
}
function screenfull ()
{
/* Check to be sure the player is playing. */
if (Player.playState == 3)
Player.fullScreen = 'true';
}
function ShutMeDown ()
{
Player.controls.stop();
}
-->
</SCRIPT>
</div>
</BODY>
</HTML>
Your main problem was your select menu was also named player so it was conflicting with the object code. Here you go, the buttons work, the drop down menu works.
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 StartMeUp(){
player.url = "tc4014-v.wmv";
}
function screenfull(){
/* Check to be sure the player is playing. */
if (player.playState == 3)
player.fullScreen = 'true';
}
function ShutMeDown(){
player.controls.stop();
}
function PlayIt(){
document.player.url=document.getElementById('cancion').value;
}
//-->
</script>
</head>
<body>
<select name="cancion" id="cancion" onchange="PlayIt()">
<option value="none">::::::::::::: Choose Your Song Here :::::::::::::</option>
<option value="s292.wma">Jon Courson - Song </option>
<option value="tc4014-v.wmv">Jon Couson - Video</option>
</select><br>
<span id="music">
<object id="player" name="player" width="240" 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="">
<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><br>
</span>
<input type="button" name="BtnPlay" value="PLAY" onclick="StartMeUp()">
<input type="button" name="BtnStop" value="STOP" onclick="ShutMeDown()">
<input type="button" name="Btnfull" value="FULL" onclick="screenfull()">
</body>
</html>
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
Fantastic! Thanks so much! I never would have figured that out. My problem is I tend to take on more than I am capable of, but that's how I learn more. You have been more than patient with my Noobiness.
Hello
I'm SS. I have been trying for weeks to get these songs i have to play with a pop-up media player when the buttons i made are clicked and nothing works. Can someone please show me what the code is supposed to look like with these codes i have?
These are the buttons i made
src="http://tekcities.com/ss_karaoke/button270819.jpg"></A></P>
<P align=left> </P>
<P align=left>
<P align=left></P>
<P align=left> <IMG src="http://tekcities.com/ss_karaoke/button642326.jpg"></P>
<P align=left> </P>
<P align=left> <IMG src="http://tekcities.com/ss_karaoke/button447073.jpg"></P>
<P align=left> </P>
<P align=left> <IMG src="http://tekcities.com/ss_karaoke/button213280.jpg"></P>
This is the code i have for the media player
<!-- begin embedded WindowsMedia file... -->
<table border='0' cellpadding='0' align="center">
<tr><td>
<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="http://servername/path/to/media.file">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="false">
<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="320" height="285"
src="http://servername/path/to/media.file" autostart="false" 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="http://servername/path/to/media.file" style='font-size: 85%;' target='_blank'>Launch in external player</a>
<!-- ...end link to launch external media player... -->
</td></tr>
</table>
Will these files played if i uploaded them from my computer to my site or do they have to come from another online storage?
These are the music files i have uploaded
Song1.mp3
song2.mps
song3.mp3
song4.mp3 I thought the colors would make it easier to read
Thank you sooooo much in advance, i hope you can make sense of this
SS
Thanks so much Aero,
How can i move the buttons to where i want them?........they show up on page going across, is there a special code for this?
You are awsome with your helpfulness and your promptness
i havent been able to play around with it as the site im with is currently in a switch process but they should be up and running tomorrow.