Embedded Media Player

G

Guest

I have a embedded media player into an ASP.NET web page and it all works
except for the first time the page loads, when the user clicks on the play
button, the player acts like it is going to play and then it stops. When I
refresh the page, it works fine. Not sure what to think here about this. Any
ideas?
 
G

Guest

I don't have an answer but i'm interested in how you embedded the player. Can
I steal your code?

Thanks,
Sarah
 
G

Guest

Sure, it is just an object tag in your HTML.

<OBJECT ID="MediaPlayer" WIDTH="220" HEIGHT="220"
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading Windows
Media Player components..." TYPE="application/x-oleobject" VIEWASTEXT>
<PARAM NAME="FileName" VALUE="mms://url to your file">
<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" SRC="mms://url to your file"
NAME="MediaPlayer" WIDTH="220" HEIGHT="220"> </EMBED>
</OBJECT>

There are quite a few more parameters that can be used to set the behavior
of the object. You can do a search on embedding windows media player in an
ASP.NET page and you can get lots of references.

If your interested, I solved my problem by setting up windows media services
on my web server. My solution was to use streaming video, instead of just
having it download to the local browser. It was fairly easy to set up. Here
is the URL to the page I used to set up the streaming.

http://www.devsource.com/article2/0,1759,1772060,00.asp

Good Luck!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top