Skip to content

Commit

Permalink
Set scaling type in the update lambda of AndroidView (#1221)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandar-apostolov authored Nov 13, 2024
1 parent 1d3884c commit 738a7eb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ public fun VideoRenderer(
},
update = { v ->
v.setMirror(videoRendererConfig.mirrorStream)
v.setScalingType(
videoRendererConfig.scalingType.toCommonScalingType(),
)
setupVideo(mediaTrack, v)
},
modifier = Modifier
Expand Down

0 comments on commit 738a7eb

Please sign in to comment.