Skip to content

Instantly share code, notes, and snippets.

@cbrammer
Last active December 23, 2016 17:15
Show Gist options
  • Save cbrammer/010e9498e5c72da895b659436a1dce69 to your computer and use it in GitHub Desktop.
Save cbrammer/010e9498e5c72da895b659436a1dce69 to your computer and use it in GitHub Desktop.
Proposed video Metadata data structure
{
"startSeconds": 100,
"endSeconds": 200
}
  • Every data point will have the fields from base-item.json
  • The kitchen sink example has all known needed data types in one place. It is not expected that they will all be in one document
  • Needs to support video treadmill workouts as well as video 6 pulley workouts
  • Does not express rounds (a repeated group of supersets in the data structure, insteads leaves it to simply have multiple supersets
  • Pauses between supersets can be expressed as a superset with no sets
{
"audio": "https://track.mp3",
"titles": [
{
"startSeconds": 100,
"endSeconds": 200,
"title": "this is my title",
"subtitle": "this is my subtitle"
}
],
"calorieMultipliers": [
{
"startSeconds": 100,
"endSeconds": 200,
"calorieMultiplier": 1.2
}
],
"supersets": [
{
"startSeconds": 100,
"endSeconds": 200,
"title": "this is my superset title",
"sets": [
{
"startSeconds": 100,
"endSeconds": 130,
"title": "this is my first set title",
"reps": 10
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment