Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] How to make light player load fullplayer / play onHover ? #576

Closed
sebmaz93 opened this issue Feb 24, 2019 · 2 comments
Closed

Comments

@sebmaz93
Copy link

sebmaz93 commented Feb 24, 2019

i created onHover method to play with the full player , but now after switching to light i can't play it anymore with same method , how can i access the method to load the full player onHover and not onClick ? so once i hover on lightplayer it loads full player and starts playing.
Thanks in advance.

@sebmaz93 sebmaz93 changed the title How to make light player Load full player on Hover ? [QUESTION] How to make light player Load full player on Hover ? Feb 24, 2019
@sebmaz93
Copy link
Author

sebmaz93 commented Feb 24, 2019

i've managed to do it somehow but i don't know if its good approach or not
accessed ref of the player then setting onHover
this.playerRef.setState({showPreview: false});

@sebmaz93 sebmaz93 changed the title [QUESTION] How to make light player Load full player on Hover ? [QUESTION] How to make light player load fullplayer / play onHover ? Feb 24, 2019
@cookpete
Copy link
Owner

onHover should now work in light mode because of the fix for #584, published in v1.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants