-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Current Behavior
If you initiate the player with controls to true and then setting controls to false, controls are still visibles.
Expected Behavior
Controls shouldn't be visible
Steps to Reproduce
- Create a state value named controls and initiated as true
- Initiate the player with controls={controls}
- Change the value of controls to false in useEffect with timeout
Environment
- URL attempting to play: https://vimeo.com/437991680
- Browser: Google Chrome
- Operating system: Windows 11
- Sandbox : https://codesandbox.io/p/sandbox/react-player-controls-issue-kwk7pr
Other Information
If the controls can only be displayed or hidden using the video URL, and updating the control values causes the video to reload due to new URL, the documentation should be updated to inform users about this.
Metadata
Metadata
Assignees
Labels
No labels