ZeBobo5 / Vlc.DotNet

.NET control that hosts the audio/video capabilities of the VLC libraries
MIT License
947 stars 416 forks source link

--repeat comand doesn't work in Vlc.DotNet.WPF #663

Closed nusuev closed 3 years ago

nusuev commented 4 years ago

I have an issue / a question (pick one) about Vlc.DotNet.

Generic information

Summary

I am trying to retrieve the rtsp stream from my server, and when I disconnect vlc (after sending a Teardown request), I want the vlc to reconnect. When run from the console (vlc --repeat --rtsp-tcp rtsp://ip:port) everything works. But when running from wpf application, the --repeat command doesn't work.

var libDirectory = new DirectoryInfo(Path.Combine(currentDirectory, "libvlc", IntPtr.Size == 4 ? "win-x86" : "win-x64"));

this.VlcControl.SourceProvider.CreatePlayer(libDirectory, new string[] { "--rtsp-tcp", "--repeat" });

string liveLink = $"rtsp://{ip}:{port}/{kid}";

this.VlcControl.SourceProvider.MediaPlayer.Play(liveLink);

already tried using the command --loop and --insert-repeat=65535 nothing works can anyone suggest a solution to the issue?

mfkl commented 4 years ago

some flags work only in VLC, not in libvlc. See https://github.com/ZeBobo5/Vlc.DotNet/issues/96 for alternatives.