Disable autohiding of controls when play().

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
vvvvlllllccccc
Blank Cone
Blank Cone
Posts: 11
Joined: 11 Oct 2014 12:40

Disable autohiding of controls when play().

Postby vvvvlllllccccc » 11 Oct 2014 12:43

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.

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

Re: Disable autohiding of controls when play().

Postby RSATom » 11 Oct 2014 12:58

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.

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

Re: Disable autohiding of controls when play().

Postby RSATom » 11 Oct 2014 13:00

Just curious, why nobody like to use libvlc with C# directly... it will be much more powerful and flexible solution...

vvvvlllllccccc
Blank Cone
Blank Cone
Posts: 11
Joined: 11 Oct 2014 12:40

Re: Disable autohiding of controls when play().

Postby vvvvlllllccccc » 11 Oct 2014 13:09

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?

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

Re: Disable autohiding of controls when play().

Postby RSATom » 11 Oct 2014 13:19

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...)


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 21 guests