Using MediaElement to play video from Stream

前端 未结 5 895
生来不讨喜
生来不讨喜 2020-11-27 05:34

Is it possible to use the WPF MediaElement to play streaming video from a System.IO.Stream object? The Stream object is being retrieved from a WCF service that stores the me

5条回答
  •  -上瘾入骨i
    2020-11-27 06:09

    I know this isn't what you asked for but you can host a VLC ActiveX component inside a window in WPF and then use that VLC control to connect to the stream and display the stream. This is how I got streaming working through WPF.

    Edit: this page has an example of how to host an ActiveX control inside WPF

提交回复
热议问题