As you describe, I see the control bar but the video its self never loads. I wonder if this is a deliberate DropBox thing. Having people host public videos from DropBox may represent a bandwidth issue for them. It could also be Discourse (our forum software) which provides the video viewer. Do the videos work if you embed them in a normal wed page? If they do, then that suggests an incompatibility between Discourse and DropBox.
I think it’s a Discourse thing. I can right click on the control bar and select “Copy Video Address” and paste that into a new window at it works just fine.
I wonder if any other discourse forums have a similar issue with Dropbox videos
You’ll have to get a public link from your Dropbox account ONLINE (not local) to supply the URL prefix for the “dbBaseURL” variable in the script.
-Chris
--------------------------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2013/04/29 23:22
# dMod: 2016/12/14 18:55
# Appl: Finder & Script-Runner
# Task: Copy Public Dropbox URLs from selected files to the Clipboard.
# Libs: None
# Tags: @Applescript, @Dropbox, @Public, @URL, @Clipboard
# Test: Mavericks, Yosemite, El Capitan
--------------------------------------------------------------------------------
try
# User must supply by going to their Dropbox.com account online and copying a public link:
set dbBaseURL to "https://dl.dropboxusercontent.com/u/00000000/"
set dbPubStr to ((path to home folder as text) & "Dropbox:Public:")
set AppleScript's text item delimiters to "/Dropbox/Public/"
tell application "Finder"
set _sel to selection as alias list
if _sel ≠ {} then
set hfsPath to item 1 of _sel as text
if (hfsPath does not contain dbPubStr) or (hfsPath = dbPubStr) then
error "Selection not in Public Dropbox folder."
end if
repeat with i in _sel
set contents of i to (dbBaseURL & (text item 2 of (get i's URL)))
end repeat
set _sel to joinList(_sel, linefeed) of me & linefeed
set the clipboard to _sel
end if
end tell
on error e number n
stdErr(e, n, true, true) of me
end try
--------------------------------------------------------------------------------
on joinList(_list, _delimiter)
set {oldTIDS, AppleScript's text item delimiters} to {AppleScript's text item delimiters, _delimiter}
set joinedList to _list as string
set AppleScript's text item delimiters to oldTIDS
return joinedList
end joinList
--------------------------------------------------------------------------------
on stdErr(e, n, beepFlag, ddFlag)
set e to e & return & return & "Num: " & n
if beepFlag = true then
beep
end if
if ddFlag = true then
tell me
set dDlg to display dialog e with title "ERROR!" buttons {"Cancel", "Copy", "OK"} default button "OK"
end tell
if button returned of dDlg = "Copy" then set the clipboard to e
else
return e
end if
end stdErr
--------------------------------------------------------------------------------
Thanks Chris, I will try this as a workaround (hopefully temporary).
Opening a browser, copying a link and running a script as opposed to a single menu selection. It would be better if Discourse could simply display a perfectly good link to a video.
Dropbox generates a perfectly serviceable URL that works pretty much everywhere to display videos except in the discourse forum. This is the only place I know of that’s had this issue.
Discourse recognizes the URL as a video, tries to display it as a video but doesn’t display.
I’m just suggesting that someone report the bug to discourse and see if they are aware of it and if they have workarounds.
In the meantime when I need to post links to movies from DropBox I’ll try one of the other methods, none of which are as elegant or efficient as Dropbox method that doesn’t work here.
To illustrate, here’s a movie of saving a movie to DropBox and getting the link:
The second link is the url - the https:// and that works.
Clicking a link isn’t that bad. I tried it and it worked fine with no problems. I could see the video and hear the sound. It gets the job done. You just don’t get a nice pretty picture in a box before you you watch the video. For me a link is perfectly acceptable.
I’m not sure that is entirely correct.
I am able to consistently post videos in DropBox to Discourse forums (here and Keyboard Maestro). I showed you my process above, and posted an example video above. I’ve never had a failure.
Perhaps one difference is that I have a top level DropBox folder called “Public”, and I have set the Dropbox permissions for “Everyone ReadOnly”.
The dropbox.com/s/ style URL is designed to bypass all issues with permissions. It can share any file you specify from your dropbox folder. (It doesn’t have to be in the public folder. )
Using that link format I can, for example, keep all my SD debugging movies and files in a private folder, but share individual items and the only people who can see the items are those who have the links.
That style link works everywhere else in nearly every other context. (In one forum I go to they only display and play youtube videos in posts, so with the dropbox link they just show the URL. I’ve put in a request there to display and play videos from other sources).
It even works in discourse as a link; as opposed to a video link. Discourse attempts to load and display the link and fails. It also works in discourse to show nearly every other kind of file (the exception being AppleScript apps, which it treats as folders).
I know Dropbox doesn’t have the best rep, but that doesn’t mean that we can just assume that any problem with a link is a dropbox problem.
There are other ways of inserting dropbox videos into posts (none as simple to use or as good as this method), but this is still a bug that should be fixed.
Here’s the message I would send to Discourse:
"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?"
Hi, When I post a link to a dropbox video in a Discourse forum the video image appears in the post and it will play in the post. But, if I use the “dropbox.com/s/” style link to the video it doesn’t display and play in the post.
Instead the video control bar appears and nothing happens.
Is this a known issue with Discourse and the dropbox.com/s/ style of sharing videos?
This is the discourse thread. The one team member seems to know what the issue is (blames dropbox, but provides what I think is an implementable workaround.)
Looks like DropBox is changing their policy/service over the next year.
I just got this email:
From: Dropbox no-reply@dropboxmail.com
Date: Thu, Dec 15, 2016 at 8:00 PM
Subject: Your Public folder will soon become a private folder
We’re always looking to improve the Dropbox sharing experience. The Public folder was the first sharing method we introduced, and since then, we’ve built even better ways for you to share securely and work together with your team.
As a result, we’ll soon be ending support for the Public folder. Dropbox Pro users will be able to use the Public folder until September 1, 2017. After that date the files in your Public folder will become private, and links to these files will be deactivated. Your files will remain safe in Dropbox.
If you’d like to keep sharing files in your Public folder, you can create new shared links. Just make sure to send the new URLs to your collaborators.
In addition to shared links, we have a number of sharing options designed to make collaboration easier and give you more control. To learn more, visit our Help Center.