Add Logging singleton to manually control Mediabunny's console output (fixes #415)

This commit is contained in:
Vanilagy
2026-06-18 19:32:18 +02:00
parent 92a384f418
commit cdc2ef63dd
28 changed files with 324 additions and 65 deletions
+2 -1
View File
@@ -54,6 +54,7 @@ import {
VideoSample,
VideoSamplePixelFormat,
} from './sample';
import { Logging } from './logging';
/**
* Additional options for controlling packet retrieval.
@@ -1324,7 +1325,7 @@ export class ColorAlphaMerger {
this.gl = null;
this.canvas = null;
mergerGpuUnavailable = true;
console.warn('Falling back to CPU for color/alpha merging.', error);
Logging._warn('Falling back to CPU for color/alpha merging.', error);
}
}
}