player icon indicating copy to clipboard operation
player copied to clipboard

Controls hidden if player is paused, but should be visible

Open S-Braeutigam opened this issue 11 months ago • 2 comments

Current Behavior:

According to controlsDelay in the documentation of the mediaplayer props the delay is only hides the controls while media playback is progression. To our understanding this means on the other hand that the controls should be always visible when the media playback is paused, yet the controls are also hidden.

In simple terms: Player is playing -> hide controls after value of "controlsDelay" Player is paused -> always show controls

Expected Behavior:

The controls should not be hidden if the player is paused.

Steps To Reproduce:

Play the media, pause the media and move the mouse away from the player.

Reproduction Link: https://codesandbox.io/p/sandbox/mantine-react-template-forked-my3zzl?file=%2Fsrc%2FApp.tsx%3A15%2C62

S-Braeutigam avatar Feb 06 '25 17:02 S-Braeutigam

A temp and ugly fix is controlsDelay={isPaused ? 99999999 : 2000}

felipehertzer avatar Feb 14 '25 09:02 felipehertzer

A temp and ugly fix is controlsDelay={isPaused ? 99999999 : 2000}

https://vidstack.io/docs/player/api/classes/media-remote-control/#pausecontrols

roxxel avatar May 10 '25 03:05 roxxel