mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
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:
@@ -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