Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Fix surround sound test case on Tizen #4893

Merged
merged 1 commit into from
Jan 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions test/player_unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -3425,7 +3425,9 @@ describe('Player', () => {
variant.addAudio(0, (stream) => {
stream.channelsCount = 6;
stream.audioSamplingRate = 48000;
stream.codecs = 'ac-3';
// ac-3 is rewritten as ec-3 on Tizen, so for the stability of this
// test case, use ec-3.
stream.codecs = 'ec-3';
});
});

Expand All @@ -3450,7 +3452,7 @@ describe('Player', () => {
expect(abrManager.variants.length).toBe(1);
// It should be the 6-channel variant, based on our preference.
expect(abrManager.variants[0].audio.channelsCount).toBe(6);
expect(abrManager.variants[0].audio.codecs).toBe('ac-3');
expect(abrManager.variants[0].audio.codecs).toBe('ec-3');
});
});

Expand Down