VLC 或 WMP ActiveX 控件接受 Stream 对象吗?
我有一个 WCF 服务,可以记录媒体文件并以 Stream 对象的形式将它们返回到使用应用程序。当使用应用程序想要使用 MediaElement 流式传输媒体时,就会出现问题。众所周知,MediaElement 不接受 Stream 对象。
我可以通过使用 VLC 或 WMP ActiveX 控件来解决这个问题吗?这两个控件中的任何一个都允许我播放流媒体吗?
I've got a WCF service that stories media files and returns them to consuming applications in the form of a Stream object. The issue arises when the consuming application wants to stream the media using MediaElement. As you all know, MediaElement doesn't accept Stream objects.
Can I get around this by using a VLC or WMP ActiveX control? Would either of these two controls allow me to play streaming media?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这两个 Activex 控件都支持各种类型的流媒体,但都不允许您使用 C# Stream 对象,这是一个托管对象。据我所知,这两个 ActiveX 控件根本不使用任何托管代码; WMP 可能会,但在任何情况下都不会通过 COM 接口公开。
如果没记错的话,我认为您可以提供带有单独帧(甚至 H.264 帧)的 MediaElement,因此您可以自己提取流并将其输入 MediaObject。
Both of those two activex controls support various types of streaming media, but neither will allow you to use a C# Stream object, which is a managed object. Niether of those two activex controls use any managed code at all, as far as I am aware; it is possible that WMP may, but it wouldn't be exposed via the COM interface in any case.
If memory serves, I think you can provide a MediaElement with individual frames (even H.264 frames), so you could possibly extract the stream yourself and feed it into the MediaObject.