Reputation: 660
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
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