Setting Showcontrols=false on web page does not work


  • We are working on a web app that embeds media player (similar to youtube).  It works great but the showcontrols=false will not work.  The controls always show.  Can anyone help?

       <asp:ListView ID="mediaListView" runat="server" OnSelectedIndexChanged="SelectedVideo_click" OnSelectedIndexChanging="SelectingVideo_click" DataKeyNames="EntryID" >
              <aspStick out tonguelaceHolder ID="itemPlaceHolder" runat="server"></aspStick out tonguelaceHolder>
              <aspBig SmileataPager runat="server" ID="DataPager" PageSize="5">
                  <asp:NumericPagerField ButtonCount="10" PreviousPageText="<" NumericButtonCssClass="PageNumbers"
                       NextPageText=">" />
              </aspBig SmileataPager>

               <table runat="server">
                   <tr runat="server">
                          <asp:LinkButton ID="SelectButton" runat="server" CommandName="Select" Text="Select" />
                        <td runat="server" visible="false">
                            <asp:Label runat="server" ID="Label4" Text='<%# ((Entry)Container.DataItem).EntryID %>'></asp:Label>
                        <td runat="server">
                             <object id="player" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" height="100" width="160">
                                <param name="url" value='<%# "MediaHandler.ashx?id=" + ((Entry)Container.DataItem).EntryID %>' />
                                <param name="showControls" value="false">
                                <param name="ShowStatusBar" value="false">
                                <param name="ShowDisplay" value="false">
                                <param name="autostart" value="false" />
                                <param name="ShowAudioControls" value="false">
                                <embed type="application/x-mplayer2" pluginspage="" name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=0 volume=-450>
                        <td runat="server">
                            <asp:Label runat="server" ID="vTitle" Text='<%# ((Entry)Container.DataItem).Title %>'></asp:Label>
                            <asp:Label runat="server" ID="Label1" Text='<%# ((Entry)Container.DataItem).Summary %>'></asp:Label>
                       <td runat="server">
                            <asp:Label runat="server" ID="Label2" Text='<%# ((Entry)Container.DataItem).Published%>'></asp:Label>
                            <br />
                            <asp:Label runat="server" ID="Label3" Text='<%# ((Entry)Container.DataItem).Author %>'></asp:Label>
          <EmptyDataTemplate>No items</EmptyDataTemplate>

    Wednesday, July 23, 2008 7:06 PM


  • I have the same problem. However if I change the classid to the old depreciated Media Player 6.4 classid then it works fine.
    When using the newer media player 7 and above classid as you are it would appear that the good folks at Microsoft have either removed or changed this feature or it is a bug. However I cannot find any documentation on this anywhere. If you use the old classid then some new features added since 6.4 are not available.
    I too would really appreciate an answer on how to do this using the modern classid
    Tuesday, July 29, 2008 10:56 PM