diff --git a/libraries/transformer/src/main/java/androidx/media3/transformer/TransformationRequest.java b/libraries/transformer/src/main/java/androidx/media3/transformer/TransformationRequest.java index a1c82595c2..6d7c7a9026 100644 --- a/libraries/transformer/src/main/java/androidx/media3/transformer/TransformationRequest.java +++ b/libraries/transformer/src/main/java/androidx/media3/transformer/TransformationRequest.java @@ -215,7 +215,7 @@ public final class TransformationRequest { } /** - * Sets the output resolution using the output height. + * Sets the output resolution using the output height of the displayed video. * *
Output width of the displayed video will scale to preserve the video's aspect ratio after * other transformations. @@ -226,6 +226,10 @@ public final class TransformationRequest { * {@linkplain #setScale(float,float) scaling} or @linkplain #setRotationDegrees(float) * rotation} are requested. * + *
Note that the output encoded video's dimensions may be swapped from the displayed video's + * dimensions, if the displayed video's height > width. This is to improve compatibility among + * different device encoders. + * * @param outputHeight The output height of the displayed video, in pixels. * @return This builder. */