VLC_AddTarget() returns 4 -> whats that for an error?

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
CaptainIglo
Blank Cone
Blank Cone
Posts: 16
Joined: 07 Jan 2007 18:48

VLC_AddTarget() returns 4 -> whats that for an error?

Postby CaptainIglo » 24 May 2007 16:17

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

CaptainIglo
Blank Cone
Blank Cone
Posts: 16
Joined: 07 Jan 2007 18:48

Postby CaptainIglo » 30 May 2007 09:13

Nobody knows this?!?
No one of the developers here?

MetalheadGautham
Big Cone-huna
Big Cone-huna
Posts: 720
Joined: 25 Apr 2007 23:11
VLC version: 0.9 series
Operating System: ArchLinux i686
Location: well....... there is a door in front of my house
Contact:

Postby MetalheadGautham » 30 May 2007 09:18

please give more details about your problem and your system, and illustrate your post with a screenshot.
Visit: VLC and Other alternatives to Popular Media Players
Website: thesmallerbang.wordpress.com
On Linux, blindly use VLC, SMPlayer, Kaffeine, GXine, Totem and MPlayer
Image
PM requests to attend to problems will not be entertained
Please post your question in the RIGHT forum.
SEARCH before posting to see if your question's been already answered

CaptainIglo
Blank Cone
Blank Cone
Posts: 16
Joined: 07 Jan 2007 18:48

Postby CaptainIglo » 30 May 2007 10:34

I'm using the following wrapper to use VLC in C#:
http://www.nht-center.net/VLC.net_Main.cs

And the following code to add the File to the VLC:

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); }
Where VideoFile is the Filename including the Path to the File.
I got sometime the return of 4 (unkonwn error) at the VLC_AddTarget() method, but sometimes it works.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 35 guests