Skip to content

Best way to change the hideDelay prop with the default layout? #1015

Answered by mihar-22
miketdonahue asked this question in Q&A
Discussion options

You must be logged in to vote

You can change it on the player instance:

const player = useRef<MediaPlayerInstance>(null);

useEffect(() => {
  player.current.controls.defaultDelay = 2000;
}, []);

<MediaPlayer ref={player}>

Hope that helps! Let me know if there's any issues.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mihar-22
Comment options

@miketdonahue
Comment options

@mihar-22
Comment options

Answer selected by miketdonahue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants