'React-Player temporary black screen displayed when URL changes

I am using React-player to play several videos. Once a video finishes I call onEnded to change the current URL on the player to another one. During this however a black screen is displayed. Can anyone suggest what could be a solution to this, so that the videos play seamlessly. I assume having 2 player and swapping between them would be possible, but there is still a black screen when swapping. I am aware this is not a bug, any suggestion is most welcome.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source