如何使用HTML音频标签播放Google Drive mp3文件? [英] How to play google drive mp3 file using html audio tag?
问题描述
我的目的是从Google驱动器播放mp3文件.我正在使用插件MediaElement js.我得到的参考是 https://www.portalzine.de/dev/html5/hosting-mp3-files-on-google-drive-html5-audio-player/这适用于Chrome,Mozilla firefox,但不适用于IE-11,Safari和Opera.我希望在所有浏览器中都能播放.请给我建议....
My aim is to play the mp3 file from the google drive. I am using the plugin MediaElement js. The reference I got is https://www.portalzine.de/dev/html5/hosting-mp3-files-on-google-drive-html5-audio-player/ This is working in chrome, Mozilla firefox but not in IE-11, safari and opera. I want this to be play in all browsers. Please give me the suggestions....
推荐答案
1.音频文件的网址(任何人都可以查看) https://drive.google.com/file/d/1nQklEicsMeGBnuk0vv6zkHtXtyGy10S-/view?usp =共享
2.从URL提取ID 1nQklEicsMeGBnuk0vv6zkHtXtyGy10S-
2. Extract the id from URL 1nQklEicsMeGBnuk0vv6zkHtXtyGy10S-
3.播放音频文件的网址 https://docs.google.com/uc?export=download&id=1nQklEicsMeGBnuk0vv6zkHtXtyGy10S-
4.下载音频文件的网址 https://drive.google.com/uc?authuser= 0& id = 1nQklEicsMeGBnuk0vv6zkHtXtyGy10S-& export = download
5.用于播放音频的HTML:
<audio controls="controls">
<source src="https://docs.google.com/uc?export=download&id=1nQklEicsMeGBnuk0vv6zkHtXtyGy10S-">
</audio>
6.用于下载音频的HTML:
<a href="https://drive.google.com/uc?authuser=0&id=1nQklEicsMeGBnuk0vv6zkHtXtyGyO9S-&export=download"/>Download
这篇关于如何使用HTML音频标签播放Google Drive mp3文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!