Granted that this patch might not fit for main branch, I hope this snippet could help someone in need.
Screen cast feature shipped with macOS does support screen recording, but only for whole screen or selected rectangle, not for a selected window like photo capture feature. And pixels are not sourced from qemu display frame buffer. This means the screencast would be scaled by contentsScale (for retina screen) and window titlebar would be included. Best Regards > 2022年1月11日 下午4:31,Peter Maydell <peter.mayd...@linaro.org> 写道: > > On Tue, 11 Jan 2022 at 07:09, Zhang Chen <tgfb...@me.com> wrote: >> >> To record screencast, AVAssetWriter APIs were called for each >> cocoa_update call. >> >> Commands for start/stop recording were added to View menu. > > This seems a bit of an odd feature -- why doesn't the OS just > permit screen recording of any application without the app > having to have code for it specifically ? > > -- PMM