Implemented timeout for getUserMedia check.