Home  >  Article  >  How to put google drive audio Mp3 files into html

How to put google drive audio Mp3 files into html

WBOY
WBOYforward
2024-02-09 12:21:071222browse

php editor Baicao introduces you how to embed audio MP3 files in Google Drive into HTML. When creating a web page, sometimes we need to add audio files to the page. Google Drive provides an easy way to embed audio files directly into web pages. Here's a simple step-by-step guide to help you achieve this goal.

Question content

"url": "https://docs.google.com/uc?export=download&id=1FE_WAOENakCImHdgYznSuqbudkpkmiXf ", this link cannot be played in the html audio code, it is now Unable to play, can anyone help me fix this? Lets say I want to play this link https://drive.google.com/file/d/1OPDIlBvbQSqfJJkAZRb4THnAbGksQpsJ/view?usp=drive_link Can you help?

Your text

Solution

Use the "embed item..." provided by the google drive link in the html code:

embed item... The link provides the following code:

<iframe src="https://drive.google.com/file/d/1OPDIlBvbQSqfJJkAZRb4THnAbGksQpsJ/preview" width="640" height="480" allow="autoplay"></iframe>

You can add this in the bode of the html code and it should give the following result, for me it played the audio file.

The above is the detailed content of How to put google drive audio Mp3 files into html. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:stackoverflow.com. If there is any infringement, please contact admin@php.cn delete