Skip to content

Instantly share code, notes, and snippets.

@basilesimon
Created May 14, 2014 20:01
Show Gist options
  • Save basilesimon/bfe8cf74adde164ac437 to your computer and use it in GitHub Desktop.
Save basilesimon/bfe8cf74adde164ac437 to your computer and use it in GitHub Desktop.
Pancarte player syntax
// 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