mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-28 03:13:51 +02:00
Rewrite reader logic, add separate reader for caching MP4 chunks, add more advanced drain iterators
This commit is contained in:
@@ -204,3 +204,10 @@ export const promiseWithResolvers = <T = void>() => {
|
||||
|
||||
return { promise, resolve: resolve!, reject: reject! };
|
||||
};
|
||||
|
||||
export const removeItem = <T>(arr: T[], item: T) => {
|
||||
const index = arr.indexOf(item);
|
||||
if (index !== -1) {
|
||||
arr.splice(index, 1);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user