...

View Full Version : Selecting Video From ASX Playlist



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>

_Aerospace_Eng_
12-12-2006, 06:58 AM
I don't see this as being possible. I think flash would be the way to go on this one
http://www.*******************/?item=Flash_Video_Player

The only issue I forsee is actually converting your wmv files to .flv files.
The Riva FLV 2.0 Encoder is free and should convert them without a problem. If you have Flash 8 then you have the flv encoder that comes with it. Good luck.

tripwire
12-14-2006, 12:03 AM
I actually figured out a way to do this by dynamically creating my asx playlist file. Basically I call a specific video to start based on a querystring read into the value of my windows media player url param which sorts out how my asx playlist is ordered.

Now I just need to figure out how to get my metadata to display on a Mac in my div tag.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum