Page 1 of 1

libVLCSharp StreamMediaInput

Posted: 02 Nov 2020 10:08
by bellman
Is there any documentation about StreamMediaInput or MediaInput class to provide own Media from memory? || does somebody has a sample?

Re: libVLCSharp StreamMediaInput

Posted: 23 Apr 2021 07:39
by mfkl
What do you need exactly? The StreamMediaInput takes any .NET stream as parameter, this makes it really straightforward to use.

You can find a sample here https://github.com/mfkl/lvst/blob/maste ... Program.cs with a stream continuously receiving pieces from a torrent client.

If you need specific mechanisms (blocking in the read waiting for input, on the fly decryption, etc.), just inherit from MediaInput and implement your own stream mechanism.