Garry's Mod

Garry's Mod

3D Stream Radio
此主题已被锁定
logan2611 2014 年 10 月 28 日 下午 6: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.
最后由 logan2611 编辑于; 2014 年 10 月 29 日 下午 2:24
< >
正在显示第 1 - 9 条,共 9 条留言
Grocel  [开发者] 2014 年 10 月 30 日 上午 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.
最后由 Grocel 编辑于; 2014 年 10 月 30 日 上午 6:44
logan2611 2014 年 10 月 30 日 下午 4: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.
最后由 logan2611 编辑于; 2014 年 10 月 30 日 下午 4:58
Grocel  [开发者] 2014 年 10 月 31 日 上午 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 2014 年 10 月 31 日 下午 3:39 
I have tried that already and it said File is unsupported. :(
Grocel  [开发者] 2014 年 10 月 31 日 下午 3: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.
最后由 Grocel 编辑于; 2018 年 12 月 26 日 上午 6:08
logan2611 2014 年 10 月 31 日 下午 4: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
最后由 logan2611 编辑于; 2014 年 10 月 31 日 下午 4:44
Grocel  [开发者] 2014 年 10 月 31 日 下午 5: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 2014 年 10 月 31 日 下午 7:02 
Alright i've got it working with dropbox. Thanks
Grocel  [开发者] 2018 年 12 月 26 日 上午 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.
< >
正在显示第 1 - 9 条,共 9 条留言
每页显示数: 1530 50