 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
jonde15
Joined: 20 Mar 2006 Posts: 2
|
Posted: Mon Mar 20, 2006 2:49 pm multiple music videos |
|
|
|
alright... ive seen music video codes that will play one video and have torn them apart to get to the base of....
<embed src=http://www.WHATEVER.com/........
width=533 height=508 volume=0 autostart=1 ShowControls=1 ShowStatusBar=1 loop=0 EnableContextMenu=true DisplaySize=1></embed>
now i really want to have a playlist for videos but i dont think that the same principles apply for videos and music. ive come really close but just cant figure it out. Thanx to who ever replys |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8749 Location: Castle Pines North, CO USA
|
Posted: Mon Mar 20, 2006 3:26 pm |
|
|
|
|
I have had this code used before
| 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=windows-1252">
<title>Title here</title>
</head>
<body>
<p align="Center">
<script language="javascript">var streams = new Array();
streams[0] = new makeStream("one.wav", "1...Song Title One");
streams[1] = new makeStream("two.wav", "2...Song Title Two");
streams[2] = new makeStream("three.wav", "3...Song Title Three");
streams[3] = new makeStream("four.wav", "4...Song Title Four");
function makeStream(url, name) {
this.url = url;
this.name = name;
}
function handleControlsOnOffClick() {
if (document.mediaPlayer.showControls == true) {
document.mediaPlayer.showControls = false;
document.playerCtrl.controls.value = " :.SHOW PLAYER.:";
}
else {
document.mediaPlayer.showControls = true;
document.playerCtrl.controls.value = " :.HIDE PLAYER.: "
}}
function handlePlayOrPauseClick(){
var state;
playerStatus = document.mediaPlayer.playState;
if (playerStatus == 6) {
document.mediaPlayer.play();
document.playerCtrl.playOrPause.value = " :.PAUSE.: ";
}
else if (playerStatus == 1) {
document.mediaPlayer.play();
document.playerCtrl.playOrPause.value = " :.PAUSE.: ";
}
else if (playerStatus == 2) {
document.mediaPlayer.pause();
document.playerCtrl.playOrPause.value = " :.PLAY.: ";
}
}
function changeSize(newSize) {
document.mediaPlayer.displaySize = newSize;
}
function change() {
var list = document.playerCtrl.streams;
var streamURL = list.options[list.selectedIndex].value;
document.mediaPlayer.stop();
document.playerCtrl.playOrPause.value = " :.PAUSE.: ";
document.mediaPlayer.fileName = streamURL;
}
</script>
<object id="mediaPlayer" 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="239" height="179">
<param name="fileName" value="sounds/bestieverhad.wav">
<param name="animationatStart" value="false">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="loop" value="true">
<param name="showControls" value="false">
</object>
<form name="playerCtrl">
<input type="button" value=" :.PAUSE.: " name="playOrPause"
onclick="handlePlayOrPauseClick()" style="font-family:courier"> <input
type="button" value=" :.SHOW PLAYER.: " name="controls"
onclick="handleControlsOnOffClick()" style="font-family:courier">
<script language="javascript">
with (document) {
writeln('<select name="streams" onChange="change()">');
for (var i = 0; i < streams.length; i++) {
writeln('<option value="', streams[i].url, '">', streams[i].name);
}
writeln('</select>');
}
</script>
</form>
</p>
</body>
</html> |
_________________
Corey
Loud Commerce |
Loud Worx | Loud Ads |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|