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
@@ -41,6 +41,7 @@ import {
} from '../codec-data';
import { Demuxer } from '../demuxer';
import { Input } from '../input';
import { Logging } from '../logging';
import {
InputAudioTrackBacking,
InputTrackBacking,
@@ -403,7 +404,7 @@ export class MpegTsDemuxer extends Demuxer {
// we can't determine its metadata and also have no idea how to packetize its data.
if (!ignoredStreamTypes.has(streamType)) {
console.warn(
Logging._warn(
`Note: MPEG-TS streams with stream_type 0x${streamType.toString(16)} are not`
+ ` currently supported.`,
);