Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

media player showcontrols still displaying

Status
Not open for further replies.

slatetm

Programmer
Mar 20, 2007
16
US
We are working on a web app that embeds media player. 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>
<asp:placeHolder ID="itemPlaceHolder" runat="server"></asp:placeHolder>
<asp:DataPager runat="server" ID="DataPager" PageSize="5">
<Fields>
<asp:NumericPagerField ButtonCount="10" PreviousPageText="<" NumericButtonCssClass="PageNumbers"
NextPageText=">" />
</Fields>
</asp:DataPager>

</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=" 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>
 
This is not an ASP.NET issue. I would check the documentation for Media Player.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top