- Home /
Host a webplayer on dropbox
hey
I know nothing about hosting anything, but I want to host a web player of a day-night cycle I created. I don't know if its the best but I was going to use dropbox to host the webplayer. I've exported my scene as a webplayer and have the .html file and the .unity3d file in the dropbox file on my comp:
If I click on the html file in my file explorer and run the webplayer it works perfectly but when I try and run the html file online from dropbox the webplayer come up with the error "failed to download data file".
Please help (any replies I thank in advance)
Answer by Bunny83 · Jan 12, 2013 at 03:58 PM
You have to place the files somewhere in your "public" dropboc folder. If you rightclick a file in the public folder you can copy the public link to the file.
I have tons of example webbuilds in my public folder for Unityanswers ;) I created a subfolder in my public folder.
For example:
local file:
D:\My Dropbox\Public\UnityAnswers\Web\BendTheWorld\WebPlayer.html
public link:
https://dl.dropbox.com/u/7761356/UnityAnswers/Web/BendTheWorld/WebPlayer.html
Some others:
https://dl.dropbox.com/u/7761356/UnityAnswers/Web/SphereTerrain/WebPlayer.html
https://dl.dropbox.com/u/7761356/UnityAnswers/Web/Interception/WebPlayer.html
https://dl.dropbox.com/u/7761356/UnityAnswers/Web/RotatingEarth/WebPlayer.html
edit
Since Dropbox "dropped" the public folder support for free users (afaik as paid user you can still create one), you have to "publish" every file "manually". Since with a new DB account it's no longer possible to publish a whole directory, every link to a published file is unique. Therefore you have to "hardcode" the URL to the ".unity3d" file inside your HTML file.
See these questions for more details:
http://answers.unity3d.com/questions/954694/is-it-still-possible-to-host-web-player-builds-thr.html http://answers.unity3d.com/questions/857181/how-to-upload-a-web-game-to-dropbox-without-errors.html
I don't know if this is normal but your links display the install unity webplayer button when I'm using Google chrome but when I'm using IE they're fine. However my webplayer still doesn't work on either and I've now placed it in my dropbox/Public folder
Well, so does any web player page work for you? Have you tried one of the demo pages of unity if your web player is installed correctly?
I should have said, yeah the ones on the unity website work for me fine
Google chrome rolling/rolled back support for NPAPI :(
Answer by SP0KK0 · Oct 12, 2013 at 08:59 PM
Hey
Although this is an old thread I should report my solution.
I didn't have a public folder when I installed Dropbox. I had to enable one and put the Webplayer files in that. I created a public folder by going to this link and about half way down the page there is the "Creating a Public folder" section.
I hope this helps someone.
Answer by 87Roach · Mar 07, 2014 at 06:47 PM
Okay so I was also looking to share a webplayer link via Dropbox, however I have no Public folder! So, I followed the advice in the above post(notice that Dropbox has exnayed the Public Dropbox), when I clicked on the "Click here to enable a public Dropbox" it went to my online Dropbox and showed me a Public folder there, it did NOT show me this on my computer side Dropbox(I don't know why).
So I dragged my files into the web browser and shared the link from there by right-clicking the file and getting the link.
I hope this also helps someone.
Answer by Nieder · Jul 07, 2014 at 02:21 PM
Did Dropbox stopped working as a Unity Web Player? Here's what I did: 1. Exported my game as a web player | 2. Put it on dropbox in a public folder | 3. Copied the link of the HTML file. But when I put the link on browser (tested on Chrome and Safari), the player doesn't starts. It just gives me the option to download the HTML file fo my game. Can someone help me, please? Thanks!
@Nieder:
Dropbox removed the public folder for new accounts. It is like that for more than 2 years now. I still have an "old" account and have my public folder ;)
According to this site you can enable the public folder feature by clicking the link:
https://www.dropbox.com/enable_public_folder
I can't test it because when i visit that link i just get a notification that i have already a public folder. Try it and tell us if it's working.
@Bunny83 - 404
EDIT: you mean this link, which isn't parsed by this site
EDITEDIT: Only for Pro and Business users.
@Doctor-Jellyface it's just the forum autoformat has screwed up the link. If you'd checked out the linked blog above, you'd have seen it should be:
https://www.dropbox.com/enable_public_folder
Yes, didn't notice that it couldn't handle underscores in URLs... usually URLs just work fine ;) I've edited my comment.
@doctor-jellyface: So have you tried the page and it told you that only Pro and Business users can activate the old public folder? That's a pity. I'm not a pro nor a business user but i have a public folder. However my account is quite old...