Convert MovieRecorder class to Swift.