@banou/media-player 0.10.24 → 0.10.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/index.js +258 -239
- package/dist/react/hooks/use-frame-step.d.ts +3 -1
- package/dist/react/source-feature.d.ts +8 -2
- package/dist/react/video-player.d.ts +9 -0
- package/dist/volume-normalizer-worklet.js +9 -5
- package/package.json +1 -1
- package/src/lib/audio/volume-normalizer-worklet.js +9 -5
- package/src/lib/react/hooks/use-frame-step.ts +65 -35
- package/src/lib/react/source-feature.ts +4 -1
- package/src/lib/react/video-player.tsx +10 -1
package/README.md
CHANGED
|
@@ -164,7 +164,8 @@ is persisted: volume, speed and track choices start at their defaults every load
|
|
|
164
164
|
|
|
165
165
|
The shortcuts (Space or `k`, `f`, `m`, the arrow keys, and `<` and `>` to pause and step one frame back or forward)
|
|
166
166
|
listen on the whole page, and leave Ctrl, Cmd and Alt combinations to the browser. The frame steps need a media
|
|
167
|
-
with `requestVideoFrameCallback`, which a `media` playing in another document does not have
|
|
167
|
+
with `requestVideoFrameCallback`, which a `media` playing in another document does not have; its host can pass
|
|
168
|
+
`stepFrame` to make the step inside that document instead. Pass `shortcuts="player"`
|
|
168
169
|
for a player among other content: a key then acts only from inside the player (a click on the picture puts the focus
|
|
169
170
|
there) or while it is fullscreen, and Space and the arrows keep scrolling the page everywhere else.
|
|
170
171
|
|