Skip to content

Commit

Permalink
feat: add enableFrameCRC32 option
Browse files Browse the repository at this point in the history
  • Loading branch information
eshaz committed Jul 23, 2022
1 parent d5c50e5 commit 39be4c1
Show file tree
Hide file tree
Showing 5 changed files with 963 additions and 920 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ The demo for [`icecast-metadata-js`](https://github.com/eshaz/icecast-metadata-j
* `codecHeaderData` Object containing codec header information that was updated.
* `updateTimestamp` Timestamp in milliseconds when the codec information was updated.
* `options.enableLogging` *optional* Set to true to enable warning and error messages.
* `options.enableFrameCRC32` *optional* Set to false to disable the crc32 calculation for each frame. This will save a marginal amount of execution time if you don't need this information.

### Methods

Expand Down
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ declare interface ICodecParserOptions {
updateTimestamp: number
) => any;
enableLogging?: boolean;
enableFrameCRC32?: boolean;
}

declare class CodecParser<
Expand Down
Loading

0 comments on commit 39be4c1

Please sign in to comment.