video canvas global var