Changing the value of libvlc_marquee_Text asynchronously

This forum is about all development around libVLC.
tuff
New Cone
New Cone
Posts: 6
Joined: 08 Jun 2015 09:26

Changing the value of libvlc_marquee_Text asynchronously

Postby tuff » 08 Jun 2015 09:50

Hello,

I am trying to set a marquee value for my player and update it whenever I recieve a value from a server. I could manage to set the first value of the marquee but could not change afterwards. Here, the code portion about how I initialize the marquee:

libvlc_video_set_marquee_int(this->m_pSimulatorController->getVLCPlayer()->getMediaPlayer(), libvlc_marquee_Enable, 1);
libvlc_video_set_marquee_string(this->m_pSimulatorController->getVLCPlayer()->getMediaPlayer(), libvlc_marquee_Text, ("SOME_TEXT");
libvlc_video_set_marquee_int(this->m_pSimulatorController->getVLCPlayer()->getMediaPlayer(), libvlc_marquee_Opacity, 200);
libvlc_video_set_marquee_int(this->m_pSimulatorController->getVLCPlayer()->getMediaPlayer(), libvlc_marquee_Position, 8);
libvlc_video_set_marquee_int(this->m_pSimulatorController->getVLCPlayer()->getMediaPlayer(), libvlc_marquee_Refresh, 10);
libvlc_video_set_marquee_int(this->m_pSimulatorController->getVLCPlayer()->getMediaPlayer(), libvlc_marquee_Timeout, 500);
libvlc_video_set_marquee_int(this->m_pSimulatorController->getVLCPlayer()->getMediaPlayer(), libvlc_marquee_Size, 40);
libvlc_video_set_marquee_int(this->m_pSimulatorController->getVLCPlayer()->getMediaPlayer(), libvlc_marquee_Color, 0xffff00);

and in the callback function I try to update the value as:
libvlc_video_set_marquee_int(mp, libvlc_marquee_Enable, 1);
libvlc_video_set_marquee_string(mp, libvlc_marquee_Text, "SOME_OTHER_TEXT);

After the execution of the last two commands, I recieve the correct text (SOME_OTHER_TEXT) via libvlc_video_get_marquee_string(mp, libvlc_marquee_Text)). However, this could not be reflected in the
screen of my player.

I am using VLC 2.2.1 and tried in both Ubuntu 14.04 and Windows 8. If you require any further information, please let me know. Thanks.

tuff

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

Re: Changing the value of libvlc_marquee_Text asynchronously

Postby RSATom » 08 Jun 2015 10:32

1) try disable marque before new text, set text and then enable it again.
2) what GUI framework do you use?

tuff
New Cone
New Cone
Posts: 6
Joined: 08 Jun 2015 09:26

Re: Changing the value of libvlc_marquee_Text asynchronously

Postby tuff » 08 Jun 2015 12:16

1) Tried what you suggested but it did not work.
2) I am using xw widgets.

thank you for your response by the way.

tuff

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

Re: Changing the value of libvlc_marquee_Text asynchronously

Postby RSATom » 08 Jun 2015 12:21

then what if set text->disable->enable? If I remember correctly I got it working, just not remember how exactly.

tuff
New Cone
New Cone
Posts: 6
Joined: 08 Jun 2015 09:26

Re: Changing the value of libvlc_marquee_Text asynchronously

Postby tuff » 08 Jun 2015 12:26

I tried all six combinations, but did not help. One could not simply change the text with vlc marquees :)

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

Re: Changing the value of libvlc_marquee_Text asynchronously

Postby RSATom » 08 Jun 2015 12:28

then sorry, don't know how to help you :(

But if you will agree to use Qt...


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 6 guests