pictureInPictureParams

fun pictureInPictureParams(autoEnterWhilePlaying: Boolean = true): PictureInPictureParams

Parameters for Activity.enterPictureInPictureMode: the video's own aspect, turned with its rotation and clamped to what the OS accepts, this view's video area as the source rectangle so the transition starts from the picture, and on API 31 and later auto-enter armed while the player is playing when autoEnterWhilePlaying is set. The activity owns the transition and the manifest; rebuild these whenever the picture or the play state changes, because the OS reads auto-enter from the parameters once rather than watching anything.