Created
February 1, 2016 14:00
-
-
Save dariocravero/584e13c6a6e9ebc5ffd7 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}) { | |
const node = await createNode(src, onEnd); | |
nodes[id] = node; | |
return { | |
duration: node.duration() | |
}; | |
} |
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 function load({id, src, onEnd}) { | |
return createNode(src, onEnd) | |
.then(node => nodes[id] = node) | |
.then(node => ({ | |
duration: node.duration() | |
})); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment