getScreenCaptureSources method

Future<List<ZegoScreenCaptureSourceInfo>> getScreenCaptureSources(
  1. int thumbnailWidth,
  2. int thumbnailHeight,
  3. int iconWidth,
  4. int iconHeight
)

Get a list of screens or windows in a screen.

Available since: 3.1.0 Description: Get a list of screens or windows in a screen. Restrictions: Only support in Windows/macOS.

  • thumbnailWidth Get the thumbnail width corresponding to the window, the thumbnail can be used to draw on the window selection interface. (unit is pixel)
  • thumbnailHeight Get the thumbnail height corresponding to the window, the thumbnail can be used to draw on the window selection interface. (unit is pixel)
  • iconWidth Get the width of the icon corresponding to the program. (unit is pixel)
  • iconHeight Get the height of the icon corresponding to the program. (unit is pixel)
  • Returns List of capture source info objects.

Implementation

Future<List<ZegoScreenCaptureSourceInfo>> getScreenCaptureSources(
    int thumbnailWidth,
    int thumbnailHeight,
    int iconWidth,
    int iconHeight) async {
  return await ZegoExpressImpl.instance.getScreenCaptureSources(
      thumbnailWidth, thumbnailHeight, iconWidth, iconHeight);
}