Last active
February 1, 2016 14:21
-
-
Save dan-mckay/7d08c59398129beaf391 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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