MediaElement in WPF play video from stream?

Viewed 6546

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.

2 Answers

Currently Vlc.Dotnet support for libvlc 4 is not planned (ref.). You can use Videolan.LibVLC Libraries from this nuget.org library or their code repository.

Related