9

I have an element:

<MediaElement x:Name="bgvideo" Width="800" Height="600" />

and I have a stream video:

Stream stream = obj.GetFileStream();

I want to use stream object to source of MediaElement, but default MediaElement use source attribute.

4

2 に答える 2

0

The wonderful Vlc.DotNet library helps with this - more overhead but integrates VLC stream capabilities with WPF to achieve your goal. There are other options as well for most project types.

Check it out here

于 2017-08-16T05:08:20.647 に答える