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
8.89k stars 1.12k forks source link

Playing from a position without using youtube-nocookie #1761

Closed mgoldenbe closed 3 weeks ago

mgoldenbe commented 2 months ago

When seeking to a position and playing a YouTube video that has been played before, the following sequence happens:

  1. seekTo seeks to the correct position.
  2. playVideo causes jumping to another position (I guess it is remembered from the previous viewing of the video).

This happens only for the first request after rendering the player. Subsequent requests are executed correctly. The linked solution works around this using youtube-nocookie . Is there a solution without the need for youtube-nocookie?