David
David

Reputation: 660

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?

Upvotes: 0

Views: 572

Answers (2)

Roman Gin
Roman Gin

Reputation: 36

Try this:

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

Upvotes: 1

mfkl
mfkl

Reputation: 2159

Try adding this option to that constructor: https://github.com/pauldotknopf/nVLC/blob/21ce49399a67c98fc5ceeb658eddd7280751555b/src/Implementation/MediaPlayerFactory.cs#L86

Though, I'd suggest you move to Vlc.DotNet. nVLC is not maintained anymore and has not been for a long time.

Upvotes: 1

Related Questions