Skip to content

Conversation

@kNoAPP
Copy link
Contributor

@kNoAPP kNoAPP commented Oct 2, 2025

This PR fixes an issue where iOS Safari video box renders would exceed the boundaries set by the RTCVideoViewObjectFit.RTCVideoViewObjectFitContain and RTCVideoViewObjectFit.RTCVideoViewObjectFitCover guidelines.

In the following examples (iOS Safari), I have specified the following:

rtc.RTCVideoView(
  _renderer! as rtc.RTCVideoRenderer,
  mirror: true,
  filterQuality: FilterQuality.medium,
  objectFit: RTCVideoViewObjectFit.RTCVideoViewObjectFitCover,
);

Before this PR
IMG_0061 Medium
IMG_0062 Medium

After this PR
IMG_0059 Medium
IMG_0060 Medium

@cloudwebrtc cloudwebrtc merged commit f358f76 into flutter-webrtc:main Oct 3, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants