声音管理器 2 流广播

Sound Manager 2 stream shoutcast

如何使用 Sound Manager 2 流式传输 shoutcast 流?我找到了很多方法并了解如何流式传输 mp3 文件,但我无法获得需要提供的信息才能通过 shoutcast 进行流式传输。

在我的<head>区加入了js脚本,目前我的播放代码是这样的:

    <script>
      soundManager.setup({
      url: 'swf/',
      flashVersion: 9, // optional: shiny features (default = 8)
      // optional: ignore Flash where possible, use 100% HTML5 mode
      // preferFlash: false,
      onready: function() {
        // Ready to use; soundManager.createSound() etc. can now be called.
        soundManager.createSound({
            id: 'mySound',
            url: 'playlist.pls',
            autoLoad: true,
            autoPlay: true,
            onload: function() {
                soundManager.play('mySound','playlist.pls');

                alert('The sound '+this.id+' is playing!');
            },
            volume: 50
        });
      }
    });
    </script>

任何帮助将不胜感激:)

我知道这个问题有点老了,但它在 Google 中排在首位。

您的 url 必须直接指向流媒体 URL(即 URL 给出一个媒体文件,如 mp3),可以从 m3u 中提取或请文件。

它应该是这样的:http://198.15.94.34:8006/stream

有时在流的最后需要一个分号,像这样:http://198.15.94.34:8006/stream;