How to play mp3 file from another server in .NET 2.0 (C # / vb.net)?

I want to create a window application that will play an mp3 file that will be on another server.

As an example,

I have a URL ( http://songs.mastemag.com/indian-movie-songs/L/download.php?get=2cdeb5bfb354f297e97ba6b6b3b53203&file=1/love-aaj-kal/01%20~%20Twist%20(MastiMag. com) .mp3 ). I want to play this file from a windowed application on my local machine without downloading this file (via streaming)

I have code that uses "winmm.dll" and plays a local mp3 file. Is there a way that I can use this DLL to play this file type.

You can also suggest me a different approach.

+3
source share
2 answers

Take a look at NAudio

0
source

An easy way would be to use Window Media Player Control (in stealth mode).
It can work with http urls and local (file) urls.

Howto: use it with .NET

0
source

Source: https://habr.com/ru/post/1711564/


All Articles