C # How to get the length of an MP3 that is in an HTTP address

1

I need to get the length information of MP3s that are on an HTTP server using the C # language.

I've tried TagLib # and NAudio, without success.

    
asked by anonymous 21.10.2015 / 18:49

1 answer

2

I suggest you take a look at this link page that deals with the MP3 header.

Basically, what you can do is: Connect to the server and download the "piece" of the file that contains the header, make an analysis of the header, if the bitrate of the non file is variable , you will know the exact duration , if not, you can estimate , however to be sure, just downloading the complete file and analyzing frame by frame the same file. p>     

23.10.2015 / 06:04