WPF中的MediaElement播放视频流?
问题描述:
我有一个元素:WPF中的MediaElement播放视频流?
<MediaElement x:Name="bgvideo" Width="800" Height="600" />
,我有一个流视频:
Stream stream = obj.GetFileStream();
我想用流对象的MediaElement
来源,但默认MediaElement
使用source
属性。
您不能直接设置流。看看这个线程的可能的解决方法:http://*.com/questions/7117589/using-mediaelement-to-play-video-from-stream – 2012-07-21 10:39:51
谢谢,your're链接推荐使用BoxedApp – 2012-07-21 11:03:01
你不能这样做与WPF MediaElement的。看看这里http://*.com/questions/7117589/using-mediaelement-to-play-video-from-stream – 2013-02-06 11:53:01