Added callbacks for startRecording and startPlaying