add handling of video gap