Stop Embeded Media Player from Looping Clip

E

Earl T

I am using .NET to write out the code for the windows media object and
the only problem is that it always loops and does not stop and the end
of clip. How do I get it to stop at the end. The code I am writing is
bellow.

Thanks for the help

Earl


PlaceHolder myPlaceHolder = new PlaceHolder();
myPlaceHolder.Controls.Add(new LiteralControl("<object id=\"video\"
border=\"0\" classid=\"clsid:05589FA1-C356-11CE-BF01-00AA0055595A\"
name=\"movie\">"));
myPlaceHolder.Controls.Add(new LiteralControl("<param
name=\"ShowDisplay\" value=\"true\">"));
myPlaceHolder.Controls.Add(new LiteralControl("<param
name=\"ShowControls\" value=\"1\">"));
myPlaceHolder.Controls.Add(new LiteralControl("<param
name=\"AutoStart\" value=\"0\">"));
myPlaceHolder.Controls.Add(new LiteralControl("<param
name=\"AutoRewind\" value=\"0\">"));
myPlaceHolder.Controls.Add(new LiteralControl("<param
name=\"PlayCount\" value=\"0\">"));
myPlaceHolder.Controls.Add(new LiteralControl("<param
name=\"Appearance value=\"0\" value=\"\">"));
myPlaceHolder.Controls.Add(new LiteralControl("<param
name=\"BorderStyle value=\"0\" value=\"\">"));
myPlaceHolder.Controls.Add(new LiteralControl("<param
name=\"FileName\" value=\""+VirtualFilePath+"\">"));
myPlaceHolder.Controls.Add(new LiteralControl("<embed
type=\"video/x-msvideo\" loop=\"false\" autostart=\"0\"
controls=\"true\" showdisplay=\"true\" showcontrols=\"1\"
autorewind=\"1\" playcount=\"0\" name=\"movie\">"));
myPlaceHolder.Controls.Add(new LiteralControl("</embed>"));
myPlaceHolder.Controls.Add(new LiteralControl("</object>"));
 

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

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top