Skip to content

Callbacks for click, hover, keydown #167

Closed
@oyeanuj

Description

@oyeanuj

Hey @cookpete! So far, things have been going great while integrating with react-player but ran into a small roadblock. I was trying to implement -

  1. Play/Pause onClick
  2. Show/hide controls onMouseOver/onMouseOut
  3. Keyboard manipulations onKeyDown

But it seems none of these events are exposed at the moment. My current workaround is to have a div around ReactPlayer and tying all the callbacks to that div but it isn't the nicest solution.

Thoughts? Do you think these can be exposed?

Thank you!

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