handle video sync