How turn off Media Title ?

This forum is about all development around libVLC.
nurquhar
New Cone
New Cone
Posts: 4
Joined: 03 Oct 2011 10:18

How turn off Media Title ?

Postby nurquhar » 03 Oct 2011 10:36

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How turn off Media Title ?

Postby Jean-Baptiste Kempf » 03 Oct 2011 15:36

--no-osd or --no-video-title
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

tservettaz
New Cone
New Cone
Posts: 2
Joined: 11 Dec 2012 10:22

Re: How turn off Media Title ?

Postby tservettaz » 11 Dec 2012 10:25

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.

nurquhar
New Cone
New Cone
Posts: 4
Joined: 03 Oct 2011 10:18

Re: How turn off Media Title ?

Postby nurquhar » 11 Dec 2012 13:00

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);


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 4 guests