examples/lib/leap-plugins-0.1.6.js
function (frames) {

        this.setFrames(frames);

        if (player.recording != this){
          console.log('recordings changed during load');
          return
        }

        // it would be better to use streamingCount here, but that won't be in until 0.5.0+
        // For now, it just flashes for a moment until the first frame comes through with a hand on it.
        // if (autoPlay && (controller.streamingCount == 0 || pauseOnHand)) {
        if (player.autoPlay) {
          player.play();
          if (player.pauseOnHand) {
            player.setGraphic('connect');
          }
        }

        player.controller.emit('playback.recordingSet', this);
      }
function (frames) {

        this.setFrames(frames);

        if (player.recording != this){
          console.log('recordings changed during load');
          return
        }

        // it would be better to use streamingCount here, but that won't be in until 0.5.0+
        // For now, it just flashes for a moment until the first frame comes through with a hand on it.
        // if (autoPlay && (controller.streamingCount == 0 || pauseOnHand)) {
        if (player.autoPlay) {
          player.play();
          if (player.pauseOnHand) {
            player.setGraphic('connect');
          }
        }

        player.controller.emit('playback.recordingSet', this);
      }
function ( frames ) { this . setFrames ( frames ) ; if ( player . recording != this ) { console . log ( 'recordings changed during load' ) ; return } // it would be better to use streamingCount here, but that won't be in until 0.5.0+ // For now, it just flashes for a moment until the first frame comes through with a hand on it. // if (autoPlay && (controller.streamingCount == 0 || pauseOnHand)) { if ( player . autoPlay ) { player . play ( ) ; if ( player . pauseOnHand ) { player . setGraphic ( 'connect' ) ; } } player . controller . emit ( 'playback.recordingSet' , this ) ; }
this is called on the context of the recording
this is called on the context of the recording