none
Setting Showcontrols=false on web page does not work

    Question

  • 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" >
          <LayoutTemplate>
              <aspStick out tonguelaceHolder ID="itemPlaceHolder" runat="server"></aspStick out tonguelaceHolder>
              <aspBig SmileataPager runat="server" ID="DataPager" PageSize="5">
                <Fields>
                  <asp:NumericPagerField ButtonCount="10" PreviousPageText="<" NumericButtonCssClass="PageNumbers"
                       NextPageText=">" />
                </Fields>
              </aspBig SmileataPager>

          </LayoutTemplate>
            <ItemTemplate>  
               <table runat="server">
                   <tr runat="server">
                        <td>
                          <asp:LinkButton ID="SelectButton" runat="server" CommandName="Select" Text="Select" />
                        </td>
                        <td runat="server" visible="false">
                            <asp:Label runat="server" ID="Label4" Text='<%# ((Entry)Container.DataItem).EntryID %>'></asp:Label>
                       </td>
                        <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="http://www.microsoft.com/Windows/MediaPlayer/" name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=0 volume=-450>
                             </object>                        
                        </td>
                        <td runat="server">
                            <asp:Label runat="server" ID="vTitle" Text='<%# ((Entry)Container.DataItem).Title %>'></asp:Label>
                            <br>
                            <asp:Label runat="server" ID="Label1" Text='<%# ((Entry)Container.DataItem).Summary %>'></asp:Label>
                       </td>
                       <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>
                       </td>
                    </tr>
                </table>
            </ItemTemplate>
          <EmptyDataTemplate>No items</EmptyDataTemplate>
        </asp:ListView>

    Wednesday, July 23, 2008 7:06 PM

Answers

  • I have the same problem. However if I change the classid to the old depreciated Media Player 6.4 classid then it works fine.
    CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95
    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