Package com.amazonaws.ivs.broadcast
Class StageVideoConfiguration.Simulcast.Layer
java.lang.Object
com.amazonaws.ivs.broadcast.StageVideoConfiguration.Simulcast.Layer
- Enclosing class:
StageVideoConfiguration.Simulcast
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintintgetSize()floatinthashCode()voidsetMaxBitrate(int maxBitrate) Sets the maximum bitrate for the layer.voidsetMinBitrate(int minBitrate) Sets the minimum bitrate for the layer.voidsetSize(int width, int height) voidSets the resolution of the layer.voidsetTargetFramerate(float targetFramerate) Sets the target framerate of the layer.
-
Constructor Details
-
Layer
public Layer()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
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 anIllegalArgumentExceptionwill 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 anIllegalArgumentExceptionwill 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 anIllegalArgumentExceptionwill be thrown.- Parameters:
targetFramerate- the desired target framerate- Throws:
IllegalArgumentException- if target framerate is not valid
-
getSize
- Returns:
- The resolution of the layer.
-
setSize
public void setSize(int width, int height) -
setSize
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 anIllegalArgumentExceptionwill be thrown.- Parameters:
size- the desired resolution- Throws:
IllegalArgumentException- if resolution is not valid
-
changing
public StageVideoConfiguration.Simulcast.Layer changing(@NonNull Builder<StageVideoConfiguration.Simulcast.Layer> op) -
with
public static StageVideoConfiguration.Simulcast.Layer with(@NonNull Builder<StageVideoConfiguration.Simulcast.Layer> op)
-