Created
March 25, 2014 23:30
-
-
Save adimasuhid/9773742 to your computer and use it in GitHub Desktop.
Butterfly proto config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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