Rank: Member Groups: Member
Joined: 11/13/2008 Posts: 26 Points: 78 Location: New York
|
PlayMedia button is the only one working. Can't figure out what's wrong with the other two. Maybe someone already ran into this issue. This is my code.....basic.....just testing yet:
<div id="contentPlayer" style="float: right; margin-right: 30px;"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <ASPNetAudio:Audio ID="MediaPlayer1" runat="server" Volume="100" AutoPlay = "false"> </ASPNetAudio:Audio> <br /> <ASPNetMediaGUI:PlayButton ID="PlayButton1" runat="server" AssociatedControl="MediaPlayer1"></ASPNetMediaGUI:PlayButton> <ASPNetMediaGUI:PauseButton ID="PauseButton1" runat="server" AssociatedControl="MediaPlayer1"></ASPNetMediaGUI:PauseButton> <ASPNetMediaGUI:StopButton ID="StopButton1" runat="server" AssociatedControl="MediaPlayer1"></ASPNetMediaGUI:StopButton> </div> <br /> <h3>PlayList:</h3> <ASPNetMediaGUI:PlayList ID="PlayList1" runat="server" AutoGenerateColumns="False" CellPadding="4" DataSourceID="DefaultPlayList" GridLines="None" LoopPlayList="True" MediaPlayer="MediaPlayer1" SelectedTrack="1" ShowHeader="False" ForeColor="#333333"> <FooterStyle BackColor="#990000" ForeColor="White" Font-Bold="True" /> <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" /> <AlternatingRowStyle BackColor="White" /> <PlayListTracks> <ASPNetMediaGUI:PlayListTrack Name="Mayday Parade" URL="example3.mp3">example3.mp3</ASPNetMediaGUI:PlayListTrack> </PlayListTracks> <Columns> <asp:TemplateField ShowHeader="False"> <itemtemplate> <asp:Image runat="server" src="coverart.jpg" width="50" height="50"></asp:Image> <asp:LinkButton ID="TrackSelectButton" runat="server" CausesValidation="False" CommandName="Select" Text='<%# Eval("TrackNumber")+". "+Eval("Name") %>' CommandArgument='<%# Eval("URL") %>' ></asp:LinkButton> </itemtemplate> </asp:TemplateField> </Columns> <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" /> <RowStyle BackColor="#FFFBD6" ForeColor="#333333" /> </ASPNetMediaGUI:PlayList> <br /> <h3>PlayList Buttons:</h3> <ASPNetMediaGUI:PlayTrackButton ID="PlayTrackButton1" runat="server" AssociatedControl="PlayList1" ButtonType="Link"></ASPNetMediaGUI:PlayTrackButton> <ASPNetMediaGUI:StopPlayListButton ID="StopPlayListButton1" runat="server" AssociatedControl="PlayList1" ButtonType="Link"></ASPNetMediaGUI:StopPlayListButton> </ContentTemplate> </asp:UpdatePanel> </div>
|
Rank: Member Groups: Member
Joined: 11/13/2008 Posts: 26 Points: 78 Location: New York
|
AutoPlay="true" solved the problem. But that's not what i want. User is suppose to listen to my music if he selects something from the playlist. Anybody with the same issue?
|