Skip to content
Peter Ehrlich edited this page Jul 31, 2014 · 3 revisions

Version 2

Each .json file includes a hash of metadata, including one key called frames. These frames include the positional data of each joint, packed in to one large array.

  • Packed JSON (frames as arrays instead of object)
  {
    metadata: this.metadata,
    frames: this.packedFrameData()
  }
    metadata = {
      formatVersion: 2,
      generatedBy: 'LeapJS Playback 0.2.0',
      frames: this.rightCropPosition - this.leftCropPosition,
      protocolVersion: this.options.requestProtocolVersion,
      serviceVersion: this.options.serviceVersion,
      frameRate: this.frameRate().toPrecision(2),
      modified: (new Date).toString()
    };
Clone this wiki locally