cookpete / react-player

A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion
https://cookpete.github.io/react-player
MIT License
8.98k stars 1.12k forks source link

Cannot play videos from Dropbox URLs #1713

Closed TheOneTheOnlyJJ closed 5 months ago

TheOneTheOnlyJJ commented 7 months ago

Current Behavior

Giving react-player a Dropbox video URL does not work. The player displays the loading animation and after a few secods, a grey screen appears, with the Play icon being disabled.

Expected Behavior

Giving react-player a Dropbox video URL loads the video from the given URL as it would load a video from a given local path.

Steps to Reproduce

  1. Get a shareable Dropbox URL pointing to an .mp4 video file
  2. Initialise the player with the above-mentioned URL
  3. Start the application and load the page where the video-player resides

Environment

Other Information

I have already read #379 and looked at the current player code, which treats Dropbox URLs separately from any other file URLs. I have tried modifying the Dropbox URL in the following ways:

None of the modified URLs produced different behaviour.

react-player

TheOneTheOnlyJJ commented 5 months ago

Update: I got it to work. The cause of the problem was the video encoding format my videos used, not the handling of the Dropbox links themselves.