我可以将 System.IO.Stream 与 ActiveX VLC 控件一起使用吗?
我正在考虑使用 VLC 作为我的 WPF 应用程序的 ActiveX 控件,但我不确定它是否接受 System.IO.Stream 对象作为输入参数并能够以这种方式流媒体。我还没有找到任何明确的答案,所以在我真正开始之前,我想确保 VLC 可以做到这一点。
System.Windows.Controls.MediaElement
对我来说是不可能的,因为它只接受 URI 作为源的输入参数。 AxWindowsMediaPlayer 也是如此,我认为它会起作用。
I'm thinking about using VLC as an ActiveX control for my WPF application, but I'm unsure of whether or not it would accept a System.IO.Stream
object as an input parameter and be able to stream media that way. I haven't been able to find any definitive answers to this, so before I actually go ahead with this, I'd like to be sure that VLC can do this.
The System.Windows.Controls.MediaElement
is out of the question for me since it only accepts URIs as input parameters for the source. The same goes for AxWindowsMediaPlayer, which I thought would work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它将无法接受“非原始”类型,例如流。这些是 .Net 类型,在 COM 中没有直接类似的类型。它必须经过明确设计才能通过 COM 互操作处理流。
It will not be able to accept "non-primitive" types such as streams. These are .Net types which haves no direct analogue in COM. It would have to have been explicitly designed to work with streams via COM interop.