Dropbox video doesn't preview or display


(Ed) #1

There is a bug with displaying videos from Dropbox using the dropbox.com/s/ format. That is the format dropbox uses for sharing specific files, and it works in Discourse for all other kinds of files. For video files rather than display the video in the posts with the option to play within the post, Discourse only displays the video’s control bar.

Is this an issue with the set-up of the forum or is it an issue with Discourse displaying videos using the dropbox.com/s/ style link?


(Ed) #2

Here is that same link with the https// removed:


(Rafael dos Santos Silva) #3

https://dl.dropboxusercontent.com/u/7299563/myamoto_ssj.webm
https://dl.dropboxusercontent.com/u/7299563/myamoto_ssj.webm

The above video is in my public folder, I just copied the link and it works.


(Ed) #4

Thanks for the reply. The issue is with the Dropbox.com/s/ style link.

Dropbox is phasing out public folders so it would be good to make these work


(Rafael dos Santos Silva) #5

Oh, I didn’t now that.

I see. Looks like /s/ links:

  • end with the file extension (.webm, .mp4)
  • serve HTML instead
  • OpenGraph tags serve type:website instead of type:video
  • No oEmbed support

I’m not amused. Looks like dropbox don’t wanna host videos that get shared on the internet. For that you should try other plataforms that allow embed like Youtube and Vimeo.

The “fix” here is to stop using the file name to guess, let Onebox interpret OpenGraph tags and display a regular onebox like this:


(Ed) #6

One more tidbit. If the dropbox.com/s/ link is followed by ?=0 it doesn’t work, but if it’s followed by ?=1 it does.

First link ?=1

Second link ?=0


(Jeff Atwood) #7

This seems sorted with recent onebox improvements.


(Blake Erickson) #8

Looks like this has stopped working again: