fixing the media loop for video