Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Stop Embeded Media Player from Looping Clip

Reply
Thread Tools

Stop Embeded Media Player from Looping Clip

 
 
Earl T
Guest
Posts: n/a
 
      10-20-2003
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>"));
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
looping in array vs looping in a dic giuseppe.amatulli@gmail.com Python 5 09-20-2012 11:58 PM
watir:How to click on play player obj embeded in browser. Suman Yerram Ruby 5 12-24-2009 09:15 AM
Win media player won't stop resetting color / options peacenickmann@gmail.com Computer Support 0 04-19-2007 07:08 AM
Lost clip info for real player music video files Paul Wadham Computer Support 0 04-18-2007 12:00 PM
How to stop Windows Media Player "Connecting" Alien Computer Support 5 11-18-2005 10:31 AM



Advertisments