public class StreamConfig extends Object
StreamConfig
is used in StreamManager.prepare(io.straas.android.sdk.streaming.StreamConfig, android.view.TextureView)
. You should call
#setOutputSize
and #setCamera
to provide information for prepare operation.Modifier and Type | Class and Description |
---|---|
static class |
StreamConfig.Builder |
static interface |
StreamConfig.CAMERA_TYPE
Camera types.
|
Modifier and Type | Field and Description |
---|---|
static int |
CAMERA_BACK
Indicates the camera in the back side.
|
static int |
CAMERA_FRONT
Indicates the camera in the front side.
|
Modifier and Type | Method and Description |
---|---|
int |
getCamera()
Gets default camera type.
|
boolean |
getFitAllCamera()
Gets if the final resolution should fit all cameras in current device.
|
int |
getFps()
Gets the video frame rate in format frames/sec.
|
boolean |
getFrontCameraFlipHorizontally()
Gets if the stream of front camera should be flipped horizontally from preview.
|
Integer |
getMaxBitrate()
Gets the maximum video bitrate in bits/sec.
|
int |
getMaxVideoHeight()
Gets the max video height in pixel.
|
int |
getOutputHeight()
Gets output video height.
|
int |
getOutputWidth()
Gets output video width.
|
public static final int CAMERA_FRONT
public static final int CAMERA_BACK
public int getOutputWidth()
StreamConfig.Builder.videoResolution(int, int)
public int getOutputHeight()
StreamConfig.Builder.videoResolution(int, int)
public int getCamera()
StreamConfig.CAMERA_TYPE
.StreamConfig.Builder.camera(int)
public int getMaxVideoHeight()
StreamConfig.Builder.maxVideoHeight(int)
public boolean getFitAllCamera()
StreamConfig.Builder.fitAllCamera(boolean)
public boolean getFrontCameraFlipHorizontally()
StreamConfig.Builder.frontCameraFlipHorizontally(boolean)
public int getFps()
public Integer getMaxBitrate()