Garry's Mod

Garry's Mod

3D Stream Radio
Denne tråd er blevet låst
logan2611 28. okt. 2014 kl. 18:21
Add Google Drive/Dropbox Support?
So maybe this is a glitch, but it doesn't seem like it since everytime I try to play something from my google drive or dropbox accounts it read unsupported file format, despite them being in mp4 and mp3 format. I have tried renaming it to one word and tried other formats as well.
Sidst redigeret af logan2611; 29. okt. 2014 kl. 14:24
< >
Viser 1-9 af 9 kommentarer
Grocel  [udvikler] 30. okt. 2014 kl. 6:36 
You have to use public URLs to the file. There can't be a Google Drive/Dropbox account support, because the API GMod provides can't.

Dropbox has a public folder. So you can move things there. Im not sure about Google Drive, though.
Sidst redigeret af Grocel; 30. okt. 2014 kl. 6:44
logan2611 30. okt. 2014 kl. 16:57 
With google drive I think you can make it so that the sharing option says it is public. If that is what you mean.
Sidst redigeret af logan2611; 30. okt. 2014 kl. 16:58
Grocel  [udvikler] 31. okt. 2014 kl. 5:31 
The important thing is that you have to have an URL that hot links to the file that would works for everyone who would click it.
logan2611 31. okt. 2014 kl. 15:39 
I have tried that already and it said File is unsupported. :(
Grocel  [udvikler] 31. okt. 2014 kl. 15:54 
When you enter that link in the browser, does it direct you to a page with a download button or "please wait" on it or does it start the file download immediately?

When the URL leads to the said webpage, than the radio will have the error "file is unsupported", because it tries to play a HTML file.
Sidst redigeret af Grocel; 26. dec. 2018 kl. 6:08
logan2611 31. okt. 2014 kl. 16:44 
It goes straight to the file, however it doesn't seem to play automaticly:
https://drive.google.com/file/d/0B4kZYJzDAur2RUYyR0hYR1dIWk0/view
For an example
Sidst redigeret af logan2611; 31. okt. 2014 kl. 16:44
Grocel  [udvikler] 31. okt. 2014 kl. 17:08 
This leads to a webpage with a player or something on it which is not(!) the file itself. I don't think it wont let you hot link with a static URL to the file, so you can't play it with the radio via Google Drive. You should try Dropbox instead then.
logan2611 31. okt. 2014 kl. 19:02 
Alright i've got it working with dropbox. Thanks
Grocel  [udvikler] 26. dec. 2018 kl. 6:11 
Because someone was asking: Drobbox has removed the public folder. However you can mark single files as puplic instead. You get a puplic URL you can use for playback if it doesn't lead to a splash/download page.
< >
Viser 1-9 af 9 kommentarer
Per side: 1530 50