codebicycle / videospeed

HTML5 video speed controller (for Firefox). WebExtensions port of Video Speed Controller Chrome extension.
421 stars 47 forks source link

Adding button to toggle "Preserve Pitch" #178

Open h-h-h-h opened 2 years ago

h-h-h-h commented 2 years ago

There's HTMLMediaElement.preservesPitch, and it would be great to have a toggle button for this in the button bar this extension provides.

In Firefox v99, you have to use the prefixed mozPreservesPitch for it to work. It was unprefixed in v101.

I think the state of this setting should always be remembered and restored, not just when the extension is configured to restore a remembered playback speed setting. This would allow you to turn on chipmunk mode, so to speak, and when you're watching a YouTube video at a later time and press YouTube's keybinding > to make it faster, you directly get chipmunk voices again, because the mode was already in effect when speed was still at 1x.