Search code examples
.netvlclibvlc

nVLC setting options


I'm using nVLC. It is a .NET wrapper for VLC. I want to change the caching time for playing UDP streams.

I saw this thread but it didn't help.

Here is my code:

_player = _factory.CreatePlayer<IVideoPlayer>();
_player.WindowHandle = _PanelPlayer.Handle;
_media = _factory.CreateMedia<IMedia>(ConvertAddressToVlc(cameraAddress));
_media.AddOptions(
    new List<string>() {"--network-caching=10"});
_player.Open(_media);
_player.Play();
this.Invalidate();

Does anyone have an idea?


Solution

  • Try this:

    _media.AddOptions(new List() {":network-caching=10"});