libVLCSharp StreamMediaInput

This forum is about all development around libVLC.
bellman
New Cone
New Cone
Posts: 1
Joined: 02 Nov 2020 10:01

libVLCSharp StreamMediaInput

Postby bellman » 02 Nov 2020 10:08

Is there any documentation about StreamMediaInput or MediaInput class to provide own Media from memory? || does somebody has a sample?

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: libVLCSharp StreamMediaInput

Postby mfkl » 23 Apr 2021 07:39

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.
https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 10 guests