fixed video flashing when firefox window looses focus