video loop, play while recording, writer tmp fix