tripwire
12-12-2006, 06:11 AM
I'm not sure if this is even possible, but I've created an embedded windows media player that reads from an asx playlist of my videos. What I'm wanting to do is within my page select from an image list of my videos (read in php from a mysql database) and jump to whichever video I choose in the asx list. After that particular video is finished playing the next video would continue in the playlist. Can this be done and how could I do it?
<ASX version = "3.0">
<TITLE>Video Player</TITLE>
<Entry>
<title>Title of song</title>
<author>author</author>
<PARAM NAME="AlbumTitle" VALUE="Album Title of this band"/>
<Ref href = "http://media._450.wmv" />
</Entry>
<Entry>
<title>Title of 2nd song</title>
<author>2nd artist</author>
<PARAM NAME="AlbumTitle" VALUE="Album Title of this band"/>
<Ref href = "http://www.300k.wmv" />
</Entry>
</ASX>
function playerpop(url,name,width,height,resize,scroll) {
popupWin = window.open(url, name,'width=540,height=440,resizable=no,scrollbars=no,location=0,menubar=0,statusbar=0,toolbar=0');
}
var tag = '<OBJECT ID="MediaPlayer" NAME="MediaPlayer" width=320 height=240 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">'
tag += ' <PARAM name="URL" value="playlist.asx">';
tag += '<param name="uiMode" value="none">'
tag += ' <PARAM name="DisplaySize" value="0">'
tag += ' <PARAM NAME="ShowControls" VALUE="false">'
tag += ' <PARAM NAME="ShowDisplay" VALUE="0">'
tag += ' <PARAM NAME="ShowStatusBar" VALUE="0">'
tag += ' <PARAM NAME="AutoStart" VALUE="TRUE">'
tag += ' <PARAM NAME="InvokeURLS" Value="False">'
tag += ' <param name="windowlessVideo" value="0">'
tag += ' <embed width="320" height="240" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" src="playlist.asx" AutoStart="True" controls="playbutton" showstatusbar="false" autoplay="true" uimode="none"></embed>'
tag += '</object>'
embed(tag)
}
//link to video
<a href="javascript:playerpop('videoplayer.php');"><IMG SRC="../../images/<? echo $image ?>"></a>
<ASX version = "3.0">
<TITLE>Video Player</TITLE>
<Entry>
<title>Title of song</title>
<author>author</author>
<PARAM NAME="AlbumTitle" VALUE="Album Title of this band"/>
<Ref href = "http://media._450.wmv" />
</Entry>
<Entry>
<title>Title of 2nd song</title>
<author>2nd artist</author>
<PARAM NAME="AlbumTitle" VALUE="Album Title of this band"/>
<Ref href = "http://www.300k.wmv" />
</Entry>
</ASX>
function playerpop(url,name,width,height,resize,scroll) {
popupWin = window.open(url, name,'width=540,height=440,resizable=no,scrollbars=no,location=0,menubar=0,statusbar=0,toolbar=0');
}
var tag = '<OBJECT ID="MediaPlayer" NAME="MediaPlayer" width=320 height=240 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">'
tag += ' <PARAM name="URL" value="playlist.asx">';
tag += '<param name="uiMode" value="none">'
tag += ' <PARAM name="DisplaySize" value="0">'
tag += ' <PARAM NAME="ShowControls" VALUE="false">'
tag += ' <PARAM NAME="ShowDisplay" VALUE="0">'
tag += ' <PARAM NAME="ShowStatusBar" VALUE="0">'
tag += ' <PARAM NAME="AutoStart" VALUE="TRUE">'
tag += ' <PARAM NAME="InvokeURLS" Value="False">'
tag += ' <param name="windowlessVideo" value="0">'
tag += ' <embed width="320" height="240" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" src="playlist.asx" AutoStart="True" controls="playbutton" showstatusbar="false" autoplay="true" uimode="none"></embed>'
tag += '</object>'
embed(tag)
}
//link to video
<a href="javascript:playerpop('videoplayer.php');"><IMG SRC="../../images/<? echo $image ?>"></a>