updateCaptureSource abstract method

Future<void> updateCaptureSource(
  1. int sourceId,
  2. ZegoScreenCaptureSourceType sourceType
)

Create the screen capture source

Available: since 3.1.0 Description: Update a screen capture source object based on the provided source ID and source type. Use cases: It is used when you need to record and share the screen or window. When to call: It can be called after the engine by createScreenCaptureSource has been initialized. Restrictions: Only available on Windows/macOS.

  • sourceId The specified screen ID or window ID.
  • sourceType The specified screen source type.

Implementation

Future<void> updateCaptureSource(
    int sourceId, ZegoScreenCaptureSourceType sourceType);