Created
May 14, 2014 20:01
-
-
Save basilesimon/bfe8cf74adde164ac437 to your computer and use it in GitHub Desktop.
Pancarte player syntax
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
// timecode is the points we got during the recording | |
// video is the video | |
var events = { | |
{ | |
time: 4.0, | |
f: function() { | |
alert("We are at 4.0 in the video, and this fires."); | |
} | |
}, { | |
time: 8.0, | |
f: function() { | |
alert("We are at 8.0 in the video, and this fires."); | |
} | |
}, | |
}; | |
var p = new PancartePlayer(timecode, video, function() { | |
alert("HELLO."); | |
}, events, { | |
stroke: "rgba(0, 0, 0, 0.5)", | |
fill: "rgba(255, 255, 255, 0.3)" }); | |
p.play(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment