Merge pull request #64 from yusufipk/fix/silent-speed-threshold

fix(player): label only 16x as silent in the speed picker
This commit is contained in:
Yusuf İpek
2026-08-20 11:43:53 +03:00
committed by GitHub
2 changed files with 8 additions and 6 deletions
+3 -2
View File
@@ -235,8 +235,9 @@ describe('getSpeedOptionsForProvider', () => {
});
it('marks the rates the browser plays without audio', () => {
expect(SILENT_ABOVE_SPEED).toBe(4);
expect(NATIVE_SPEED_OPTIONS.filter((speed) => speed > SILENT_ABOVE_SPEED)).toEqual([6, 8, 16]);
// Measured in the browser: 6x and 8x still carry audio, 16x is the only silent rate.
expect(SILENT_ABOVE_SPEED).toBe(8);
expect(NATIVE_SPEED_OPTIONS.filter((speed) => speed > SILENT_ABOVE_SPEED)).toEqual([16]);
expect(YOUTUBE_SPEED_OPTIONS.every((speed) => speed <= SILENT_ABOVE_SPEED)).toBe(true);
});