WP7音频流问题 [英] WP7 audio stream problem

查看:121
本文介绍了WP7音频流问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的MediaElement播放音频MP3数据流,
 一切正常的话,但现在我有没有以.mp3结尾MP3流,
 ( http://server2.fmstreams.com:8011/spin103 )和我得到

I'm using MediaElement to play audio mp3 stream, everything goes ok, but now I have mp3 stream that does not end with .mp3, ( http://server2.fmstreams.com:8011/spin103) and I'm getting

AG_E_NETWORK_ERROR

AG_E_NETWORK_ERROR

我找到解决办法补充?EXT = MP3,但它并没有为我工作,任何想法?

I found solution to add ?ext=mp3, but it didn't work for me, any ideas?

推荐答案

如果您是流媒体直播广播,流可能是连接通过的Icecast服务器或SHOUTcast服务器codeD。要阅读这些流,你需要去code在memomry流,并将它传递到MediaElement的,一旦它已经去codeD。

If you are streaming live radio, the stream may be encoded by an IceCast server or ShoutCast server. To read these streams, you will need to decode the stream in memomry and pass it to the MediaElement once it has been decoded.

看看 Mp3MediaStreamSource http://archive.msdn.microsoft .COM / ManagedMediaHelpers

Silverlight的音频输出

我失去了大量时间在这,这是我迄今发现的最好的解决方案。

I lost tons of time on this, and this is the best solution I found so far.

您还必须确保当您正在测试,该设备必须从计算机上拔下。

You also have to be sure that while you are testing, the device must be unplugged from the computer.

这篇关于WP7音频流问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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