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

How to put google drive audio Mp3 files into html

WBOY
Release: 2024-02-09 12:21:07
forward
1265 people have browsed it

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>
Copy after login

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!

source:stackoverflow.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template