icecast-metadata-js
Advanced tools
Comparing version 1.2.2 to 1.2.3
{ | ||
"name": "icecast-metadata-js", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Library for Web Browsers and NodeJS that reads, parses, and synchronizes Icecast stream metadata", | ||
@@ -41,10 +41,10 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/jest": "^29.5.0", | ||
"@types/jest": "^29.5.1", | ||
"icecast-metadata-js": "file:./", | ||
"jest": "^29.5.0", | ||
"prettier": "^2.8.6" | ||
"prettier": "^2.8.7" | ||
}, | ||
"dependencies": { | ||
"codec-parser": "^2.2.1" | ||
"codec-parser": "2.4.0" | ||
} | ||
} |
@@ -9,3 +9,3 @@ # Icecast Metadata JS | ||
* Gets stream data and metadata from a raw Icecast response | ||
* Supports ICY and OGG (Vorbis Comment) metadata | ||
* Supports ICY and Ogg (Vorbis Comment) metadata | ||
* [`IcecastMetadataQueue`](#icecastmetadataqueue) | ||
@@ -53,3 +53,3 @@ * Queues metadata and schedules metadata updates | ||
``` | ||
IcecastMetadataReader supports reading ICY metadata, OGG (Vorbis Comment) metadata, or both. Each section below describes how to instantiate `IcecastMetadataReader` to use these different metadata types. | ||
IcecastMetadataReader supports reading ICY metadata, Ogg (Vorbis Comment) metadata, or both. Each section below describes how to instantiate `IcecastMetadataReader` to use these different metadata types. | ||
@@ -73,5 +73,5 @@ ### ICY Metadata | ||
### OGG Metadata | ||
### Ogg Metadata | ||
* OGG (Vorbis Comment) metadata, if available, usually offers more detail than ICY metadata. | ||
* Ogg (Vorbis Comment) metadata, if available, usually offers more detail than ICY metadata. | ||
@@ -86,5 +86,5 @@ ```javascript | ||
### ICY and OGG Metadata | ||
### ICY and Ogg Metadata | ||
* ICY and OGG metadata can both be read from the stream. Usually a stream will only have one or the other, but this option is possible if needed. | ||
* ICY and Ogg metadata can both be read from the stream. Usually a stream will only have one or the other, but this option is possible if needed. | ||
@@ -181,4 +181,4 @@ ```javascript | ||
* `["icy"]` - Parse ICY metadata only | ||
* `["ogg"]` - Parse OGG (vorbis comment) metadata only | ||
* `["icy", "ogg"]` - Parse both ICY and OGG metadata | ||
* `["ogg"]` - Parse Ogg (vorbis comment) metadata only | ||
* `["icy", "ogg"]` - Parse both ICY and Ogg metadata | ||
* default: `["icy"]` | ||
@@ -185,0 +185,0 @@ * `enableLogging` |
@@ -36,3 +36,3 @@ /* Copyright 2020-2021 Ethan Halsall | ||
* @param {string} [metadata.StreamUrl] (ICY) Url (usually album art) of the metadata update. | ||
* @param {string} [metadata.TITLE] (OGG) Url Title of the metadata update. | ||
* @param {string} [metadata.TITLE] (Ogg) Url Title of the metadata update. | ||
* @param {object} stats Object containing statistics on how many bytes were read and the current read position. | ||
@@ -39,0 +39,0 @@ * |
@@ -22,3 +22,3 @@ /* Copyright 2020-2021 Ethan Halsall | ||
/** | ||
* @description Parses ICY and OGG metadata from an Icecast stream | ||
* @description Parses ICY and Ogg metadata from an Icecast stream | ||
* @protected | ||
@@ -25,0 +25,0 @@ * @see IcecastMetadataReader |
@@ -21,3 +21,3 @@ /* Copyright 2020-2021 Ethan Halsall | ||
/** | ||
* @description Parses OGG metadata from an Icecast stream | ||
* @description Parses Ogg metadata from an Icecast stream | ||
* @protected | ||
@@ -73,3 +73,3 @@ * @see IcecastMetadataReader | ||
// max ogg page size | ||
const bytes = yield* super._getNextValue(6); // Sync with OGG page without sending stream data | ||
const bytes = yield* super._getNextValue(6); // Sync with Ogg page without sending stream data | ||
if ( | ||
@@ -101,4 +101,4 @@ bytes[0] === 0x4f && | ||
this._logError( | ||
"This stream is not an OGG stream. No OGG metadata will be returned.", | ||
"See https://github.com/eshaz/icecast-metadata-js for information on OGG metadata." | ||
"This stream is not an Ogg stream. No Ogg metadata will be returned.", | ||
"See https://github.com/eshaz/icecast-metadata-js for information on Ogg metadata." | ||
); | ||
@@ -105,0 +105,0 @@ this._onMetadataFailed("ogg"); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
396285
38
1810
0
+ Addedcodec-parser@2.4.0(transitive)
- Removedcodec-parser@2.5.0(transitive)
Updatedcodec-parser@2.4.0