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. 




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="" width="98" height="120" frameborder="0" scrolling="no"></iframe>

(note the URL domain:



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

<iframe src="!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.


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