-
-
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
Can't get ReactPlayer to work with redirect urls #86
Comments
This is something I've been thinking about recently, especially with the demand for supporting blob URLs and RTSP URLs. I wonder if import ReactPlayer, { FilePlayer } from 'react-player'
return (
<ReactPlayer
url='https://domain.com/redirects/files/20'
playing={true}
forcePlayer={FilePlayer}
/>
) |
Hmm, would it make more sense to just have |
Can we get some implementation of this ASAP? Later on it'd possible to decide which method is more convenient! Thanks making this component btw 😁 |
Fall back to FilePlayer if no other players can play the given URL Still renders Youtube or Vimeo if the preload config option is set Fixes #86
I've pushed a possible fix to the |
Fixed in |
Bringing up, ReactPlayer doesn't seem to follow redirects, for example: tested with also tested in demo page here: |
I'm not sure how to get ReactPlayer to load a url like
https://domain.com/redirects/files/20
.Right now it returns a video tag in FilePlayer but no src is being set. Any ideas how to config this?
The text was updated successfully, but these errors were encountered: