Click here to Skip to main content
15,883,901 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello frends,
I am creating an web application for Music Player,my requirement is to play any online audio file,i have tried used object and embed tags but it works with static urls like-http://sound21.mp3pk.com/Dil%20De%20De%20Bandeya.mp3

But with dynamic link-http://www.dhingana.com/play/raabta/MjAwOTM3/pop/1
it doesnt work...
So how to do it?

With Regards,
Prema G
Posted

1 solution

It's possible using the NAudio open source .NET audio library, which is explained in the blog: http://mark-dot-net.blogspot.in/2011/05/how-to-play-back-streaming-mp3-using.html[^]

Essentially you have one thread downloading video frames, decompressing them and storing them in a BufferedWaveProvider. Another thread then plays back using the BufferedWaveProvider as an input.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900