Make calculation wait for video if it's playing