getAspectRatioAsState

Observe the aspect ratio of the current MediaItem as a State.

Return

A State that represents the current aspect ratio of the Player.

Parameters

defaultAspectRatio

The aspect ratio when the video size is unknown, or for audio content.