Skip to content

Instantly share code, notes, and snippets.

@joshuarule
Last active January 8, 2019 21:44
Show Gist options
  • Save joshuarule/b796346e27899d7e4c81503b2042dd89 to your computer and use it in GitHub Desktop.
Save joshuarule/b796346e27899d7e4c81503b2042dd89 to your computer and use it in GitHub Desktop.
const gallery = {
type: {
"default": {
maxSlides: 10, // static
galleryTitle: string, // max 20 char
autoPlay: boolean,
slideDuration: number in seconds min 3 - 10,
slides: [
{
slideTitle: string, // optional
mediaType: {
video: {
source: "mp4, mov",
posterImage: "jpg, png, gif", // ????? any dimension constraints to image?
duration: {
minutes: number (0 - 59),
seconds: number (0 - 59)
}
},
image: { // any dimension constraints to image?
source: "jpg, png"
}
}
}
]
},
"progressive": {
minSlides: 2, //???????????
maxSlides: 5, //static
galleryTitle: string, // optional max 20 char
autoPlay: boolean,
slideDuration: number in seconds,
slides: [
{
slideTitle: string, // optional max 20 char
image: { // any dimension constraints to image?
source: "jpg, png"
},
annotations: [ // min: 0 max: 3
{
title: string, // 150 max chars
coordindates: {
x: number,
y: number
}
}
]
}
]
},
"progressiveVideo": {
minSlides: 2, //???????????
maxSlides: 5, //static
galleryTitle: string, // optional max 20 char
autoPlay: boolean,
slideDuration: number in seconds,
video: {
source: "mp4, mov, m4v",
duration: {
minutes: number (0 - 59),
seconds: number (0 - 59)
}
},
slides: [
{
title: string,
timestamp: {
minutes: number (0 - 59),
seconds: number (0 - 59),
},
annotations: [ // min: 0 max: 3
{
title: string, // 150 max chars
coordindates: {
x: number,
y: number
}
}
]
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment