Audio file in .NetASAshiwani Sharma10yAsked Jun 19, 2016, 10:09 PM EDT4 answersShareLinkedInXCopy linkSaveHow can I play a audio file in .Net 4.0. Can any one tell me?
Audio file in .NetASAshiwani Sharma10yAsked Jun 19, 2016, 10:09 PM EDT4 answersShareLinkedInXCopy linkSaveHow can I play a audio file in .Net 4.0. Can any one tell me?
Vinay SinghRank #604 · 4K reputation10y agoPosted Jun 19, 2016, 10:14 PM EDT0 HiPlease check the linkhttp://www.aspsnippets.com/Articles/Save-MP3-Audio-Files-to-database-and-display-in-ASPNet-GridView-with-Play-and-Download-option.aspxhttp://www.c-sharpcorner.com/uploadfile/e628d9/playing-audio-and-video-files-using-C-Sharp/http://www.bipinjoshi.net/articles/1e86b933-6fde-4f71-82e3-3faf75deb8ac.aspxhttp://www.aspsnippets.com/Articles/Play-Audio-MP3-Files-in-ASPNet-using-Flash-Music-Player.aspx0
Rajeesh MenothRank #118 · 18.4K reputation10y agoPosted Jun 20, 2016, 12:00 AM EDT0Hi,Check this following reference :http://stackoverflow.com/questions/6739306/playing-audio-in-net-c-sharp0
Nirav DaraniyaRank #593 · 4.1K reputation10y agoPosted Jun 20, 2016, 1:36 AM EDT0Hi Ashiwani,YOu have to give "Windows Media Player" library as reference to your .net project then try below codepublic Form1() { InitializeComponent(); } WMPLib.WindowsMediaPlayer wplayer; private void Form1_Load(object sender, EventArgs e) { wplayer = new WMPLib.WindowsMediaPlayer(); } private void button1_Click(object sender, EventArgs e) { wplayer.URL = @"D:\Nirav Daraniya\Song\songname.mp3"; wplayer.controls.play(); }0RCRavi Choudhary2 reputation10y agoPosted Jun 29, 2016, 11:25 PM EDT0Hello.I did a quick search and someone asked a very similar question to yours here:http://www.codeproject.com/Questions/399311/how-to-create-video-player-in-window-application-c0Join to answer this questionEvery answer you publish earns 20 SHARP.Create free accountSign inKnow the answer?Answer a question in the forums and earn +20 SHARP for every answer.See unanswered questionsForumsTop experts01Arun PottiAnswers in the forums20answers02Tahir AnsariAnswers in the forums5answers03Kamlesh KumarAnswers in the forums5answers04Sam HobbsAnswers in the forums4answers05Željko PerićAnswers in the forums3answers?YouYour name goes here.Every answer: 20 SHARP.JoinFull leaderboard →2026DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
RCRavi Choudhary2 reputation10y agoPosted Jun 29, 2016, 11:25 PM EDT0Hello.I did a quick search and someone asked a very similar question to yours here:http://www.codeproject.com/Questions/399311/how-to-create-video-player-in-window-application-c0
Vinay SinghRank #604 · 4K reputationPosted Jun 19, 2016, 10:14 PM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Jun 20, 2016, 12:00 AM EDT
Nirav DaraniyaRank #593 · 4.1K reputationPosted Jun 20, 2016, 1:36 AM EDT
Ravi Choudhary2 reputationPosted Jun 29, 2016, 11:25 PM EDT
I did a quick search and someone asked a very similar question to yours here:
http://www.codeproject.com/Questions/399311/how-to-create-video-player-in-window-application-c
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts