oaubert / python-vlc

Python vlc bindings
GNU Lesser General Public License v2.1
382 stars 108 forks source link

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

Open Raj-Kumar-Mishra opened 3 years ago

Raj-Kumar-Mishra commented 3 years ago

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.

mrJean1 commented 3 years ago

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.

Raj-Kumar-Mishra commented 3 years ago

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

AppyxDaniel commented 1 month ago

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

direct3d11 Error: SetThumbNailClip failed: 0x800706f4

mrJean1 commented 1 month ago

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

AppyxDaniel commented 1 month ago

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