mirror of
https://github.com/LuanRT/googlevideo.git
synced 2026-06-30 18:05:54 +00:00
chore(docs): Update API ref
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
# Class: CacheManager
|
||||
|
||||
Defined in: [src/utils/CacheManager.ts:14](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/CacheManager.ts#L14)
|
||||
Defined in: [codeberg/googlevideo/src/utils/CacheManager.ts:14](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/CacheManager.ts#L14)
|
||||
|
||||
A "proper" cache for storing segments.
|
||||
|
||||
@@ -12,7 +12,7 @@ A "proper" cache for storing segments.
|
||||
|
||||
> **new CacheManager**(`maxSizeMB`, `maxAgeSeconds`): `CacheManager`
|
||||
|
||||
Defined in: [src/utils/CacheManager.ts:23](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/CacheManager.ts#L23)
|
||||
Defined in: [codeberg/googlevideo/src/utils/CacheManager.ts:23](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/CacheManager.ts#L23)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -34,7 +34,7 @@ Defined in: [src/utils/CacheManager.ts:23](https://github.com/LuanRT/googlevideo
|
||||
|
||||
> **dispose**(): `void`
|
||||
|
||||
Defined in: [src/utils/CacheManager.ts:159](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/CacheManager.ts#L159)
|
||||
Defined in: [codeberg/googlevideo/src/utils/CacheManager.ts:159](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/CacheManager.ts#L159)
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -46,7 +46,7 @@ Defined in: [src/utils/CacheManager.ts:159](https://github.com/LuanRT/googlevide
|
||||
|
||||
> **getCacheEntries**(): `object`
|
||||
|
||||
Defined in: [src/utils/CacheManager.ts:29](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/CacheManager.ts#L29)
|
||||
Defined in: [codeberg/googlevideo/src/utils/CacheManager.ts:29](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/CacheManager.ts#L29)
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -64,9 +64,9 @@ Defined in: [src/utils/CacheManager.ts:29](https://github.com/LuanRT/googlevideo
|
||||
|
||||
### getInitSegment()
|
||||
|
||||
> **getInitSegment**(`key`): `undefined` \| `Uint8Array`
|
||||
> **getInitSegment**(`key`): `undefined` \| `Uint8Array`\<`ArrayBufferLike`\>
|
||||
|
||||
Defined in: [src/utils/CacheManager.ts:66](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/CacheManager.ts#L66)
|
||||
Defined in: [codeberg/googlevideo/src/utils/CacheManager.ts:66](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/CacheManager.ts#L66)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -76,15 +76,15 @@ Defined in: [src/utils/CacheManager.ts:66](https://github.com/LuanRT/googlevideo
|
||||
|
||||
#### Returns
|
||||
|
||||
`undefined` \| `Uint8Array`
|
||||
`undefined` \| `Uint8Array`\<`ArrayBufferLike`\>
|
||||
|
||||
***
|
||||
|
||||
### getSegment()
|
||||
|
||||
> **getSegment**(`key`): `undefined` \| `Uint8Array`
|
||||
> **getSegment**(`key`): `undefined` \| `Uint8Array`\<`ArrayBufferLike`\>
|
||||
|
||||
Defined in: [src/utils/CacheManager.ts:84](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/CacheManager.ts#L84)
|
||||
Defined in: [codeberg/googlevideo/src/utils/CacheManager.ts:84](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/CacheManager.ts#L84)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -94,7 +94,7 @@ Defined in: [src/utils/CacheManager.ts:84](https://github.com/LuanRT/googlevideo
|
||||
|
||||
#### Returns
|
||||
|
||||
`undefined` \| `Uint8Array`
|
||||
`undefined` \| `Uint8Array`\<`ArrayBufferLike`\>
|
||||
|
||||
***
|
||||
|
||||
@@ -102,7 +102,7 @@ Defined in: [src/utils/CacheManager.ts:84](https://github.com/LuanRT/googlevideo
|
||||
|
||||
> **setInitSegment**(`key`, `data`): `void`
|
||||
|
||||
Defined in: [src/utils/CacheManager.ts:39](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/CacheManager.ts#L39)
|
||||
Defined in: [codeberg/googlevideo/src/utils/CacheManager.ts:39](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/CacheManager.ts#L39)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -124,7 +124,7 @@ Defined in: [src/utils/CacheManager.ts:39](https://github.com/LuanRT/googlevideo
|
||||
|
||||
> **setSegment**(`key`, `data`): `void`
|
||||
|
||||
Defined in: [src/utils/CacheManager.ts:54](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/CacheManager.ts#L54)
|
||||
Defined in: [codeberg/googlevideo/src/utils/CacheManager.ts:54](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/CacheManager.ts#L54)
|
||||
|
||||
#### Parameters
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Class: EventEmitterLike
|
||||
|
||||
Defined in: [src/utils/EventEmitterLike.ts:22](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/EventEmitterLike.ts#L22)
|
||||
Defined in: [codeberg/googlevideo/src/utils/EventEmitterLike.ts:22](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/EventEmitterLike.ts#L22)
|
||||
|
||||
## Extends
|
||||
|
||||
@@ -18,7 +18,7 @@ Defined in: [src/utils/EventEmitterLike.ts:22](https://github.com/LuanRT/googlev
|
||||
|
||||
> **new EventEmitterLike**(): `EventEmitterLike`
|
||||
|
||||
Defined in: [src/utils/EventEmitterLike.ts:25](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/EventEmitterLike.ts#L25)
|
||||
Defined in: [codeberg/googlevideo/src/utils/EventEmitterLike.ts:25](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/EventEmitterLike.ts#L25)
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -34,7 +34,7 @@ Defined in: [src/utils/EventEmitterLike.ts:25](https://github.com/LuanRT/googlev
|
||||
|
||||
> **addEventListener**(`type`, `callback`, `options?`): `void`
|
||||
|
||||
Defined in: node\_modules/typescript/lib/lib.dom.d.ts:8303
|
||||
Defined in: codeberg/googlevideo/node\_modules/typescript/lib/lib.dom.d.ts:8876
|
||||
|
||||
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
|
||||
|
||||
@@ -80,7 +80,7 @@ The event listener is appended to target's event listener list and is not append
|
||||
|
||||
> **dispatchEvent**(`event`): `boolean`
|
||||
|
||||
Defined in: node\_modules/typescript/lib/lib.dom.d.ts:8309
|
||||
Defined in: codeberg/googlevideo/node\_modules/typescript/lib/lib.dom.d.ts:8882
|
||||
|
||||
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
|
||||
|
||||
@@ -106,7 +106,7 @@ Dispatches a synthetic event event to target and returns true if either event's
|
||||
|
||||
> **emit**(`type`, ...`args`): `void`
|
||||
|
||||
Defined in: [src/utils/EventEmitterLike.ts:29](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/EventEmitterLike.ts#L29)
|
||||
Defined in: [codeberg/googlevideo/src/utils/EventEmitterLike.ts:29](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/EventEmitterLike.ts#L29)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -128,7 +128,7 @@ Defined in: [src/utils/EventEmitterLike.ts:29](https://github.com/LuanRT/googlev
|
||||
|
||||
> **off**(`type`, `listener`): `void`
|
||||
|
||||
Defined in: [src/utils/EventEmitterLike.ts:59](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/EventEmitterLike.ts#L59)
|
||||
Defined in: [codeberg/googlevideo/src/utils/EventEmitterLike.ts:59](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/EventEmitterLike.ts#L59)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -150,7 +150,7 @@ Defined in: [src/utils/EventEmitterLike.ts:59](https://github.com/LuanRT/googlev
|
||||
|
||||
> **on**(`type`, `listener`): `void`
|
||||
|
||||
Defined in: [src/utils/EventEmitterLike.ts:34](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/EventEmitterLike.ts#L34)
|
||||
Defined in: [codeberg/googlevideo/src/utils/EventEmitterLike.ts:34](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/EventEmitterLike.ts#L34)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -172,7 +172,7 @@ Defined in: [src/utils/EventEmitterLike.ts:34](https://github.com/LuanRT/googlev
|
||||
|
||||
> **once**(`type`, `listener`): `void`
|
||||
|
||||
Defined in: [src/utils/EventEmitterLike.ts:46](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/EventEmitterLike.ts#L46)
|
||||
Defined in: [codeberg/googlevideo/src/utils/EventEmitterLike.ts:46](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/EventEmitterLike.ts#L46)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -194,7 +194,7 @@ Defined in: [src/utils/EventEmitterLike.ts:46](https://github.com/LuanRT/googlev
|
||||
|
||||
> **removeAllListeners**(`type?`): `void`
|
||||
|
||||
Defined in: [src/utils/EventEmitterLike.ts:67](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/EventEmitterLike.ts#L67)
|
||||
Defined in: [codeberg/googlevideo/src/utils/EventEmitterLike.ts:67](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/EventEmitterLike.ts#L67)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -212,7 +212,7 @@ Defined in: [src/utils/EventEmitterLike.ts:67](https://github.com/LuanRT/googlev
|
||||
|
||||
> **removeEventListener**(`type`, `callback`, `options?`): `void`
|
||||
|
||||
Defined in: node\_modules/typescript/lib/lib.dom.d.ts:8315
|
||||
Defined in: codeberg/googlevideo/node\_modules/typescript/lib/lib.dom.d.ts:8888
|
||||
|
||||
Removes the event listener in target's event listener list with the same type, callback, and options.
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Class: Logger
|
||||
|
||||
Defined in: [src/utils/Logger.ts:23](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/Logger.ts#L23)
|
||||
Defined in: [codeberg/googlevideo/src/utils/Logger.ts:23](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/Logger.ts#L23)
|
||||
|
||||
Singleton logger utility.
|
||||
|
||||
@@ -32,7 +32,7 @@ logger.error('MyTag', 'An error occurred');
|
||||
|
||||
> **debug**(`tag`, ...`messages`): `void`
|
||||
|
||||
Defined in: [src/utils/Logger.ts:95](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/Logger.ts#L95)
|
||||
Defined in: [codeberg/googlevideo/src/utils/Logger.ts:95](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/Logger.ts#L95)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -54,7 +54,7 @@ Defined in: [src/utils/Logger.ts:95](https://github.com/LuanRT/googlevideo/blob/
|
||||
|
||||
> **error**(`tag`, ...`messages`): `void`
|
||||
|
||||
Defined in: [src/utils/Logger.ts:83](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/Logger.ts#L83)
|
||||
Defined in: [codeberg/googlevideo/src/utils/Logger.ts:83](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/Logger.ts#L83)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -76,7 +76,7 @@ Defined in: [src/utils/Logger.ts:83](https://github.com/LuanRT/googlevideo/blob/
|
||||
|
||||
> **getLogLevels**(): `Set`\<[`LogLevel`](../enumerations/LogLevel.md)\>
|
||||
|
||||
Defined in: [src/utils/Logger.ts:59](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/Logger.ts#L59)
|
||||
Defined in: [codeberg/googlevideo/src/utils/Logger.ts:59](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/Logger.ts#L59)
|
||||
|
||||
Gets the current set of active log levels.
|
||||
|
||||
@@ -92,7 +92,7 @@ A new Set containing the active LogLevel enums.
|
||||
|
||||
> **info**(`tag`, ...`messages`): `void`
|
||||
|
||||
Defined in: [src/utils/Logger.ts:91](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/Logger.ts#L91)
|
||||
Defined in: [codeberg/googlevideo/src/utils/Logger.ts:91](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/Logger.ts#L91)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -114,7 +114,7 @@ Defined in: [src/utils/Logger.ts:91](https://github.com/LuanRT/googlevideo/blob/
|
||||
|
||||
> **setLogLevels**(...`levels`): `void`
|
||||
|
||||
Defined in: [src/utils/Logger.ts:40](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/Logger.ts#L40)
|
||||
Defined in: [codeberg/googlevideo/src/utils/Logger.ts:40](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/Logger.ts#L40)
|
||||
|
||||
Sets the active log levels.
|
||||
Call with LogLevel.NONE or no arguments to turn off all logging.
|
||||
@@ -137,7 +137,7 @@ Use LogLevel.ALL to enable all log levels.
|
||||
|
||||
> **warn**(`tag`, ...`messages`): `void`
|
||||
|
||||
Defined in: [src/utils/Logger.ts:87](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/Logger.ts#L87)
|
||||
Defined in: [codeberg/googlevideo/src/utils/Logger.ts:87](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/Logger.ts#L87)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -159,7 +159,7 @@ Defined in: [src/utils/Logger.ts:87](https://github.com/LuanRT/googlevideo/blob/
|
||||
|
||||
> `static` **getInstance**(): `Logger`
|
||||
|
||||
Defined in: [src/utils/Logger.ts:27](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/Logger.ts#L27)
|
||||
Defined in: [codeberg/googlevideo/src/utils/Logger.ts:27](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/Logger.ts#L27)
|
||||
|
||||
#### Returns
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Class: RequestMetadataManager
|
||||
|
||||
Defined in: [src/utils/RequestMetadataManager.ts:6](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/RequestMetadataManager.ts#L6)
|
||||
Defined in: [codeberg/googlevideo/src/utils/RequestMetadataManager.ts:6](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/RequestMetadataManager.ts#L6)
|
||||
|
||||
Manages request metadata objects.
|
||||
|
||||
@@ -12,7 +12,7 @@ Manages request metadata objects.
|
||||
|
||||
> **new RequestMetadataManager**(): `RequestMetadataManager`
|
||||
|
||||
Defined in: [src/utils/RequestMetadataManager.ts:12](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/RequestMetadataManager.ts#L12)
|
||||
Defined in: [codeberg/googlevideo/src/utils/RequestMetadataManager.ts:12](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/RequestMetadataManager.ts#L12)
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -24,7 +24,7 @@ Defined in: [src/utils/RequestMetadataManager.ts:12](https://github.com/LuanRT/g
|
||||
|
||||
> **metadataMap**: `Map`\<`string`, [`SabrRequestMetadata`](../../sabr-streaming-adapter/interfaces/SabrRequestMetadata.md)\>
|
||||
|
||||
Defined in: [src/utils/RequestMetadataManager.ts:7](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/RequestMetadataManager.ts#L7)
|
||||
Defined in: [codeberg/googlevideo/src/utils/RequestMetadataManager.ts:7](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/RequestMetadataManager.ts#L7)
|
||||
|
||||
## Methods
|
||||
|
||||
@@ -32,7 +32,7 @@ Defined in: [src/utils/RequestMetadataManager.ts:7](https://github.com/LuanRT/go
|
||||
|
||||
> **getRequestMetadata**(`url`, `del`): `undefined` \| [`SabrRequestMetadata`](../../sabr-streaming-adapter/interfaces/SabrRequestMetadata.md)
|
||||
|
||||
Defined in: [src/utils/RequestMetadataManager.ts:17](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/RequestMetadataManager.ts#L17)
|
||||
Defined in: [codeberg/googlevideo/src/utils/RequestMetadataManager.ts:17](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/RequestMetadataManager.ts#L17)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -54,7 +54,7 @@ Defined in: [src/utils/RequestMetadataManager.ts:17](https://github.com/LuanRT/g
|
||||
|
||||
> **setRequestMetadata**(`url`, `context`): `void`
|
||||
|
||||
Defined in: [src/utils/RequestMetadataManager.ts:37](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/RequestMetadataManager.ts#L37)
|
||||
Defined in: [codeberg/googlevideo/src/utils/RequestMetadataManager.ts:37](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/RequestMetadataManager.ts#L37)
|
||||
|
||||
#### Parameters
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Class: SabrAdapterError
|
||||
|
||||
Defined in: [src/utils/EventEmitterLike.ts:15](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/EventEmitterLike.ts#L15)
|
||||
Defined in: [codeberg/googlevideo/src/utils/EventEmitterLike.ts:15](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/EventEmitterLike.ts#L15)
|
||||
|
||||
## Extends
|
||||
|
||||
@@ -14,7 +14,7 @@ Defined in: [src/utils/EventEmitterLike.ts:15](https://github.com/LuanRT/googlev
|
||||
|
||||
> **new SabrAdapterError**(`message`, `code?`): `SabrAdapterError`
|
||||
|
||||
Defined in: [src/utils/EventEmitterLike.ts:16](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/EventEmitterLike.ts#L16)
|
||||
Defined in: [codeberg/googlevideo/src/utils/EventEmitterLike.ts:16](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/EventEmitterLike.ts#L16)
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -40,7 +40,7 @@ Defined in: [src/utils/EventEmitterLike.ts:16](https://github.com/LuanRT/googlev
|
||||
|
||||
> `optional` **code**: `string`
|
||||
|
||||
Defined in: [src/utils/EventEmitterLike.ts:16](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/EventEmitterLike.ts#L16)
|
||||
Defined in: [codeberg/googlevideo/src/utils/EventEmitterLike.ts:16](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/EventEmitterLike.ts#L16)
|
||||
|
||||
***
|
||||
|
||||
@@ -48,7 +48,7 @@ Defined in: [src/utils/EventEmitterLike.ts:16](https://github.com/LuanRT/googlev
|
||||
|
||||
> **message**: `string`
|
||||
|
||||
Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1077
|
||||
Defined in: codeberg/googlevideo/node\_modules/typescript/lib/lib.es5.d.ts:1077
|
||||
|
||||
#### Inherited from
|
||||
|
||||
@@ -60,7 +60,7 @@ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1077
|
||||
|
||||
> **name**: `string`
|
||||
|
||||
Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1076
|
||||
Defined in: codeberg/googlevideo/node\_modules/typescript/lib/lib.es5.d.ts:1076
|
||||
|
||||
#### Inherited from
|
||||
|
||||
@@ -72,7 +72,7 @@ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1076
|
||||
|
||||
> `optional` **stack**: `string`
|
||||
|
||||
Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1078
|
||||
Defined in: codeberg/googlevideo/node\_modules/typescript/lib/lib.es5.d.ts:1078
|
||||
|
||||
#### Inherited from
|
||||
|
||||
@@ -80,103 +80,13 @@ Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1078
|
||||
|
||||
***
|
||||
|
||||
### stackTraceLimit
|
||||
### prepareStackTrace()?
|
||||
|
||||
> `static` **stackTraceLimit**: `number`
|
||||
> `static` `optional` **prepareStackTrace**: (`err`, `stackTraces`) => `any`
|
||||
|
||||
Defined in: node\_modules/@types/node/globals.d.ts:162
|
||||
Defined in: node\_modules/@types/node/globals.d.ts:29
|
||||
|
||||
The `Error.stackTraceLimit` property specifies the number of stack frames
|
||||
collected by a stack trace (whether generated by `new Error().stack` or
|
||||
`Error.captureStackTrace(obj)`).
|
||||
|
||||
The default value is `10` but may be set to any valid JavaScript number. Changes
|
||||
will affect any stack trace captured _after_ the value has been changed.
|
||||
|
||||
If set to a non-number value, or set to a negative number, stack traces will
|
||||
not capture any frames.
|
||||
|
||||
#### Inherited from
|
||||
|
||||
`Error.stackTraceLimit`
|
||||
|
||||
## Methods
|
||||
|
||||
### captureStackTrace()
|
||||
|
||||
> `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
|
||||
|
||||
Defined in: node\_modules/@types/node/globals.d.ts:146
|
||||
|
||||
Creates a `.stack` property on `targetObject`, which when accessed returns
|
||||
a string representing the location in the code at which
|
||||
`Error.captureStackTrace()` was called.
|
||||
|
||||
```js
|
||||
const myObject = {};
|
||||
Error.captureStackTrace(myObject);
|
||||
myObject.stack; // Similar to `new Error().stack`
|
||||
```
|
||||
|
||||
The first line of the trace will be prefixed with
|
||||
`${myObject.name}: ${myObject.message}`.
|
||||
|
||||
The optional `constructorOpt` argument accepts a function. If given, all frames
|
||||
above `constructorOpt`, including `constructorOpt`, will be omitted from the
|
||||
generated stack trace.
|
||||
|
||||
The `constructorOpt` argument is useful for hiding implementation
|
||||
details of error generation from the user. For instance:
|
||||
|
||||
```js
|
||||
function a() {
|
||||
b();
|
||||
}
|
||||
|
||||
function b() {
|
||||
c();
|
||||
}
|
||||
|
||||
function c() {
|
||||
// Create an error without stack trace to avoid calculating the stack trace twice.
|
||||
const { stackTraceLimit } = Error;
|
||||
Error.stackTraceLimit = 0;
|
||||
const error = new Error();
|
||||
Error.stackTraceLimit = stackTraceLimit;
|
||||
|
||||
// Capture the stack trace above function b
|
||||
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
|
||||
throw error;
|
||||
}
|
||||
|
||||
a();
|
||||
```
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### targetObject
|
||||
|
||||
`object`
|
||||
|
||||
##### constructorOpt?
|
||||
|
||||
`Function`
|
||||
|
||||
#### Returns
|
||||
|
||||
`void`
|
||||
|
||||
#### Inherited from
|
||||
|
||||
`Error.captureStackTrace`
|
||||
|
||||
***
|
||||
|
||||
### prepareStackTrace()
|
||||
|
||||
> `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
|
||||
|
||||
Defined in: node\_modules/@types/node/globals.d.ts:150
|
||||
Optional override for formatting stack traces
|
||||
|
||||
#### Parameters
|
||||
|
||||
@@ -199,3 +109,43 @@ https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
||||
#### Inherited from
|
||||
|
||||
`Error.prepareStackTrace`
|
||||
|
||||
***
|
||||
|
||||
### stackTraceLimit
|
||||
|
||||
> `static` **stackTraceLimit**: `number`
|
||||
|
||||
Defined in: node\_modules/@types/node/globals.d.ts:31
|
||||
|
||||
#### Inherited from
|
||||
|
||||
`Error.stackTraceLimit`
|
||||
|
||||
## Methods
|
||||
|
||||
### captureStackTrace()
|
||||
|
||||
> `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
|
||||
|
||||
Defined in: node\_modules/@types/node/globals.d.ts:22
|
||||
|
||||
Create .stack property on a target object
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### targetObject
|
||||
|
||||
`object`
|
||||
|
||||
##### constructorOpt?
|
||||
|
||||
`Function`
|
||||
|
||||
#### Returns
|
||||
|
||||
`void`
|
||||
|
||||
#### Inherited from
|
||||
|
||||
`Error.captureStackTrace`
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Enumeration: EnabledTrackTypes
|
||||
|
||||
Defined in: [src/utils/shared.ts:5](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/shared.ts#L5)
|
||||
Defined in: [codeberg/googlevideo/src/utils/shared.ts:5](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/shared.ts#L5)
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
@@ -10,7 +10,7 @@ Defined in: [src/utils/shared.ts:5](https://github.com/LuanRT/googlevideo/blob/5
|
||||
|
||||
> **AUDIO\_ONLY**: `1`
|
||||
|
||||
Defined in: [src/utils/shared.ts:7](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/shared.ts#L7)
|
||||
Defined in: [codeberg/googlevideo/src/utils/shared.ts:7](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/shared.ts#L7)
|
||||
|
||||
***
|
||||
|
||||
@@ -18,7 +18,7 @@ Defined in: [src/utils/shared.ts:7](https://github.com/LuanRT/googlevideo/blob/5
|
||||
|
||||
> **VIDEO\_AND\_AUDIO**: `0`
|
||||
|
||||
Defined in: [src/utils/shared.ts:6](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/shared.ts#L6)
|
||||
Defined in: [codeberg/googlevideo/src/utils/shared.ts:6](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/shared.ts#L6)
|
||||
|
||||
***
|
||||
|
||||
@@ -26,4 +26,4 @@ Defined in: [src/utils/shared.ts:6](https://github.com/LuanRT/googlevideo/blob/5
|
||||
|
||||
> **VIDEO\_ONLY**: `2`
|
||||
|
||||
Defined in: [src/utils/shared.ts:8](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/shared.ts#L8)
|
||||
Defined in: [codeberg/googlevideo/src/utils/shared.ts:8](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/shared.ts#L8)
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Enumeration: LogLevel
|
||||
|
||||
Defined in: [src/utils/Logger.ts:1](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/Logger.ts#L1)
|
||||
Defined in: [codeberg/googlevideo/src/utils/Logger.ts:1](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/Logger.ts#L1)
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
@@ -10,7 +10,7 @@ Defined in: [src/utils/Logger.ts:1](https://github.com/LuanRT/googlevideo/blob/5
|
||||
|
||||
> **ALL**: `99`
|
||||
|
||||
Defined in: [src/utils/Logger.ts:7](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/Logger.ts#L7)
|
||||
Defined in: [codeberg/googlevideo/src/utils/Logger.ts:7](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/Logger.ts#L7)
|
||||
|
||||
***
|
||||
|
||||
@@ -18,7 +18,7 @@ Defined in: [src/utils/Logger.ts:7](https://github.com/LuanRT/googlevideo/blob/5
|
||||
|
||||
> **DEBUG**: `4`
|
||||
|
||||
Defined in: [src/utils/Logger.ts:6](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/Logger.ts#L6)
|
||||
Defined in: [codeberg/googlevideo/src/utils/Logger.ts:6](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/Logger.ts#L6)
|
||||
|
||||
***
|
||||
|
||||
@@ -26,7 +26,7 @@ Defined in: [src/utils/Logger.ts:6](https://github.com/LuanRT/googlevideo/blob/5
|
||||
|
||||
> **ERROR**: `1`
|
||||
|
||||
Defined in: [src/utils/Logger.ts:3](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/Logger.ts#L3)
|
||||
Defined in: [codeberg/googlevideo/src/utils/Logger.ts:3](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/Logger.ts#L3)
|
||||
|
||||
***
|
||||
|
||||
@@ -34,7 +34,7 @@ Defined in: [src/utils/Logger.ts:3](https://github.com/LuanRT/googlevideo/blob/5
|
||||
|
||||
> **INFO**: `3`
|
||||
|
||||
Defined in: [src/utils/Logger.ts:5](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/Logger.ts#L5)
|
||||
Defined in: [codeberg/googlevideo/src/utils/Logger.ts:5](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/Logger.ts#L5)
|
||||
|
||||
***
|
||||
|
||||
@@ -42,7 +42,7 @@ Defined in: [src/utils/Logger.ts:5](https://github.com/LuanRT/googlevideo/blob/5
|
||||
|
||||
> **NONE**: `0`
|
||||
|
||||
Defined in: [src/utils/Logger.ts:2](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/Logger.ts#L2)
|
||||
Defined in: [codeberg/googlevideo/src/utils/Logger.ts:2](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/Logger.ts#L2)
|
||||
|
||||
***
|
||||
|
||||
@@ -50,4 +50,4 @@ Defined in: [src/utils/Logger.ts:2](https://github.com/LuanRT/googlevideo/blob/5
|
||||
|
||||
> **WARN**: `2`
|
||||
|
||||
Defined in: [src/utils/Logger.ts:4](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/Logger.ts#L4)
|
||||
Defined in: [codeberg/googlevideo/src/utils/Logger.ts:4](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/Logger.ts#L4)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
> **base64ToU8**(`base64`): `Uint8Array`
|
||||
|
||||
Defined in: [src/utils/shared.ts:79](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/shared.ts#L79)
|
||||
Defined in: [codeberg/googlevideo/src/utils/shared.ts:79](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/shared.ts#L79)
|
||||
|
||||
Converts a Base64 string to a Uint8Array.
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
> **buildSabrFormat**(`formatStream`): [`SabrFormat`](../../../types/shared/interfaces/SabrFormat.md)
|
||||
|
||||
Defined in: [src/utils/shared.ts:104](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/shared.ts#L104)
|
||||
Defined in: [codeberg/googlevideo/src/utils/shared.ts:104](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/shared.ts#L104)
|
||||
|
||||
Converts a FormatStream object to a SabrFormat object.
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
> **concatenateChunks**(`chunks`): `Uint8Array`
|
||||
|
||||
Defined in: [src/utils/shared.ts:89](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/shared.ts#L89)
|
||||
Defined in: [codeberg/googlevideo/src/utils/shared.ts:89](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/shared.ts#L89)
|
||||
|
||||
Concatenates multiple Uint8Array chunks into a single Uint8Array.
|
||||
|
||||
@@ -12,7 +12,7 @@ Concatenates multiple Uint8Array chunks into a single Uint8Array.
|
||||
|
||||
### chunks
|
||||
|
||||
`Uint8Array`[]
|
||||
`Uint8Array`\<`ArrayBufferLike`\>[]
|
||||
|
||||
## Returns
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
> **isGoogleVideoURL**(`url`): `boolean`
|
||||
|
||||
Defined in: [src/utils/shared.ts:23](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/shared.ts#L23)
|
||||
Defined in: [codeberg/googlevideo/src/utils/shared.ts:23](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/shared.ts#L23)
|
||||
|
||||
Determines if a given URL is a Google video URL, specifically for YouTube or SABR-related content.
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
> **parseRangeHeader**(`rangeHeaderValue`): `undefined` \| `Range`
|
||||
|
||||
Defined in: [src/utils/shared.ts:54](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/shared.ts#L54)
|
||||
Defined in: [codeberg/googlevideo/src/utils/shared.ts:54](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/shared.ts#L54)
|
||||
|
||||
Parses the Range header value to extract the start and end byte positions.
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
> **u8ToBase64**(`u8`): `string`
|
||||
|
||||
Defined in: [src/utils/shared.ts:71](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/shared.ts#L71)
|
||||
Defined in: [codeberg/googlevideo/src/utils/shared.ts:71](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/shared.ts#L71)
|
||||
|
||||
Converts a Uint8Array to a Base64 string.
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
> **wait**(`ms`): `Promise`\<`void`\>
|
||||
|
||||
Defined in: [src/utils/shared.ts:136](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/shared.ts#L136)
|
||||
Defined in: [codeberg/googlevideo/src/utils/shared.ts:136](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/shared.ts#L136)
|
||||
|
||||
Returns a promise that resolves after a specified number of milliseconds.
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Interface: CacheEntry
|
||||
|
||||
Defined in: [src/utils/CacheManager.ts:3](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/CacheManager.ts#L3)
|
||||
Defined in: [codeberg/googlevideo/src/utils/CacheManager.ts:3](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/CacheManager.ts#L3)
|
||||
|
||||
## Properties
|
||||
|
||||
@@ -10,7 +10,7 @@ Defined in: [src/utils/CacheManager.ts:3](https://github.com/LuanRT/googlevideo/
|
||||
|
||||
> **data**: `Uint8Array`
|
||||
|
||||
Defined in: [src/utils/CacheManager.ts:4](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/CacheManager.ts#L4)
|
||||
Defined in: [codeberg/googlevideo/src/utils/CacheManager.ts:4](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/CacheManager.ts#L4)
|
||||
|
||||
***
|
||||
|
||||
@@ -18,7 +18,7 @@ Defined in: [src/utils/CacheManager.ts:4](https://github.com/LuanRT/googlevideo/
|
||||
|
||||
> **size**: `number`
|
||||
|
||||
Defined in: [src/utils/CacheManager.ts:6](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/CacheManager.ts#L6)
|
||||
Defined in: [codeberg/googlevideo/src/utils/CacheManager.ts:6](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/CacheManager.ts#L6)
|
||||
|
||||
***
|
||||
|
||||
@@ -26,4 +26,4 @@ Defined in: [src/utils/CacheManager.ts:6](https://github.com/LuanRT/googlevideo/
|
||||
|
||||
> **timestamp**: `number`
|
||||
|
||||
Defined in: [src/utils/CacheManager.ts:5](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/CacheManager.ts#L5)
|
||||
Defined in: [codeberg/googlevideo/src/utils/CacheManager.ts:5](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/CacheManager.ts#L5)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
> **createKey**(`itag`, `xtags`): `string`
|
||||
|
||||
Defined in: [src/utils/formatKeyUtils.ts:10](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/formatKeyUtils.ts#L10)
|
||||
Defined in: [codeberg/googlevideo/src/utils/formatKeyUtils.ts:10](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/formatKeyUtils.ts#L10)
|
||||
|
||||
Creates a format key based on itag and xtags.
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
> **createSegmentCacheKey**(`mediaHeader`, `format?`): `string`
|
||||
|
||||
Defined in: [src/utils/formatKeyUtils.ts:47](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/formatKeyUtils.ts#L47)
|
||||
Defined in: [codeberg/googlevideo/src/utils/formatKeyUtils.ts:47](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/formatKeyUtils.ts#L47)
|
||||
|
||||
Creates a segment cache key.
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
> **createSegmentCacheKeyFromMetadata**(`requestMetadata`): `string`
|
||||
|
||||
Defined in: [src/utils/formatKeyUtils.ts:61](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/formatKeyUtils.ts#L61)
|
||||
Defined in: [codeberg/googlevideo/src/utils/formatKeyUtils.ts:61](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/formatKeyUtils.ts#L61)
|
||||
|
||||
Creates a cache key from request metadata.
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
> **fromFormat**(`format?`): `undefined` \| `string`
|
||||
|
||||
Defined in: [src/utils/formatKeyUtils.ts:18](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/formatKeyUtils.ts#L18)
|
||||
Defined in: [codeberg/googlevideo/src/utils/formatKeyUtils.ts:18](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/formatKeyUtils.ts#L18)
|
||||
|
||||
Creates a format key from a SabrFormat object.
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
> **fromFormatInitializationMetadata**(`formatInitMetadata`): `string`
|
||||
|
||||
Defined in: [src/utils/formatKeyUtils.ts:35](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/formatKeyUtils.ts#L35)
|
||||
Defined in: [codeberg/googlevideo/src/utils/formatKeyUtils.ts:35](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/formatKeyUtils.ts#L35)
|
||||
|
||||
Creates a format key from FormatInitializationMetadata.
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
> **fromMediaHeader**(`mediaHeader`): `string`
|
||||
|
||||
Defined in: [src/utils/formatKeyUtils.ts:27](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/formatKeyUtils.ts#L27)
|
||||
Defined in: [codeberg/googlevideo/src/utils/formatKeyUtils.ts:27](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/formatKeyUtils.ts#L27)
|
||||
|
||||
Creates a format key from a MediaHeader object.
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
> **getUniqueFormatId**(`format`): `string`
|
||||
|
||||
Defined in: [src/utils/formatKeyUtils.ts:85](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/formatKeyUtils.ts#L85)
|
||||
Defined in: [codeberg/googlevideo/src/utils/formatKeyUtils.ts:85](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/formatKeyUtils.ts#L85)
|
||||
|
||||
Generates a unique format ID based on the SabrFormat properties.
|
||||
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
|
||||
> `const` **MAX\_INT32\_VALUE**: `2147483647` = `2147483647`
|
||||
|
||||
Defined in: [src/utils/shared.ts:3](https://github.com/LuanRT/googlevideo/blob/5b84100979befab767d819a9606dde964d469341/src/utils/shared.ts#L3)
|
||||
Defined in: [codeberg/googlevideo/src/utils/shared.ts:3](https://github.com/LuanRT/googlevideo/blob/19854137cadaf49fd755394883dfd7fe5fdaba20/src/utils/shared.ts#L3)
|
||||
|
||||
Reference in New Issue
Block a user