Stop Embeded Media Player from Looping Clip

Discussion in 'Javascript' started by Earl T, Oct 20, 2003.

  1. Earl T

    Earl T Guest

    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>"));
     
    Earl T, Oct 20, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. cyshao
    Replies:
    1
    Views:
    3,336
    Steve C. Orr [MVP, MCSD]
    Apr 12, 2005
  2. steven robinson
    Replies:
    0
    Views:
    667
    steven robinson
    Nov 9, 2003
  3. ary
    Replies:
    1
    Views:
    1,093
    =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=
    Nov 28, 2006
  4. HY Tech
    Replies:
    0
    Views:
    628
    HY Tech
    Sep 7, 2003
  5. Suman Yerram
    Replies:
    5
    Views:
    136
    Fleck Jean-Julien
    Dec 24, 2009
Loading...

Share This Page