Skip to content

Instantly share code, notes, and snippets.

@adimasuhid
Created March 25, 2014 23:30
Show Gist options
  • Save adimasuhid/9773742 to your computer and use it in GitHub Desktop.
Save adimasuhid/9773742 to your computer and use it in GitHub Desktop.
Butterfly proto config
var config = require("../config/config.js")
function getUrl(name) {
return "http://" + config.ip + ":3003/media/" + name
}
video1 = {
id: 1,
transitions: {
initial: getUrl(""),
a: getUrl("vid2.mp4"),
b: getUrl("vid3.mp4"),
c: getUrl("main.mp4"),
reset: getUrl("")
}
}
video2 = {
id: 2,
transitions: {
a: 300000,
b: 6000000,
c: 9500000
}
}
video3 = {
id: 3,
transitions: {
a: 300000,
b: 600000,
c: 900000
}
}
main = {
id: "main",
transitions: {
initiatl: "",
a: getUrl("vid3.mp4"),
b: getUrl("vid1.mp4"),
c: getUrl("vid2.mp4"),
reset: ""
}
}
module.exports = [main, video1, video2, video3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment