尝试播放镜头广播URI时获取2210 AG_E_INVALID_ARGUMENT [英] Getting 2210 AG_E_INVALID_ARGUMENT when trying to play a shotcast URI
问题描述
我正在尝试使用MediaElement播放Shoutcast流,但是我得到了 2210 AG_E_INVALID_ARGUMENT 例外消息.
I'm trying to use a MediaElement to play a Shoutcast stream, but I get and 2210 AG_E_INVALID_ARGUMENT exception message.
有人可以告诉我我的Shoutcast服务器是否有问题吗?还是我的代码?
Could anyone tell me if is there any wrong with my Shoutcast Server?? or my code?
我的代码非常简单!
My code is VERY simple!!
公共MainPage()
public MainPage()
推荐答案
Shoutcast使用自定义协议.这是一个Codeplex项目,但我不能保证其当前项目状态:
Shoutcast uses a custom protocol. Here is a codeplex project but I cannot vouch for its current project state:
http://shoutstreamsource.codeplex.com/
这是另一个:
http://shoutcastmss.codeplex.com/
一般过程是:
- 使用HTTPWebRequest建立连接
- 实施MediaStreamSource以从URL读取音频
-   ; 将输出传递给MediaElement进行播放.
- Establish a connection using HTTPWebRequest
- Implement MediaStreamSource to read the audio from URL
- Pass the output to MediaElement for playing.
希望这会有所帮助,
标记
Hope this helps,
Mark
这篇关于尝试播放镜头广播URI时获取2210 AG_E_INVALID_ARGUMENT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!