-
Notifications
You must be signed in to change notification settings - Fork 21
Format Spec
Peter Ehrlich edited this page Jul 31, 2014
·
3 revisions
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()
};
- Packing structure: recording.js#L7
- Metadata: recording.js#L245
- toHash: recording.js#L435
Leap Developers — API Docs — LeapJS — Plugins — GLMatrix