toRational

fun VideoSize.toRational(): Rational

Converts this VideoSize to a Rational representation, which is particularly useful for scenarios like picture-in-picture.

Return

A Rational representing the aspect ratio of the VideoSize.