mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-28 03:13:51 +02:00
Merge branch 'main' of https://github.com/Vanilagy/metamuxer
This commit is contained in:
+5
-2
@@ -13,8 +13,11 @@ export abstract class Source {
|
||||
/** @internal */
|
||||
_sizePromise: Promise<number> | null = null;
|
||||
|
||||
/** @internal */
|
||||
_getSize() {
|
||||
/**
|
||||
* Resolves with the total size of the file in bytes. This function is memoized, meaning only the first call
|
||||
* will retrieve the size.
|
||||
*/
|
||||
getSize() {
|
||||
return this._sizePromise ??= this._retrieveSize();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user