mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-29 03:43:50 +02:00
Add Logging singleton to manually control Mediabunny's console output (fixes #415)
This commit is contained in:
@@ -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.`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user