播放列表的html代码不适用于博客

时间:2022-05-12 06:06:46

I wrote this HTML code on the HTML gadget of blogger -

我在博主的HTML小工具上写了这个HTML代码 -

<embed name="2playlist"
    src="2playlist.m3u"
    width="300"
    height="90"
    loop="false"
    hidden="false"
    autostart="true">
</embed>

But it's not working. I have little knowledge of HTML, I found this code online. Any suggestions?

但它不起作用。我对HTML知之甚少,我在网上找到了这个代码。有什么建议?

Thank you.

2 个解决方案

#1


1  

The main problem is in your src="2playlist.m3u". You should set the source by hotlinking the .m3u file, for example: http://example.com/music/2playlist.m3u because blogger have no directory system like WordPress.

主要问题在于你的src =“2playlist.m3u”。您应该通过热链接.m3u文件来设置源代码,例如:http://example.com/music/2playlist.m3u,因为blogger没有像WordPress这样的目录系统。

#2


0  

This code uses three kinds of files: html, m3u, and mp3. The code you posted loads a music playlist (m3u), which in turn loads audio files (mp3).

此代码使用三种文件:html,m3u和mp3。您发布的代码会加载音乐播放列表(m3u),然后加载音频文件(mp3)。

Make sure all these files are in the same directory (folder):

确保所有这些文件都在同一目录(文件夹)中:

  • your html file containing posted code
  • 您的html文件包含已发布的代码

  • 2playlist.m3u
  • all the audio files listed in your m3u file
  • m3u文件中列出的所有音频文件

If you need help creating the m3u file, see step one at http://www.quackit.com/html/codes/create_music_playlist.cfm.

如果您在创建m3u文件时需要帮助,请参阅http://www.quackit.com/html/codes/create_music_playlist.cfm上的第一步。

Edit: Since blogger doesn't support directories, you need to put the absolute file path rather than the relative file path. Basically, rather than putting src="2playlist.m3u, you need to have an m3u file somewhere on the internet, and you need to put it's url there instead of 2playlist.m3u.

编辑:由于博客不支持目录,您需要放置绝对文件路径而不是相对文件路径。基本上,不是把src =“2playlist.m3u,你需要在互联网上的某个地方有一个m3u文件,你需要把它放在那里而不是2playlist.m3u。

#1


1  

The main problem is in your src="2playlist.m3u". You should set the source by hotlinking the .m3u file, for example: http://example.com/music/2playlist.m3u because blogger have no directory system like WordPress.

主要问题在于你的src =“2playlist.m3u”。您应该通过热链接.m3u文件来设置源代码,例如:http://example.com/music/2playlist.m3u,因为blogger没有像WordPress这样的目录系统。

#2


0  

This code uses three kinds of files: html, m3u, and mp3. The code you posted loads a music playlist (m3u), which in turn loads audio files (mp3).

此代码使用三种文件:html,m3u和mp3。您发布的代码会加载音乐播放列表(m3u),然后加载音频文件(mp3)。

Make sure all these files are in the same directory (folder):

确保所有这些文件都在同一目录(文件夹)中:

  • your html file containing posted code
  • 您的html文件包含已发布的代码

  • 2playlist.m3u
  • all the audio files listed in your m3u file
  • m3u文件中列出的所有音频文件

If you need help creating the m3u file, see step one at http://www.quackit.com/html/codes/create_music_playlist.cfm.

如果您在创建m3u文件时需要帮助,请参阅http://www.quackit.com/html/codes/create_music_playlist.cfm上的第一步。

Edit: Since blogger doesn't support directories, you need to put the absolute file path rather than the relative file path. Basically, rather than putting src="2playlist.m3u, you need to have an m3u file somewhere on the internet, and you need to put it's url there instead of 2playlist.m3u.

编辑:由于博客不支持目录,您需要放置绝对文件路径而不是相对文件路径。基本上,不是把src =“2playlist.m3u,你需要在互联网上的某个地方有一个m3u文件,你需要把它放在那里而不是2playlist.m3u。