-
-
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
src is not set when using file #1508
Comments
I can also see an error returned by the onError call back with the following... |
Downgraded CRA to react 17 and things seem to be working so chalking this up to an issue with React 18 specifically. |
Could this be a weird side effect of #1360? Not sure what’s going on here. |
I have same issue too. I think that 'src' should be set again when component is re-mounted. https://reactjs.org/docs/strict-mode.html#ensuring-reusable-state
|
I am facing the same issue with React.js 18 and Next.js, did any one find a solution for this? |
I was facing also this issue (React 18.2.0 - react-player 2.11.0) Comment (or removing) |
Downgrading react-player to v2.10.1 or removing |
I have the same issue in React 18. Downgrading to v2.10.1 does NOT fix the issue. Everything is fine after removing In my function component, I do not render the video player at all if the URL string happens to be empty/null/undefined. Here is part of the error that is generated from the |
Yep when i remove the strict mode, all works fine. Is there any solution for this issue? |
I can't downgrade react because i use NextJS last version, but downgrading react-player to v2.10.1 is helped me. Thank you gues a lot. |
Hopefully fixed by #1538 |
was not fixed by #1538 for me (I'm using the problem appears for urls provided as an array of objects with type and src properties I have tested on audio files so far, I guess the problem is the same on video files |
I am also experiencing this issue:
|
Also experiencing this. Single string works fine, array of either strings or objects fails. |
#1612 fixes this |
Me too, cant play multiple urls for safari and chrome. anyone know s a fix? |
Current Behavior
When setting URL = a mp4 the video SRC is never set, thus the player never loads. Occasionally when hot reloading kicks in the player will work.
Expected Behavior
setting
url="https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4"
should workalso tried,
url={[{src: 'https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4'}]}
Steps to Reproduce
<ReactPlayer url="https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4" controls />
Other Information
The text was updated successfully, but these errors were encountered: