8
私は要素があります:私はMediaElement
のソースにストリームオブジェクトを使用したいが、デフォルトMediaElement
使用source
属性WPFのMediaElementはストリームからビデオを再生しますか?
Stream stream = obj.GetFileStream();
:
<MediaElement x:Name="bgvideo" Width="800" Height="600" />
を、私は、ストリームビデオを持っています。
ストリームを直接設定することはできません。可能な回避策については、このスレッドをチェックしてください:http://stackoverflow.com/questions/7117589/using-mediaelement-to-play-video-from-stream –
ありがとうございました、あなたのリンク推奨使用BoxedApp –
あなたはWPF MediaElement。ここを見てくださいhttp://stackoverflow.com/questions/7117589/using-mediaelement-to-play-video-from-stream –