question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS double-tap needed to start playing the video

See original GitHub issue

Current Behavior

On iOS 13 and 14 (Safari and Chrome), when clicking on a video the “poster” image disappears, but it’s still necessary to tap again on the video to start playing. Basically, a double-tap is needed.

This issue seems related to these two:

  1. https://github.com/CookPete/react-player/issues/706
  2. https://github.com/CookPete/react-player/issues/543

Expected Behavior

On tap start the video immediately.

Steps to Reproduce

Looking at the others issues it seems that this issue is related to the use of the light prop.

Current implementation:

<ReactPlayer
ref={ref}
url={src}
light={thumbnail}
config={{ youtube: { playerVars: youtubePlayerParams }, vimeo: { playerOptions: vimeoPlayerParams } }}
playing={true}
playIcon={
  <PlayButton>...</PlayButton>
}
/>

Environment

Other Information

Has anyone faced this issue recently? Any possible solution?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
claudiopedromcommented, Apr 13, 2022

Thanks @cookpete, if I find any solution I will put it here!

Hi @claudiopedrom, I don’t suppose you ever found a solution to this?

Hey! Unfortunately, it’s been a long time and I don’t remember and I also no longer have access to the project. 😞

1reaction
claudiopedromcommented, Oct 29, 2020

Thanks @cookpete, if I find any solution I will put it here!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tap the back of iPhone to perform actions or shortcuts
Go to Settings > Accessibility > Touch > Back Tap. Choose Double Tap or Triple Tap, then choose an action. To perform the...
Read more >
iPhone 12's: How to Use/Enable Back Tap (Double ... - YouTube
You will be able to double tap or triple tab the back of the iPhone 12 to ... ... Your browser can't play...
Read more >
iPhone 13's & 14's: How to Use & Enable 'Back Tap ... - YouTube
Your browser can't play this video. ... You can use double tap or triple tap to take a screenshot, turn on or off...
Read more >
How To Use Back Tap On iPhone To Open An App Quickly!
You can set the double-tap or triple tap on the back of your iPhone to perform any action like ... Your browser can't...
Read more >
How to use Back Tap on iPhone | Apple Support - YouTube
Or open Control Center. You can set up Back Tap to perform an action when you double-tap or ... Your browser can't play...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found