Answer the question
In order to leave comments, you need to log in
How to make a looped playlist from a video in React?
I am writing an interface for the office in which n videos will be played in a loop (from different sources). React project. Initially used this plugin - react-player. In docks it is written that as a source the array of links can be accepted. But when I try to pass an array, I get an error (below)
Code:
<ReactPlayer
url={['https://www.youtube.com/watch?v=B1exW5oI-TI', 'https://www.youtube.com/watch?v=B1exW5oI-TI']}
loop='true'
controls='true'
playing
/>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question