reenLogger('Recorder is started');
          start.disabled = resume.disabled = true;
          pause.disabled = stopButton.disabled = false;
        };

        recorder.onstop = function(e){
          screenLogger('Recorder is stopped');
          start.disabled = false;
          pause.disabled = resume.disabled = stopButton.disabled = true;
        };

        recorder.onpause = function(e){
          screenLogger('Recorder is paused');
          pause.disabled = start.disabled = true;
          resume.