Skip to content

[macOS,Windows] Screen sharing takes too long to generate a thumbnail, causing UI blocking. #1042

@cloudwebrtc

Description

@cloudwebrtc

When getting the enumerated window/screen source, the synchronous mode is used when getting the thumbnail, causing the first call to getSources to block for a long time when there are 10 or more windows

Solutions:

  1. When enumerating sources for the first time, only id, title, and type are returned.
    A blank image placeholder is displayed on the UI
  2. Create an asynchronous thread to intercept thumbnails, compress thumbnails,
    Emit desktopSourceThumbnailChanged to update to the latest thumbnail

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions