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

Asked

Viewed 133 times

1

I need to get the MP3 duration information that is on an HTTP server using the C language#.

I tried Taglib# and Naudio, without success.

1 answer

2


I suggest you take a look at this page http://www.codeproject.com/Articles/8295/MPEG-Audio-Frame-Header which deals with the MP3 header.

Basically, what you can do is: Connect to the server and download the "piece" of the file containing the header, do a header analysis if the file bitrate nay for variable, you will know the duration exact, if it’s not, you can cherish, but to be sure, just downloading the complete file and analyzing frame by frame the same file.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.