Complete funtion for table env_video