José Sérgio Mendes Pereira Junior
Results
3
comments of
José Sérgio Mendes Pereira Junior
Is possible to remove list param from URL to play desired video. Example: const newUrl = new URL(item.resource_url); const urlSearchObj = new URLSearchParams(newUrl.search); urlSearchObj.delete('list'); const url = `${newUrl.origin}${newUrl.pathname}?${urlSearchObj.toString()}`;
Aw, since I updated react-dom to ^17.0.2 it works for me.
I imported like this: import ReactPlayer from 'react-player/lazy';