Skip to content
Merged
Prev Previous commit
Next Next commit
Add comment
  • Loading branch information
camsim99 committed Oct 17, 2024
commit da92163017fca1e5ff8f317d7b4d77d3c506d4c5
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ private int getRotationCorrectionFromUnappliedRotation(int unappliedRotationDegr
}

@OptIn(markerClass = androidx.media3.common.util.UnstableApi.class)
// The annotation is used to enable using a Format to determine the rotation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this comment should instead of explaining what an unstable api annotation does should instead explain why it is ok to use an unstable api and what the failure modes are that we can expect. (for example should we expect the signature to possibly change across minor versions).

// correction.
private int getRotationCorrectionFromFormat(ExoPlayer exoPlayer) {
Format videoFormat = Objects.requireNonNull(exoPlayer.getVideoFormat());
return videoFormat.rotationDegrees;
Expand Down