Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
leetreveil committed Nov 7, 2012
1 parent 3faea2a commit c1f3fa5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -51,6 +51,14 @@ parser.on('artist', function(result) {
console.log(result);
});
```

You can also listen for custom metadata types that are not part of the standard metadata as defined above. For example if you wanted to read the TLEN frame from a id3v2.x file you can do this:

```javascript
parser.on('TLEN', function(result) {
console.log(result);
});
```

You can also listen for the 'done' event, this will be raised when parsing has finished or an error has occurred. This could be
used to disconnect from the stream as soon as parsing has finished, saving bandwidth.
Expand Down

0 comments on commit c1f3fa5

Please sign in to comment.