Remove input track descriptors, add async getters on tracks for everything, deprecate old sync getters

This commit is contained in:
Vanilagy
2026-04-10 16:23:17 +02:00
parent aa810fc433
commit 051578c2ca
42 changed files with 1386 additions and 1504 deletions
+3 -3
View File
@@ -16,9 +16,9 @@ test('ADTS demuxing', async () => {
const audioTrack = await input.getPrimaryAudioTrack();
assert(audioTrack);
expect(audioTrack.codec).toBe('aac');
expect(audioTrack.sampleRate).toBe(44100);
expect(audioTrack.numberOfChannels).toBe(2);
expect(await audioTrack.getCodec()).toBe('aac');
expect(await audioTrack.getSampleRate()).toBe(44100);
expect(await audioTrack.getNumberOfChannels()).toBe(2);
const decoderConfig = await audioTrack.getDecoderConfig();
assert(decoderConfig);