Page 1 of 1

How turn off Media Title ?

Posted: 03 Oct 2011 10:36
by nurquhar
I have just start building a simple MFC C++ app that uses the libVLC DLL. I have made my .lib file and with a few mods to vlc includes copied from the full source code I have it compiling and playing a video file.

I have discovered how to turn the full screen opition on but I can't see something which turns off the media title / filename that automaticly displays at the start of playing. :?:

In VLC itself the option to of the title is in the settings "Tools >> Preferences (Ctrl+P) >> Show settings - Simple >> Subtitles & OSD: On Screen Display - [] Show media title on video start"

Is there any documentation other than the include files which to help understand all the function calls in libVLC.dll ?

Using :
MS VC6 & MFC
libVLC 1.1.11

Re: How turn off Media Title ?

Posted: 03 Oct 2011 15:36
by Jean-Baptiste Kempf
--no-osd or --no-video-title

Re: How turn off Media Title ?

Posted: 11 Dec 2012 10:25
by tservettaz
Hello,

I try in vain to remove the display with osd settings - no-osd and - no-video-title. As you offer in this forum.
I use libvlc.dll in a delphi project, but these settings have no effect on the title of the video when it starts playing.

Do you have any idea?

Thank you in advance for your help.

Re: How turn off Media Title ?

Posted: 11 Dec 2012 13:00
by nurquhar
I think I removed the on screen display in the following way in my C++ code :

First I read a vlc command line string from a file into the C string "vlcArgs.c_str()" then parsed it. The string in my file was "-I;dummy;--plugin-path=C:\Program Files\VideoLAN\VLC\plugins;--no-osd"

// Create args list
char **myArgs = new char* [vlcargs];

// Initialise the list
for(int n = 0 ; n < vlcargs ; n++) {
myArgs[n] = NULL ;
}


int myArgc = parseVLCargs(vlcArgs.c_str(), myArgs, vlcargs-1) ;

I then setup the vlc player using this call :

// Run the player app
player_run(myArgc, myArgs, &opts) ;

Where my sub-routine was :

void player_run(int argc, char *args[], PlayerOptions *opts)
{
//libvlc_exception_t excp;
libvlc_instance_t * inst;
libvlc_media_player_t *mp;
libvlc_media_t *m;

// Load the VLC engine
inst = libvlc_new (argc, args);


// Create a new item
m = libvlc_media_new_path (inst, opts->filename);