Skip to content

Instantly share code, notes, and snippets.

@alg
Last active December 11, 2015 13:48
Show Gist options
  • Select an option

  • Save alg/4610019 to your computer and use it in GitHub Desktop.

Select an option

Save alg/4610019 to your computer and use it in GitHub Desktop.
VideoRendering.render({
video: [
fixtureFile("1.m4v"), // passing as TiFile
fixtureFile("2.m4v").getNativePath() // passing as URL (native path is presented as file://...)
],
titles: [
{ text: "AUG 6, 1945",
font: "HelveticaNeue-CondensedBlack",
fontSize: 32,
color: '#ffffff',
left: 10,
bottom: 80,
fadeIn: { from: 2, duration: 0.5 },
fadeOut: { from: 5, duration: 0.5 }
},
{ text: "HIROSHIMA D-DAY",
font: "ArialMT",
fontSize: 20,
color: '#eeeeee',
left: 10,
bottom: 40,
fadeIn: { from: 3, duration: 0.5 },
fadeOut: { from: 6, duration: 0.5 }
}
],
success: onRenderingSuccess,
cancel: function() { alert('canceled'); },
error: onRenderingError
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment