Skip to content

Instantly share code, notes, and snippets.

@dan-mckay
Last active February 1, 2016 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dan-mckay/7d08c59398129beaf391 to your computer and use it in GitHub Desktop.
Save dan-mckay/7d08c59398129beaf391 to your computer and use it in GitHub Desktop.
export async function load({id, src, onEnd}) {
try {
const node = await createNode(src, onEnd);
nodes[id] = node;
return {
duration: node.duration()
}
} catch(error) {
throw error;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment