View Full Version : Embedded Media Player Jukebox
Rigro2000
05-27-2005, 03:58 AM
I've found a media player jukebox for asf files and I've been trying to add a button to be able to stop the music manually. There is a button named: PLAY MUSIC & would like to add another one named: STOP MUSIC
Can anyone help me and tell me how to add it and make it work????
tHANK YOU!!!!
enumerator
05-27-2005, 06:54 PM
Check the reference (complete) WMP6.4 SDK online: http://msdn.microsoft.com/library/en-us/wmp6sdk/htm/microsoftwindowsmediaplayercontrolversion64sdk.asp
dannyhayes
05-27-2005, 09:54 PM
Definately do what enumerator said.
Rigro2000
05-28-2005, 12:21 AM
Didn't work :confused:
_Aerospace_Eng_
05-28-2005, 08:27 AM
is there a reason why you don't want to use the default controls for the player?
Rigro2000
05-28-2005, 01:52 PM
Because the controls are invisible when it's published on the web and I wanted the visitors to be able to stop the music if they don't like the song and go to the next one...
_Aerospace_Eng_
05-29-2005, 12:23 AM
The controls are invisible only because you have them turned off, this code might interest you:
<!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>
<body>
<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>
</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>
or you might want an embedded media player generator (http://cit.ucsf.edu/embedmedia/step1.php) which DOES show the controls and allows the user to switch songs if the files are setup correctly.
Rigro2000
05-29-2005, 10:01 PM
THANK YOU!!!!! :thumbsup:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.