I'm trying to create a C# wrapper for this wonderful application (VLC) using the .NET interface and the relative VLC dll (libvlc.dll).
I have a problem: I don't find a function to import in the interface similar to VLC_IsPlaying, but for the fullscreen mode instead. What I need is a function to determinate if the vlc engine is running in fullscreen mode.
I find on the web something and I've tried it.
I used the VLC_VariableGet(iVLC, "fullscreen", val) tryin' to pass to val 0 or -1 but the function always returned -30 (novar error).
Exactly I've written somithing like this:
Code: Select all
public bool isFullScreen()
{
int val = VLC_VariableGet(iVLC, "fullscreen", 0); //using -1 instead of 0, I obtain the same risult
if (val == 0) //if value returns 0, it should be success error according the error enum
return true;
return false;
}
EDIT: libvlc.dll version is "0.8.6c Janus"