How to show information on the srceen

This forum is about all development around libVLC.
Ares19851110
Blank Cone
Blank Cone
Posts: 38
Joined: 26 Oct 2011 08:19

How to show information on the srceen

Postby Ares19851110 » 16 Dec 2013 08:38

When VLC plays back video, at the beginning it shows the name of video at the bottom of screen, as shown below.
Image

I want to know how to show information like that. Which code in VLC should I modify?

Thank you!

limj
New Cone
New Cone
Posts: 7
Joined: 15 Dec 2013 01:04

Re: How to show information on the srceen

Postby limj » 16 Dec 2013 13:24

use libvlc_video_set_marquee_string
just like this:
libvlc_video_set_marquee_string(vlc_player, libvlc_marquee_Text, mytext);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Opacity, 50);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_X, 10);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Y, 10);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Timeout, 4000);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Size, 40);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Color, 0xffffff);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Enable, 1);

It'works with VLC 2.0.2, get nothing with current version.

limj
New Cone
New Cone
Posts: 7
Joined: 15 Dec 2013 01:04

Re: How to show information on the srceen

Postby limj » 16 Dec 2013 13:24

use libvlc_video_set_marquee_string
just like this:
libvlc_video_set_marquee_string(vlc_player, libvlc_marquee_Text, mytext);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Opacity, 50);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_X, 10);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Y, 10);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Timeout, 4000);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Size, 40);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Color, 0xffffff);
libvlc_video_set_marquee_int(vlc_player, libvlc_marquee_Enable, 1);

It'works with VLC 2.0.2, get nothing with current version.

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

Re: How to show information on the srceen

Postby sherington » 16 Dec 2013 15:04

Not ideal, but the marquee API works for me if I pass "--sub-filter=marq" when I create a libvlc instance with libvlc_new(...).

limj
New Cone
New Cone
Posts: 7
Joined: 15 Dec 2013 01:04

Re: How to show information on the srceen

Postby limj » 16 Dec 2013 15:18

Not ideal, but the marquee API works for me if I pass "--sub-filter=marq" when I create a libvlc instance with libvlc_new(...).
you are right!
It's work with current version now!

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

Re: How to show information on the srceen

Postby Jean-Baptiste Kempf » 16 Dec 2013 16:50

You should report the bug.
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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 21 guests