getAspectRatioAsFlow

fun Player.getAspectRatioAsFlow(defaultAspectRatio: Float): Flow<Float>

Collects the aspect ratio of the current video as a Flow.

Return

A Flow emitting the aspect ratio.

Parameters

defaultAspectRatio

The default aspect ration when the video size is unknown, or the content is not a video.