Class StageVideoConfiguration.Simulcast.Layer

java.lang.Object
com.amazonaws.ivs.broadcast.StageVideoConfiguration.Simulcast.Layer
Enclosing class:
StageVideoConfiguration.Simulcast

public static class StageVideoConfiguration.Simulcast.Layer extends Object
  • Constructor Details

    • Layer

      public Layer()
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getMaxBitrate

      public int getMaxBitrate()
      Returns:
      The maximum bitrate for the layer.
    • setMaxBitrate

      public void setMaxBitrate(int maxBitrate)
      Sets the maximum bitrate for the layer. This value must be between 50k and 2,500k. If the provided bitrate falls outside this range, the bitrate will not be set and an IllegalArgumentException will be thrown.
      Parameters:
      maxBitrate - the desired maximum bitrate
      Throws:
      IllegalArgumentException - if bitrate is not valid
    • getMinBitrate

      public int getMinBitrate()
      Returns:
      The minimum bitrate for the publishing video stream.
    • setMinBitrate

      public void setMinBitrate(int minBitrate)
      Sets the minimum bitrate for the layer. This value must be between 50k and 2,500k. If the provided bitrate falls outside this range, the bitrate will not be set and an IllegalArgumentException will be thrown.
      Parameters:
      minBitrate - the desired minimum bitrate
      Throws:
      IllegalArgumentException - if bitrate is not valid
    • getTargetFramerate

      public float getTargetFramerate()
      Returns:
      The target framerate of the layer.
    • setTargetFramerate

      public void setTargetFramerate(float targetFramerate)
      Sets the target framerate of the layer. The target framerate must be between 10 and 30. If the provided frame rate is outside of this range, the framerate will not be set and an IllegalArgumentException will be thrown.
      Parameters:
      targetFramerate - the desired target framerate
      Throws:
      IllegalArgumentException - if target framerate is not valid
    • getSize

      public BroadcastConfiguration.Vec2 getSize()
      Returns:
      The resolution of the layer.
    • setSize

      public void setSize(int width, int height)
    • setSize

      public void setSize(BroadcastConfiguration.Vec2 size)
      Sets the resolution of the layer. The width and height must both be within 160 and 1280, and the maximum total number of pixels is 921,600. So the smallest size you can provide is 160x160, and the largest is either 720x1280 or 1280x720. If the provided resolution does not meet this criteria, the resolution will not be set and an IllegalArgumentException will be thrown.
      Parameters:
      size - the desired resolution
      Throws:
      IllegalArgumentException - if resolution is not valid
    • changing

    • with