python-vlc icon indicating copy to clipboard operation
python-vlc copied to clipboard

vlc captures entire taskbar thumbnail and wont let other widget present in window to show.

Open Raj-Kumar-Mishra opened this issue 5 years ago • 5 comments

I am embedding python vlc in pyqt5 to make a video player.I never noticed whats going on taskbar,suddenly i came to know that when video starts to play it takes entire taskbar thumbnail to show only its video not other items present in the window screen.And after closing the video the taskbar becomes totally blank white, not showing anything.Is there any method to in the python-vlc to restore it normal. i have posted my every details with images for better understanding.in the stackoverflow here.But wont get any desired answer.Please check.

Raj-Kumar-Mishra avatar Nov 30 '20 15:11 Raj-Kumar-Mishra

This is almost certainly a PyQt5 or Qt (or Windows) issue. Neither python-vlc nor libVLC tinker with windows, banners or any other UI widgets. The vlc.player is passed a handle to the window to supply the contents, that is all. Any window decorations, buttons, menus, etc. are created outside and without involvement of python-vlc and libVLC.

Take a closer look at the pyqt5vlc.py example and/or try to run that in your particular environment. If that does not help, check the PyQt5 or Qt sites and ask there how to set up the various UI components you need.

mrJean1 avatar Nov 30 '20 17:11 mrJean1

No,this is a vlc issue,cause vlc set forcely only its video rendering area into taskbar.by using windows API "SetThumbNailClip" which is used to set a particular area of application into taskbar. Screenshot (12)

I raised and solved this issue at stackoverflow. Please look at the link https://stackoverflow.com/questions/65146103/how-to-select-a-particlular-portion-of-a-windows-client-area-to-display-in-wind

Raj-Kumar-Mishra avatar Mar 28 '21 13:03 Raj-Kumar-Mishra

I experience the exact same behavior using LibVlc.WPF. LibVlc produces the same log entry:

direct3d11 Error: SetThumbNailClip failed: 0x800706f4

AppyxDaniel avatar Jul 17 '24 13:07 AppyxDaniel

If the link above doesn't work, this one does.

mrJean1 avatar Jul 17 '24 14:07 mrJean1

I was able to reset the clip region of the thumbnail using the same Win32 API as LibVLC does: https://learn.microsoft.com/en-us/windows/win32/api/shobjidl_core/nf-shobjidl_core-itaskbarlist3-setthumbnailclip

For anyone interested where the thumbnail clipping happens: https://github.com/videolan/vlc/blob/3.0.x/modules/video_output/win32/common.c See method CommonChangeThumbnailClip

AppyxDaniel avatar Jul 18 '24 14:07 AppyxDaniel