Flex/Flash Shoutcast 播放器 [英] Flex/Flash Shoutcast player
问题描述
我正在尝试为我公司的 Shoutcast 服务器构建一个 Flash 播放器,并且在网上看到了一些关于它的文章,包括这个 SO question 此处.
I am trying to build a flash player for my company's Shoutcast server, and have seen a few articles about it on the 'net, including this SO question here.
但是,我似乎无法实际播放音频流.它似乎连接正常,但调用 stream.play() 似乎没有做任何事情.
However, I can't seem to get the audio stream to actually play. It seems to be connecting alright, but calling stream.play() doesn't seem to do anything.
我已经尝试了我链接到的 SO 问题中的代码,并且还尝试了类似的东西(对不起,我不记得确切的语法):
I have tried the code in the SO question I have linked to, and have also tried something similar to this (sorry i don't remember the exact syntax):
public function stream() {
private var url:URLREQUEST = "my.domain.com";
private var sStream:Sound = new Sound();
sStream.load(url);
sStream.play();
}
如果有人对我有任何启示,我将不胜感激.
If anyone has any revelations for me I'd appreciate it.
推荐答案
我刚刚在此线程上发布了一个解决方案:
I just posted a solution on this thread:
如何进行直播Flash 中的无线电广播(Shoutcast Flash Player)
这篇关于Flex/Flash Shoutcast 播放器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!