https://bugs.kde.org/show_bug.cgi?id=481222

--- Comment #43 from Zk Wang <[email protected]> ---
For those who still face difficulties with effective screen mirroring in KDE
under Wayland when giving public presentations, I have written a simple Python
script to temporarily address the screen mirroring needs. 

This script utilizes the screen capture API provided by xdg-desktop-portal to
capture the video stream of the built-in display and then displays the captured
screen content in a separate window. This allows us to move the window to the
screen of the projector, then maximize the window to full the whole screen. As
a result, the window precisely shows the content from the built-in display,
maintains its aspect ratio, and ensures all content from the built-in screen is
fully displayed on the external projector screen!

Link to the script:
https://gist.github.com/wangzk/2c19b945507d80840adba7070e8d1362  

(The script relies on gstreamer, GTK4 and libadwaita. This script was developed
with the assistance of AI. Due to the lack of comprehensive documentation for
gstreamer-related APIs in Qt, the AI was unable to generate a fully correct
program directly. If anyone could help migrate this script to a KDE
environment, any assistance would be greatly appreciated!)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to