Hooks & Utilities
v1.0.0Added in 1.0.0
State and actions of an audio or video element for custom players: play, seek, volume, speed, buffering and a smooth playhead.
Press play on the podcast: the bar glides every frame while the time text changes once a second. Tap or drag on the bar to seek, change the speed and mute. With the player focused, Space or k plays and pauses, Left / Right seek by the step, j / l by twice that, Up / Down change the volume, m mutes, 0 to 9 jump to 0% to 90%, < and > change the speed. Turn exclusive on and starting one voice message pauses the other and the podcast.
npx wingo-ui@latest add use-media-controlsPro item: the CLI needs a Pro account. See plans
exclusive: false · rate: 1x · seekStep: 5s