feat(player): add speed control with popup menu and CSS theming (#241)

Add playback speed control to the player controls bar:
- Popup menu with logarithmic presets (0.25x-4x)
- Custom presets via speed-presets attribute
- Full CSS custom property theming (--hfp-accent, --hfp-controls-bg, etc.)
- ratechange event dispatch
- Exports: SPEED_PRESETS, formatSpeed, ControlsOptions
- Fix package.json export condition ordering
This commit is contained in:
Miguel Ángel
2026-04-10 20:47:12 +02:00
committed by GitHub
parent 9a3ed569a0
commit 0da93cea3d
5 changed files with 232 additions and 21 deletions
+2 -2
View File
@@ -16,9 +16,9 @@
"exports": {
".": {
"types": "./src/hyperframes-player.ts",
"script": "./dist/hyperframes-player.global.js",
"import": "./src/hyperframes-player.ts",
"require": "./dist/hyperframes-player.cjs",
"script": "./dist/hyperframes-player.global.js"
"require": "./dist/hyperframes-player.cjs"
}
},
"scripts": {