mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 09:36:08 +00:00
fix(player): label only 16x as silent in the speed picker
The "no audio" note was attached to everything past 4x on a guess about where the browsers stop pitch-correcting. Playing the ladder through confirms audio survives 6x and 8x; 16x, the rate Chrome and Firefox clamp to, is the only silent one. Move the threshold up so the two fast rates that do carry sound stop advertising otherwise.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user