Andrew Watson
10/25/2024, 8:34 PMCATransaction.begin()
CATransaction.setValue(true, kCATransactionDisableActions)
view.layer.setFrame(rect)
avPlayerViewController.view.layer.frame = rect
CATransaction.commit()
to set the size of the player but now that doesn't appear to workPer Jaakonantti
11/20/2024, 8:52 AMPer Jaakonantti
11/20/2024, 10:34 AMUIKitView(
modifier = modifier,
factory = {
avPlayerViewController.player = player
avPlayerViewController.videoGravity = AVLayerVideoGravityResizeAspectFill
avPlayerViewController.showsPlaybackControls = false
val playerContainer = UIView()
playerContainer.apply {
addSubview(avPlayerViewController.view)
}
playerContainer
},
update = { view ->
avPlayerViewController.view.layer.frame = view.bounds
},
)
Krille-Alster
11/20/2024, 11:44 AMpatrickdelconte
11/20/2024, 1:57 PM