🎵 网页音乐播放器代码生成Audio Player Embed Code Generator
输入音频地址,生成网页可用的 HTML5 音乐播放器代码:原生 audio 控件或简洁的自定义样式播放器,可设置循环、预加载、禁止下载按钮和主题色,并实时预览。Enter an audio URL and get embeddable HTML5 player code: the native audio control or a clean custom-styled player, with loop, preload, hide-download and theme colour options, previewed live.
使用说明与常见问题How-to & FAQ
「网页音乐播放器代码生成」是什么?What is the Audio Player Embed Code Generator tool?
输入音频地址,生成网页可用的 HTML5 音乐播放器代码:原生 audio 控件或简洁的自定义样式播放器,可设置循环、预加载、禁止下载按钮和主题色,并实时预览。Enter an audio URL and get embeddable HTML5 player code: the native audio control or a clean custom-styled player, with loop, preload, hide-download and theme colour options, previewed live.
如何使用「网页音乐播放器代码生成」?How do I use the Audio Player Embed Code Generator?
填写 MP3/M4A/OGG 音频的网址,选择样式和选项,复制代码放进网页即可。浏览器通常禁止有声音的自动播放,所以没有提供自动播放选项。Enter the URL of an MP3/M4A/OGG file, choose a style and options, and copy the code into your page. Browsers usually block autoplay with sound, so no autoplay option is offered.
为什么不能自动播放?Why no autoplay?
Chrome、Safari 等浏览器默认禁止有声音的自动播放,只有用户与页面交互后才能播放,所以自动播放在大多数情况下不会生效,这里不提供该选项。Chrome, Safari and others block autoplay with sound until the user interacts with the page, so it rarely works and the option is not offered.
「隐藏下载按钮」能防止别人下载吗?Does hiding the download button stop downloads?
不能。controlsList="nodownload" 只是隐藏 Chrome 原生控件菜单里的下载项,音频地址仍然公开,任何人都可以通过网址获取文件。No. controlsList="nodownload" only hides the download item in Chrome’s native menu; the audio URL is still public and anyone can fetch it.
「网页音乐播放器代码生成」免费吗?数据会上传吗?Is the Audio Player Embed Code Generator free? Is my data uploaded?
「网页音乐播放器代码生成」完全免费,无需注册或安装,手机和电脑都能用;所有处理都在你的浏览器本地完成,输入的内容和文件不会上传到服务器。The Audio Player Embed Code Generator is completely free with no sign-up or install and works on phones and desktops; everything runs locally in your browser and nothing you enter is uploaded.