Hi,
I'm using LibVLC.dll under C# and sometimes if I and a file to the VLC-Playlist with VLC_AddTarget the method returns 4.
Whats that for an Error and how could I avoid them?
greets
Code: Select all
options = new string[] { ":sout=#standard{access=udp,mux=ts,dst=" + RemoteIP + ":" + Port + "}",
":no-one-instance", ":no-loop", ":no-drop-late-frames" };
VLC.Error err = vlc.AddTarget(VideoFile, options);
if (err == VLC.Error.Success)
{
err = vlc.Play();
if (err == VLC.Error.Success)
{
err = vlc.Next();
if (err != VLC.Error.Success)
{
if (vlc.IsPlaying)
{
Message.Enqueue("Starting Video Stream: " + VideoFile + " on Port " + Port);
OnStatusMessage(EventArgs.Empty);
}
else
{
Message.Enqueue("Error starting to stream " + VideoFile + " on Port " + Port + ": VLC is not playing - " + vlc.GetError());
OnStatusMessage(EventArgs.Empty);
}
}
else
{
Message.Enqueue("Error selecting the target " + VideoFile + " on Port " + Port + ": " + vlc.GetError());
OnStatusMessage(EventArgs.Empty);
}
}
else
{
Message.Enqueue("Error playing the stream " + VideoFile + " on Port " + Port + ": " + vlc.GetError());
OnStatusMessage(EventArgs.Empty);
}
}
else
{
Message.Enqueue("Error adding target " + VideoFile + " on Port " + Port + ": " + vlc.GetError());
OnStatusMessage(EventArgs.Empty);
}
Return to “VLC media player for Windows Troubleshooting”
Users browsing this forum: No registered users and 47 guests