part 6: modify Video to release video hardware when it changes visibility