cookpete / react-player

A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion
https://cookpete.github.io/react-player
MIT License
9.35k stars 1.15k forks source link

Third-party cookie will be blocked in future Chrome versions as part of Privacy Sandbox. #1869

Open Garlikdev opened 2 months ago

Garlikdev commented 2 months ago

Current Behavior

Hundreds of errors about third party cookies in chrome console. "Third-party cookie will be blocked in future Chrome versions as part of Privacy Sandbox." This is causing huge memory allocation and overflow after couple of minutes and chrome tab is crashing.

Expected Behavior

No errors, smooth experience.

Steps to Reproduce

  1. Use normal youtube url like "https://youtube.com/watch?v=" <ReactPlayer url="https://youtube.com/watch?v=" controls autoPlay={0} />
  2. Play the video
  3. Experience huge lag and website crash

Environment

Other Information

Even your js fiddle with youtube link plugged in is doing this image and its growing image Managed to reduce it to only a couple errors by using 'https://www.youtube-nocookie.com/watch?v=' but still don't know how to fix it permanently.

Update 30.07.2024

After further testing, there are less errors using nocookie url, but still somehow after some time sitting on a page with player, chrome tab goes "Out of memory"

antonio-pbilby commented 1 month ago

Facing the same issue here, using version "2.16.0".

slyth11907 commented 6 days ago

Same issue here on the same version