流媒体视频Windows Phone 7 中的音频 [英] Streaming video & audio in Windows Phone 7

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

问题描述

我有一个 ASX 流,我想在我的 Windows Phone 7 上播放.看来 WP7 无法处理客户端播放列表,如 ASX 文件.那我现在该怎么办?

I have an ASX stream that I would like to play on my Windows Phone 7. It appears that WP7 cannot handle client-side playlists, like an ASX file. So what do I do now?

当我进入 ASX 文件时,我看到它实际上是一个 mms:// 流,没有文件扩展名,所以我什至无法指向原始文件.

When I break into the ASX file, I see it's actually a mms:// stream with no file extension, so I can't even point to the raw file.

我如何从这里开始?是否有比处理 ASX 文件的 MediaElement 控件更好的选择?

How do I proceed from here? Is there a better option than the MediaElement control that will handle ASX files?

更多信息:
我有问题的流是音频/视频,分别使用 WMA2/WVC1 编码,以 640x360 运行.因此,根据支持的文件类型MediaElement 控件应该能够处理它没有问题.

More Info:
My stream in question is audio/video, with WMA2/WVC1 encoding, respectively, running at 640x360. So according to the supported filetypes, the MediaElement control should be able to handle it no problem.

推荐答案

您实际上不必指向原始文件.即使使用流 URL,您也可以接收数据位(假设可以通过 HTTP 请求访问流).我最近写了关于接收连续流这里的文章.

You don't actually have to point to the raw file. Even with the stream URL you can receive the data bits (given that the stream can be reached via a HTTP request). I recently wrote about receiving continuous streams here.

一旦你有了这些位,通过 MediaStreamSource 获取编码流并将其传递给 MediaElement.

Once you have the bits, pass them through MediaStreamSource to get the encoded stream and pass it to MediaElement.

这篇关于流媒体视频Windows Phone 7 中的音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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