In the demo/App.js file I created a playlist with urls from the different providers.
2 from youtube, 2 from soundcloud and 2 from vimeo.
Like this:
const LINKS = [
'https://www.youtube.com/watch?v=oUFJJNQGwhk'
,'https://www.youtube.com/watch?v=jNgP6d9HraI'
,'https://soundcloud.com/miami-nights-1984/accelerated'
,'https://soundcloud.com/tycho/tycho-awake'
,'https://vimeo.com/90509568'
,'https://vimeo.com/169599296'
]
Along with buttons to switch to the next or previous url.
The 2 first videos play fine.
But as soon as it switch to the third one, the provider change and the youtube preload plays the first video in the background. Without any control possible over it.
If I check into the React tree ai can see that the silent video url is a prop of the preload player.
But if I check the element tree directly, the youtube iframe points to the first video of the playlist.
I tried to debug this but could not track down the problem.
I pushed my code to my fork github repo if you have time to check it:
https://github.com/SkinyMonkey/react-player/tree/bug-playlist-problem
In the demo/App.js file I created a playlist with urls from the different providers.
2 from youtube, 2 from soundcloud and 2 from vimeo.
Like this:
Along with buttons to switch to the next or previous url.
The 2 first videos play fine.
But as soon as it switch to the third one, the provider change and the youtube preload plays the first video in the background. Without any control possible over it.
If I check into the React tree ai can see that the silent video url is a prop of the preload player.
But if I check the element tree directly, the youtube iframe points to the first video of the playlist.
I tried to debug this but could not track down the problem.
I pushed my code to my fork github repo if you have time to check it:
https://github.com/SkinyMonkey/react-player/tree/bug-playlist-problem