Web Applications Asked by nholtappels on February 25, 2021
I would like to obtain a link to an mp3 hosted in Google Drive that has the format filename.mp3
, so I can link to it from sites that provide in-line audio players when linking to mp3 files.
I have searched the web and different SE sites, but the closest thing to a solution I have found is obtaining a direct download link for the file or advice on hosting it elsewhere. However, for (future) convenience I would prefer to host and link directly from / to Google Drive.
Can anyone provide some insight or point out why this might not work?
Yes, it is possible.
First, change the directory permission to public in which your mp3 files reside.
Copy the folder ID, that will be at the end of URL when you are inside the directory. It will be something like this
0C2QKl-TsV6cVTE7wbWNOelRiRlk
Next you can access the mp3 files using hosted mode:
https://googledrive.com/host/0C2QKl-TsV6cVTE7wbWNOelRiRlk/filename.mp3
Note that the beginning part of the URL changes to https://googledrive.com/host/
for hosted mode compared to "normal" shared link mode URL https://drive.google.com/open?id=
.
Correct answer by mbaljeetsingh on February 25, 2021
spent an entire day on this problem. like others say it
https://docs.google.com/uc?export=open&id=XXXXXXXXXXXXXXXXXXXXXXX
worked few minutes then it got blocked.
I used Github. basically, you can drag and drop an MP4 file to an issue then use that link to upload in my code works. NOT MP3 because GitHub allows only certain files to be uploaded. then I googled mp3 convert to mp4 (which https://www.zamzar.com/). works.
Answered by Johan Suh on February 25, 2021
This example works:
<audio controls="">
<source src="http://docs.google.com/uc?export=open&id=1uZd99P8_xWM3fYsoSl4xHa8md2MWHa68" type="audio/mp3"></source>
Your browser does not support HTML5 audio <br />
</audio>
Answered by Jasbir on February 25, 2021
I had the same issue and got it work with the following URL:
https://docs.google.com/uc?export=open&id=XXXXXXXXXXXXXXXXXXXXXXX
Answered by tfrancois on February 25, 2021
Don't know if this still helps anybody, but this can be done. With an “anybody with the link can view the file” link:
uc?id=
and append it with &export=download
So it would look like this:
https://docs.google.com/uc?id=FILE-ID&export=download
Answered by Ali on February 25, 2021
If you share an MP3 by link, you obtain a link like this
https://drive.google.com/file/d/XXXXXXXXXXXXXXXXXX/view?usp=sharing
where XXXXXXXXXXXXXXXXXX
is the ID of your MP3 file.
Then you can obtain a direct link to this audio by
http://docs.google.com/uc?export=open&id=XXXXXXXXXXXXXXXXXX
In particular you can use
<audio controls>
<source src="http://docs.google.com/uc?export=open&id=XXXXXXXXXXXXXXXXXX" type="audio/mp3">
<p>Your browser does not support HTML5 audio :(</p>
</audio>
Answered by Kpym on February 25, 2021
I researched this topic today for about an hour. As of recently (i.e. 2015/05), I also don't believe it's possible any more, but I'd love to be proved wrong.
Answered by user95558 on February 25, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP