-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
When i passin link to youtube that has playlist on, it does not working=( #318
Comments
Great work! I was going to ask about playlist support as well. @cookpete - Is this something you plan to support? |
You can do this using the <ReactPlayer
url='https://www.youtube.com/watch?v=4l8Wkrb5JNw'
config={{ youtube: {
playerVars: {
listType:'playlist',
list: 'PLSmhG8yDCXaFj04Rag9btia4G3nN3hFRn'
}
}}}
/> |
Amazing, thanks for the info. |
I suppose it would be handy to parse |
@cookpete The below code doesn't work
|
@edwinharly Yeah that kind of sucks. With how things work, you have to pass in a valid Youtube URL for the Youtube player to kick in, but obviously when you want to search, you don't know what you want to play first... A very hacky workaround would be to set the URL as a very short blank video, which will play and finish quickly, then play the search results, eg: <ReactPlayer
url='https://www.youtube.com/watch?v=jhFDyDgMVUI'
config={{ youtube: {
playerVars: {
listType:'search',
list: 'likey'
}
}}}
controls
/> This is not ideal though, so I will look for a better fix. |
Properly fixes #318 Instead of having to use `playerVars` to play playlists, you can now just pass in URLs, such as https://www.youtube.com/watch?v=4l8Wkrb5JNw&list=PLSmhG8yDCXaFj04Rag9btia4G3nN3hFRn
Properly fixes cookpete/react-player#318 Instead of having to use `playerVars` to play playlists, you can now just pass in URLs, such as https://www.youtube.com/watch?v=4l8Wkrb5JNw&list=PLSmhG8yDCXaFj04Rag9btia4G3nN3hFRn
Properly fixes cookpete/react-player#318 Instead of having to use `playerVars` to play playlists, you can now just pass in URLs, such as https://www.youtube.com/watch?v=4l8Wkrb5JNw&list=PLSmhG8yDCXaFj04Rag9btia4G3nN3hFRn
Properly fixes cookpete/react-player#318 Instead of having to use `playerVars` to play playlists, you can now just pass in URLs, such as https://www.youtube.com/watch?v=4l8Wkrb5JNw&list=PLSmhG8yDCXaFj04Rag9btia4G3nN3hFRn
Properly fixes cookpete/react-player#318 Instead of having to use `playerVars` to play playlists, you can now just pass in URLs, such as https://www.youtube.com/watch?v=4l8Wkrb5JNw&list=PLSmhG8yDCXaFj04Rag9btia4G3nN3hFRn
Properly fixes cookpete/react-player#318 Instead of having to use `playerVars` to play playlists, you can now just pass in URLs, such as https://www.youtube.com/watch?v=4l8Wkrb5JNw&list=PLSmhG8yDCXaFj04Rag9btia4G3nN3hFRn
https://www.youtube.com/watch?v=4l8Wkrb5JNw&list=PLSmhG8yDCXaFj04Rag9btia4G3nN3hFRn
for example- nothing happens...
The text was updated successfully, but these errors were encountered: