I have noticed that youtube and dailymotion have a mechanism in place to be able to "choose" a video quality for you based on your internet connection.For e.g since i have a 1 mbps internet connection , video load at 360p by default.For those with higher internet connection video load at 480p/720p/1024
How does youtube determine which internet connection i have ?
Implementing such a feature definitely reduce bandwidth for the host and enhance the user experience.
I would love a php based solution so that i can try to implement this on my site