-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
you need to double click while using this on mobile #50
Comments
The problem is that when I click on a link on a mobile device (Android and iOS) the first click does not open the YouTube video. However, if I click a second time it does, as long as I don't click on another video before the second consecutive click on the first. |
This is not a problem from the package, youtube I would suggest to create a prop to detect when the element is appearing on the screen and switch the image to the youtube player. |
Maybe with #61 it could be possible to start the video through JS from inside the iframe? |
I have the same problem, do you have any workarounds? |
A workaround is to use intersection observer that would automatically click the play button once the facade is in view. Therefore the user will see the actual iframe by the time he scrolls to the video and will only have to click it once. Here is how to do it with react.
|
THANK YOU andreisucman ... you are a true scholar ... your solution worked like a charm ... I just had to loop thru multiple buttons that's all. Thanx again! |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: