Skip to content

Conversation

@adammw
Copy link
Collaborator

@adammw adammw commented Aug 8, 2013

Pretty self-explanatory, provides a new method to play previews and an example which uses it.
From the earlier conversation in #23. The code hasn't changed since then - just submitting it as a PR so it doesn't get forgotten.

lib/track.js Outdated
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This emit call will happen before the user has a chance to attach an "error" listener to the stream (since it hasn't been returned yet). Let's call this in a process.nextTick() callback.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both this and the other comment are fixed in 3dd517e. I never realised why everyone used process.nextTick for emitting events but now that you explain it, that makes a lot of sense. Thanks.

TooTallNate added a commit that referenced this pull request Aug 18, 2013
Add playPreview method to Track object
@TooTallNate TooTallNate merged commit f499834 into TooTallNate:master Aug 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants