Audio file embeds not working

Copper Contributor

I have a site and a few audio files in my OneDrive account that I want to embed in said site using the HTML `<audio>` tag. 

amatasuarezgmailcom_0-1718483553816.png

 

 

I'm following this answer's instructions and it works fine in my personal OneDrive account, which generates embed codes in the following format:

<iframe src="https://onedrive.live.com/embed?resid=XXXXXXXX&authkey=YYYYYYYYYY" width="98" height="120" frameborder="0" scrolling="no"></iframe>

(note the URL domain: https://onedrive.live.com)

 

 

However, in my client's OneDrive account, embeds are generated using a shortened URL domain, like this:

<iframe src="https://1drv.ms/u/s!XXXXXXXXXXXXXXX?embed=1" width="98" height="120" frameborder="0" scrolling="no"></iframe>

 

Naturally, this URL format breaks embedding audio and I don't know how to circumvent this.

amatasuarezgmailcom_1-1718483707535.png

I tried changing "embed=1" with "download=1" but it didn't work out.

 

How can I make these "shortened" URLs work with the audio tag? Perhaps there's a way to disable URL shortening for embeds??

 

Thanks in advance

0 Replies