C# .NET - Music Player - Asked By hiren dhameliya on 11-Mar-12 08:43 AM

Hi
 i want to how i can add music player in asp.net page and C# page 

reply me as  soon as possible ....
thanks
dipa ahuja replied to hiren dhameliya on 11-Mar-12 09:31 AM
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param name="FileName" value="liar.wav" />
</object>
 
or try this control
 
<http://www.codeproject.com/KB/custom-controls/MP3PlayerControl.aspx>
 
 
Abhinav Sejpal replied to hiren dhameliya on 11-Mar-12 05:06 PM
Hello,

Core Example with ASP.NET Embedded Video & Music Player


<%@ Page Language="C#" 
AutoEventWireup="true"  
CodeFile="Default.aspx.cs"
Inherits="_DEMO" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ Register assembly="AjaxControlToolkit"
namespace="AjaxControlToolkit"
tagprefix="cc1" %>

<html xmlns="http://www.w3.org/1999/xhtml">

    <head runat="server">
      <title>ASP.NET Embedded Video Player | YouTube DEMO</title>
    </head>

    <body>
      <form id="form1" runat="server">
      <asp:ScriptManager ID="ScriptManager1" runat="server" />
      <asp:UpdatePanel ID="UpdatePanel1" runat="server" updatemode="Conditional" >
        <ContentTemplate>
          <div>
            <!-- ALL CONTENT IS SHOWN FOR DEMO PURPOSE ONLY-->
            <asp:DropDownList ID="cmbPlaylist" runat="server" AutoPostBack="True">
              <asp:ListItem Value="x_4CNvG1Q_M">
              Anastasia Volochkova dancing (Adiemus)
              </asp:ListItem>
              
              <asp:ListItem Value="raRaxt_KM9Q">
              Sound Of Silence (Masters of Chant)
              </asp:ListItem>
              
              <asp:ListItem Value="8qSeYLhe09s">
              For Whom The Bell Tolls (Bee Gees)
              </asp:ListItem>
            </asp:DropDownList>
            
            <br /><br />
            <asp:Literal ID="Literal1" runat="server"></asp:Literal>
          </div>

          <asp:Button ID="Button1" runat="server"
          Text="START AT 15 SEC" onclick="Button1_Click" />
          
          <asp:Button ID="Button2" runat="server"
          Text="START AT 60 SEC" onclick="Button2_Click" />
        
        </ContentTemplate>
      </asp:UpdatePanel>
      
      <hr />
      <h4>Initial settings: 640x505, autoplay=0</h4>
      <hr />
      <hr />
      </form>
    </body>
</html>
http://videoplayer.codeplex.com/

\PS: Find the attachment for Code behind pages.    --> Header Files.zip

following links will helpful for see the perfect scenario of various music  players

You could use this control, its easy to implement

http://www.aspnetaudio.com/..... But it is a licensed control  

Core code ::   http://channel9.msdn.com/coding4fun/articles/Building-a-Web-Site-with-ASP-NET-20-to-Navigate-Your-Music-Library.

hiren dhameliya replied to dipa ahuja on 08-Apr-12 06:02 AM
hi 

this music player works in IE , but i want to use in Chrome ......
please reply me .....

thanks