B
benmourra
Hi all,
I'm trying to create a web page using VS2005, ASP.NET 2.0, that will
allow me to choose from a list of media files on my computer and then
play my selection within an embedded Windows Media Player on the page.
I've been able to eventually find out how to embed the player into the
page by manually inserting code into the source view of my aspx file.
It plays the file specified in the source view, but I'd like to be able
to dynamically select a media file from a drop down list and then have
it play, at runtime. Any ASP.NET 2.0 Media Player gurus out there?
Any ideas/comments/suggestions would be greatly appreciated! (I'd like
to get some sleep eventually...)
Thanks in advance,
Ben
PS. For those who are interested, I got it working by inserting this
code into the source of my aspx file:
<OBJECT ID="MediaPlayer" WIDTH="320" HEIGHT="240"
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading
Windows
Media Player components..." TYPE="application/x-oleobject" VIEWASTEXT>
<PARAM NAME="FileName" VALUE="file:///C:/MovieClip.avi">
<PARAM name="autostart" VALUE="false">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="true">
<PARAM name="ShowDisplay" VALUE="false">
<EMBED TYPE="application/x-mplayer2" NAME="MediaPlayer">
</EMBED>
</OBJECT>
I'm trying to create a web page using VS2005, ASP.NET 2.0, that will
allow me to choose from a list of media files on my computer and then
play my selection within an embedded Windows Media Player on the page.
I've been able to eventually find out how to embed the player into the
page by manually inserting code into the source view of my aspx file.
It plays the file specified in the source view, but I'd like to be able
to dynamically select a media file from a drop down list and then have
it play, at runtime. Any ASP.NET 2.0 Media Player gurus out there?
Any ideas/comments/suggestions would be greatly appreciated! (I'd like
to get some sleep eventually...)
Thanks in advance,
Ben
PS. For those who are interested, I got it working by inserting this
code into the source of my aspx file:
<OBJECT ID="MediaPlayer" WIDTH="320" HEIGHT="240"
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading
Windows
Media Player components..." TYPE="application/x-oleobject" VIEWASTEXT>
<PARAM NAME="FileName" VALUE="file:///C:/MovieClip.avi">
<PARAM name="autostart" VALUE="false">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="true">
<PARAM name="ShowDisplay" VALUE="false">
<EMBED TYPE="application/x-mplayer2" NAME="MediaPlayer">
</EMBED>
</OBJECT>