Sourcing audio from google drive

Hi,

 

When I try to add an audio clip with the web address from google drive, the audio comes up as unknown. Is there a way to fix this? I have ensured that the file is sharable and editable from google drive.

 

Cheers

Trish

Content types: 
BV52's picture

Hi Trish,

The URL that Google Drive provides you is not the where the audio file is located in their servers, instead it is the URL for playing the audio. H5P expects a link directly to the audio file which usually ends with the file type. Below is a comparison of Google drives URL and one that is the audio file:

https://drive.google.com/file/d/1AXaJAW3rVnsVQC8MlKNvLUM56xUCuEOp

https://file-examples.com/storage/fe5d1b837563bc320a04641/2017/11/file_e...

These are the same file but the second links is the direct URL for the file. You can check with Google if they provide this URL.

-BV 

otacke's picture

Hey all!

I just wrote a longer post at https://snordian.de/2023/01/09/i-am-giving-h5p-a-link-to-some-media-file-but-it-doesnt-work-why/ that may explain in more detail what BV already described briefly. Hope it helps.

Cheers,
Oliver

BV52's picture

Hi Oliver,

Well written! Thank you for sharing.

-BV

otacke's picture

Part of my (hopefully steadily growing) archive of answers to FAQs - just in case https://h5p.org/FAQ and https://help.h5p.com are not enough ;-)