Page 1 of 1
Name the Slider Widget Code (Pretty Please)
Posted: 07 Feb 2012 21:54
by lordawe
Could someone please point me towards the source code/module (Win7 - VLC 1.1.3) that reacts to the video's slider/scrollbar in VLC.exe and communicates with (positions with ->SetPos()/SetTime() etc.) the VLC media player object?
Please note that I am not concerned with the specific widget code for a particular OS, but with the underlying "libvlc_media_player_t" methods/callbacks etc that are used when responding to the movement of the thumb slider. I thought it would be easy to find but I keep getting lost in the VLC encapsulation.
TIA.
Re: Name the Slider Widget Code (Pretty Please)
Posted: 08 Feb 2012 09:30
by Jean-Baptiste Kempf
modules/gui/qt4/util/input_slider.cpp
Re: Name the Slider Widget Code (Pretty Please)
Posted: 08 Feb 2012 19:12
by lordawe
Jean,
I have looked through both input_slider.cpp and input_slider.hpp and can not find a single instance of any libvlc_media_player_t methods. As in my original post, I am not looking for the code that controls the widgets (Im not modifying/recompiling VLC, I am just using the libvlc.dll with MFC) - I am interested in the media player methods that are called when an event occurs in VLC so I could examine/emulate some of the player's behavior.
I found vlccontrol.cpp in the projects/activex folder which is more like I am looking for. Is there such a source file for the VLC player?
I know these questions are a lack of my understanding of the vlc codebase and the overall program flow logic, and appreciate the help. I have searched for a software design document (SSD) for VLC but could not find one either on this site or through several third party blogs. This would be an awesome resource for one of the VLC gurus to put together and would probably save you a bunch of time answering stupid questions from people like me.
Re: Name the Slider Widget Code (Pretty Please)
Posted: 08 Feb 2012 19:18
by Jean-Baptiste Kempf
The main player does not use libVLC...
Re: Name the Slider Widget Code (Pretty Please)
Posted: 14 Feb 2012 21:17
by lordawe
That explains a whole lot! Thanks Jean.