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