Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Javascript (http://www.velocityreviews.com/forums/f68-javascript.html)
-   -   Stop Embeded Media Player from Looping Clip (http://www.velocityreviews.com/forums/t873256-stop-embeded-media-player-from-looping-clip.html)

Earl T 10-20-2003 09:33 PM

Stop Embeded Media Player from Looping Clip
 
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>"));


All times are GMT. The time now is 08:26 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.