Page 1 of 1

Disable autohiding of controls when play().

Posted: 11 Oct 2014 12:43
by vvvvlllllccccc
I added VLC control on my Windows Form (C#). At the beginning the controls a visible. I even have set CtlVisible to true.

Now when I call playlist.play(), the controls are automatically hidden until I put the mouse over it. How can I disable this? I want the control to be visible all the time.

Re: Disable autohiding of controls when play().

Posted: 11 Oct 2014 12:58
by RSATom
You have to rebuild Vlc ActiveX with commented

Code: Select all

ShowWindow( hWnd(), SW_HIDE );
at http://git.videolan.org/?p=npapi-vlc.gi ... =HEAD#l470

it's not absolutely right solution, but it should work.

Re: Disable autohiding of controls when play().

Posted: 11 Oct 2014 13:00
by RSATom
Just curious, why nobody like to use libvlc with C# directly... it will be much more powerful and flexible solution...

Re: Disable autohiding of controls when play().

Posted: 11 Oct 2014 13:09
by vvvvlllllccccc
Thank you for the answer. So basically either I have to rebuild the control or use libvlc?
The first option is obviously too cumbersome.
And for the second option and your remark... perhaps because people are familiar with dealing with visible ActiveX controls like the old Windows Media Player control. When I searched Google for "C# VLC" the top StackOverflow page said I could use axvlc. If I use the libvlc, probably I have to create the controls myself?

Re: Disable autohiding of controls when play().

Posted: 11 Oct 2014 13:19
by RSATom
Thank you for the answer. So basically either I have to rebuild the control or use libvlc?
Yep, or create patch for adding "no-hide-controls" option and try to send it to Videolan team for review (or pay somebody who can do it).
And for the second option and your remark... perhaps because people are familiar with dealing with visible ActiveX controls like the old Windows Media Player control. When I searched Google for "C# VLC" the top StackOverflow page said I could use axvlc.
Yep, it's the easiest solution with many many drawbacks...
If I use the libvlc, probably I have to create the controls myself?
Yep, but then you could use standart WPF/WinForm controls, and do any toolbar with any content with ease.

In ActiveX I had to use only Win32 API... (And yes, that ugly controls is my work...)