c# - Get internet bandwidth/speed information in a Windows Store App -


i need relatively close information on actual internet speed in windows store (c#) app. need because user can play videos hosted online. there 2 versions of video available (high quality/low quality). according internet speed of user, app should stream corresponding video version.

i've tried download dummy file of 5mb , @ time needed task (for getting idea of internet speed). i've found results scattered , changing. might better results larger file, that's not in favour of user experience.

is there more simple way of getting current internet bandwidth?

p.s.: iis smooth streaming not possible.

pps.: maybe right path follow not know how use class in case: streamsocketinformation.bandwidthstatistics

get downloading speed below given code.

var connectionprofile = networkinformation.getinternetconnectionprofile(); var dataplanstatus = connectionprofile.getdataplanstatus(); ulong? outboundbandwidth = dataplanstatus.outboundbitspersecond; if (outboundbandwidth.hasvalue) {     system.diagnostics.debug.writeline("outboundbitspersecond : " + outboundbandwidth + "\n"); } else {     system.diagnostics.debug.writeline("outboundbitspersecond : not defined\n"); } 

connecting networks , web services (windows store apps using c#/vb/c++ , xaml)

connection state , cost management (windows store apps using c#/vb/c++ , xaml)


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -