Skip to content

Initiating controls to true then setting to false doesn't hide controls #1731

@nzhiti

Description

@nzhiti

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

  1. Create a state value named controls and initiated as true
  2. Initiate the player with controls={controls}
  3. Change the value of controls to false in useEffect with timeout

Environment

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions