Class RendererCommon.VideoLayoutMeasure

java.lang.Object
com.telnyx.webrtc.lib.RendererCommon.VideoLayoutMeasure
Enclosing class:
RendererCommon

public static class RendererCommon.VideoLayoutMeasure extends Object
Helper class for determining layout size based on layout requirements, scaling type, and video aspect ratio.
  • Constructor Details

    • VideoLayoutMeasure

      public VideoLayoutMeasure()
  • Method Details

    • setScalingType

      public void setScalingType(RendererCommon.ScalingType scalingType)
    • setScalingType

      public void setScalingType(RendererCommon.ScalingType scalingTypeMatchOrientation, RendererCommon.ScalingType scalingTypeMismatchOrientation)
    • setVisibleFraction

      public void setVisibleFraction(float visibleFractionMatchOrientation, float visibleFractionMismatchOrientation)
    • measure

      public Point measure(int widthSpec, int heightSpec, int frameWidth, int frameHeight)