onFrameResolutionChanged method

  1. @override
void onFrameResolutionChanged(
  1. String uid,
  2. int width,
  3. int height,
  4. int rotation,
)
override

Implementation

@override
void onFrameResolutionChanged(
    String uid, int width, int height, int rotation) {
  Alog.i(
    tag: _tag,
    moduleName: _moduleName,
    content:
        'onFrameResolutionChanged uid=$uid width=$width height=$height rotation=$rotation',
  );
  if (uid == getScreenShareUserId() &&
      _screenShareController != null &&
      (_screenShareWidth != width || _screenShareHeight != height)) {
    _screenShareWidth = width;
    _screenShareHeight = height;
    _screenShareController!.value = Matrix4.identity();
  }
}