react-player icon indicating copy to clipboard operation
react-player copied to clipboard

I have to double tap on mobile (iOS)

Open wdaneiliff opened this issue 7 years ago • 5 comments

Hey,

I'm using React-Player on my website to play songs from soundcloud and youtube. On desktop the player works amazing.

However, on mobile (iOS) the first time I press the play button for a song it works but then when I go to press play for another song - it requires me to press it twice.

Is there any way to get past this issue?

Here is a link to my site: http://rockwiththis-staging.com

Here is the code for my player: screen shot 2018-12-24 at 5 04 43 pm

wdaneiliff avatar Dec 25 '18 01:12 wdaneiliff

Me too

JulianJorgensen avatar Dec 25 '18 17:12 JulianJorgensen

Same here

ShakurOo avatar Jan 10 '19 15:01 ShakurOo

I've noticed that when the Player is rendered every element on the page requires a double tap on iOS safari. Seems intermittent unfortunately.

Looks like this only happens for me when the controls prop is true

Edit: adding the light prop along with controls seems to fix my issue ¯\_(ツ)_/¯

charlesbdudley avatar Jan 18 '19 16:01 charlesbdudley

It sounds like each player simply needs user interaction, which is a common problem with media on iOS. I don't know if there's anything this library can do about this.

I've noticed that when the Player is rendered every element on the page requires a double tap on iOS safari. Seems intermittent unfortunately.

Every element on the page? This stinks of a problem with the iOS browser rather than the library.

Unfortunately I don't know what can be done about this so I'll close it off for now. If anyone can reduce this down to a specific thing that ReactPlayer is doing wrong, feel free to reopen with more details.

cookpete avatar Mar 21 '19 22:03 cookpete

This actually happens to me as well, on macOS Sonoma and "react-player": "^2.14.1". I tried the suggested workarounds from above, but they don't seem to help. Any ideas @cookpete ?

vicmosin avatar Jan 18 '24 17:01 vicmosin