尝试播放镜头广播URI时获取2210 AG_E_INVALID_ARGUMENT [英] Getting 2210 AG_E_INVALID_ARGUMENT when trying to play a shotcast URI

查看:80
本文介绍了尝试播放镜头广播URI时获取2210 AG_E_INVALID_ARGUMENT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用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/

一般过程是:

  1.        使用HTTPWebRequest建立连接
  2.         实施MediaStreamSource以从URL读取音频
  3.     ;    将输出传递给MediaElement进行播放.
  1.        Establish a connection using HTTPWebRequest
  2.        Implement MediaStreamSource to read the audio from URL
  3.        Pass the output to MediaElement for playing.

希望这会有所帮助,
标记

Hope this helps,
Mark


这篇关于尝试播放镜头广播URI时获取2210 AG_E_INVALID_ARGUMENT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆