I have been trying to use playlists with the React component, but can't find any reference in the documentation to it. I have been googling around and it seems that the only way to do this is to use the cloudinary core js library, which I have got working. This is causing me a few issues though - as I am using GatsbyJS, the server side rendering fails at build time as the library makes reference to the browser window. As a result I am using loadable components so that this only gets built on the client, which has caused other issues - when I purge unused CSS, this component is not included so I have to manually exclude some styling. Anyway, that is out of the scope of this question, but it is all stemming from the fact that I can't use the React component to view a playlist of videos.
I did try changing the publicId when I wanted the next video to be played, but this didn't seem to be working. Should I have persevered with this method more? I didn't think reloading the whole video component would be a good solution though.
Please sign in to leave a comment.