-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using an array for URL breaks the code #906
Comments
Passing an array to You can use <ReactPlayer
url='https://www.youtube.com/watch?v=oUFJJNQGwhk' // First video in playlist
playing
controls
config={{
playerVars: {
listType: 'playlist',
playlist: 'jNgP6d9HraI,_8UJBrnYBW4' // Second and third videos, comma separated
}
}}
/> I suppose it would be nice if ReactPlayer did this automatically for arrays of youtube URLs… |
cookpete
added a commit
that referenced
this issue
Jun 7, 2020
Webmaster1116
added a commit
to Webmaster1116/video-player
that referenced
this issue
May 20, 2021
webmiraclepro
added a commit
to webmiraclepro/video-player
that referenced
this issue
Sep 9, 2022
philip-luther
added a commit
to philip-luther/react-player
that referenced
this issue
Nov 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Declaring Urls as described here will break the code and cause Error
Current Behavior
Error occurs. You get
Expected Behavior
Player should load both URL and give option to play either (similar to when loading playlist).
Steps to Reproduce
Create player like
<ReactPlayer playing url={['https://www.youtube.com/watch?v=d46Azg3Pm4c', 'https://www.youtube.com/watch?v=eVsXVzSse8I']} />
Environment
The text was updated successfully, but these errors were encountered: