Only show video frame and image frame at appropriate times