发现自己又错了,才发现Silverlight 1.1 Alpha对MMS协议支持并不完善,仅仅只是能播放和消耗极少的内存而已,而对于流媒体播放的一些事件开始变得奇怪。
播放MMS流时,只是有播放缓冲,即缓冲百分比和下载百分比会迅速变成100%,随即开始播放,而更奇怪的是,当播放一个自动换头的MMS流时,其播放状态不再是和HTTP流一致。在HTTP流中,在换头时,有播放事件Media Ended,而播放MMS流结束后并不会触发这个事件,而是把播放状态(Current State)改变为Paused,此时若在程序中更改MMS流的地址,则会触发一个Media Ended事件。
另外,对于MMS和HTTP流的支持,在Silverlight 1.0的SDK中是这么说的:
Streaming
In addition to progressive downloads, MediaElement supports live and on-demand streaming from a Windows Media Server. If the file URI specifies the mms protocol, the MediaElement attempts to stream the file first. If the file can't be streamed, it downloads the file progressively. If the file URI specifies another protocol, such as http or https, the MediaElement attempts a progressive download first. If that fails, the MediaElement attempts to stream the file.
Note that live streaming media cannot be paused--calling the Pause method has no effect.
您可能对这些文章也感兴趣:- 奇怪的Silverlight更新
- Silverlight 2.0 RTW发布,等写完MooTools文档开始玩
- Silverlight中XmlReader解析XML的流程
- 让Silverlight的大小随浏览器大小变化
- Silverlight直接从1.1 Alpha跳到2.0 Beta?
- Silverlight Alpha 1.1十一月份不会过期
- 中秋快乐哦~Silverlight的中秋祝福
- Silverlight 1.0 Released
- Flash或者Silverlight来实现P2P靠谱不?
- [翻译]The Web Is Dead
与该文相关的评论:(我也想说几句)Processed in 0.2187542 second(s) , unknow queries
Powered by OWord V0.1, Even Not Alpha
(此博客程序为半成品,请勿索取,以免给您的心灵造成创伤^_^)
鄂ICP备05026031号
2007-11
我来说两句:
用户中心
日志分类

最新日志
统计信息





