Compose Desktop Video No Swingpanel

Rendering video frames from a native media engine in Compose Desktop without embedding a heavyweight AWT panel — publish finished frames as immutable snapshots on a StateFlow and draw them with a plain Image, convert off the UI thread, match the engine's pixel byte order, and let the engine decide the fit. Reach for it when embedded video sits on top of everything regardless of z-order, lags a frame behind while scrolling, goes black on one screen the moment a second screen shows the player, comes out with red and blue swapped, or shows black bars that no content-scale can remove.

maxrave-dev b5023a9 8.2 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/compose-desktop-video-no-swingpanel commit b5023a9f21

Frequently asked questions

npx skillmds@latest add maxrave-dev/compose-desktop-video-no-swingpanel