mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 10:53:50 +02:00
Add internalCodecId field
This commit is contained in:
@@ -222,6 +222,11 @@ class WaveAudioTrackBacking implements InputAudioTrackBacking {
|
||||
return this.demuxer.getCodec();
|
||||
}
|
||||
|
||||
getInternalCodecId() {
|
||||
assert(this.demuxer.audioInfo);
|
||||
return this.demuxer.audioInfo.format;
|
||||
}
|
||||
|
||||
async getDecoderConfig(): Promise<AudioDecoderConfig | null> {
|
||||
const codec = this.demuxer.getCodec();
|
||||
if (!codec) {
|
||||
|
||||
Reference in New Issue
Block a user