This project has moved. For the latest updates, please go here.

Detect full download in Mp3StreamingDemo

Jan 29, 2016 at 3:37 PM
Edited Jan 29, 2016 at 6:31 PM
Hi!
How can I detect that mp3 downloading from HttpWebResponse is over in NAudioDemo -> Mp3StreamingDemo or how much bytes were downloaded at the current moment? I've tried to compare readfullystream.Position and httpwebresponse.ContentLength, but in some reason ContentLength is always bigger, than Position, although ContentLength is a length of mp3 file byte array. Manipulations with bufferedWaveProvider don't work too.

Pic related