Skip to content

Instantly share code, notes, and snippets.

@PamornT
Last active May 30, 2022 04:04
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 PamornT/5e8681efbb8162f1c15e8ba37a8ee86b to your computer and use it in GitHub Desktop.
Save PamornT/5e8681efbb8162f1c15e8ba37a8ee86b to your computer and use it in GitHub Desktop.
// Handle events
events.forEach(async(event) => {
if (event.type === 'videoPlayComplete') {
await savePointVideoComplete(event)
}
console.log(event)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment