public static class

BroadcastConfiguration.Video

extends Object
java.lang.Object
   ↳ com.amazonaws.ivs.broadcast.BroadcastConfiguration.Video

Summary

Public Methods
int getInitialBitrate()
float getKeyframeInterval()
int getMaxBitrate()
int getMinBitrate()
BroadcastConfiguration.Vec2 getSize()
int getTargetFramerate()
boolean isUseAutoBitrate()
boolean isUseBFrames()
void setInitialBitrate(int initialBitrate)
Sets the initial bitrate for the video stream.
void setKeyframeInterval(float keyframeInterval)
Sets the keyframe interval for the video stream.
void setMaxBitrate(int maxBitrate)
Sets the maximum bitrate for the video stream.
void setMinBitrate(int minBitrate)
Sets the minimum bitrate for the video stream.
void setSize(int width, int height)
Sets the frame image size for the video stream.
void setSize(BroadcastConfiguration.Vec2 size)
void setTargetFramerate(int targetFramerate)
Sets the target framerate for the video stream.
void setUseAutoBitrate(boolean useAutoBitrate)
void setUseBFrames(boolean useBFrames)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public int getInitialBitrate ()

public float getKeyframeInterval ()

public int getMaxBitrate ()

public int getMinBitrate ()

public BroadcastConfiguration.Vec2 getSize ()

public int getTargetFramerate ()

public boolean isUseAutoBitrate ()

public boolean isUseBFrames ()

public void setInitialBitrate (int initialBitrate)

Sets the initial bitrate for the video stream. This must be between 100k and 8500k otherwise a IllegalArgumentException will be thrown.

Parameters
initialBitrate the desired initial bitrate

public void setKeyframeInterval (float keyframeInterval)

Sets the keyframe interval for the video stream. This must be between 1 and 10 otherwise a IllegalArgumentException will be thrown.

Parameters
keyframeInterval the desired initial bitrate

public void setMaxBitrate (int maxBitrate)

Sets the maximum bitrate for the video stream. This must be between 100,000 and 8,500,000 otherwise a IllegalArgumentException will be thrown.

Parameters
maxBitrate the desired initial bitrate

public void setMinBitrate (int minBitrate)

Sets the minimum bitrate for the video stream. This must be between 100k and 8500k otherwise a IllegalArgumentException will be thrown.

Parameters
minBitrate the desired initial bitrate

public void setSize (int width, int height)

Sets the frame image size for the video stream. The width and height must both be between 160 and 1920, and the maximum total number of pixels is 2,073,600. So the smallest size you can provide is 160x160, and the largest is either 1080x1920 or 1920x1080. However something like 1920x1200 would not be supported. 1280x180 however is supported. If this restrictions are violated a IllegalArgumentException will be thrown.

Parameters
width the desired width in pixels
height the desired height in pixels

public void setSize (BroadcastConfiguration.Vec2 size)

public void setTargetFramerate (int targetFramerate)

Sets the target framerate for the video stream. This must be between 10 and 60 otherwise a IllegalArgumentException will be thrown.

Parameters
targetFramerate the desired initial bitrate

public void setUseAutoBitrate (boolean useAutoBitrate)

public void setUseBFrames (boolean useBFrames)