updatePublishRegion abstract method

Future<void> updatePublishRegion(
  1. dynamic rect
)

Update the streaming area of ​​the screen capture.

Available since: 3.8.0 Description: Update the streaming area of ​​the screen capture. When to call: After updating the screen capture source updateScreenCaptureSource. Restrictions: Every time the screen capture source updateScreenCaptureSource is updated, the area will be cleared and needs to be reset, only support in Windows/macOS. Caution: The set area cannot exceed the size returned by onAvailableFrame, otherwise the setting will fail and the original frame will be pushed. The failure of the streaming area will be notified through onExceptionOccurred.

  • rect The position of the area to be pushed relative to the upper left corner of the capture screen, the actual capture screen size can be obtained through onAvailableFrame.

Implementation

Future<void> updatePublishRegion(Rect rect);