Detect internet connection for flv file

is possible somehow detect the quality (speed) of internet connection and after that start the certain flv file?