examples/lib/leap-plugins-0.1.6.js
function (frameData) {
      // Would be better to check controller.streaming() in showOverlay, but that method doesn't exist, yet.
      this.setGraphic('wave');
      if (frameData.hands.length > 0) {
        this.recording.addFrame(frameData);
        this.hideOverlay();
      } else if ( !this.recording.blank() ) {
        this.finishRecording();
      }
    }
function (frameData) {
      // Would be better to check controller.streaming() in showOverlay, but that method doesn't exist, yet.
      this.setGraphic('wave');
      if (frameData.hands.length > 0) {
        this.recording.addFrame(frameData);
        this.hideOverlay();
      } else if ( !this.recording.blank() ) {
        this.finishRecording();
      }
    }
function ( frameData ) { // Would be better to check controller.streaming() in showOverlay, but that method doesn't exist, yet. this . setGraphic ( 'wave' ) ; if ( frameData . hands . length > 0 ) { this . recording . addFrame ( frameData ) ; this . hideOverlay ( ) ; } else if ( ! this . recording . blank ( ) ) { this . finishRecording ( ) ; } }
this method replaces connection.handleData when in record mode It accepts the raw connection data which is used to make a frame.
this method replaces connection . handleData when in record mode It accepts the raw connection data which is used to make a frame .