I need to get a relatively close information on the actual internet speed in my Windows Store (c#) app. I need this because the user can play videos that are hosted online. There are always two versions of the Video available (high quality/low quality). According to the internet speed of the user, the App should stream the corresponding video version.
I've tried to download a dummy file of 5MB and look at the time that was needed for this task (for getting an idea of the internet speed). But I've found that the results are too scattered and changing. I might get better results with a larger file, but that's not in favour of the user experience.
Is there a more simple way of getting the current Internet bandwidth?
P.S.: IIS Smooth streaming is not possible.
PPS.: Maybe this would be the right path to follow but I do not know how to use this class in my case: StreamSocketInformation.BandwidthStatistics