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 TypeMethodDescriptionbooleanintReturns the maximum bitrate for the layer.intReturns the minimum bitrate for the publishing video stream.Returns the current priority.getSize()Returns the resolution of the layer.floatReturns the target framerate of the layer.inthashCode()voidsetMaxBitrate(int maxBitrate) Set the maximum bitrate for the layer.voidsetMinBitrate(int minBitrate) Set the minimum bitrate for the layer.voidsetPriority(StageVideoConfiguration.Priority priority) Set the priority of the layer.voidsetSize(int width, int height) voidSet the resolution of the layer.voidsetTargetFramerate(float targetFramerate) Set 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) Set 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) Set 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) Set 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
Set 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
-
getPriority
Returns the current priority. By default this is Priority.LOW. -
setPriority
Set the priority of the layer.- Parameters:
priority- the desired priority
-
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)
-