Package com.amazonaws.ivs.broadcast
Class RemoteStageStream
java.lang.Object
com.amazonaws.ivs.broadcast.StageStream
com.amazonaws.ivs.broadcast.RemoteStageStream
- Direct Known Subclasses:
AudioStageStream,ImageStageStream
This class represents either remote audio stream or remote video stream, and it is used
in
Stage.Strategy to guide SDK what layer to subscribe.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA remote stage stream layer.static classConstraints on remote stage stream layer.static enumThe reasons for a layer changing.static interfaceRemoteStageStream delegate interface to receive callbacks when layers has changedNested classes/interfaces inherited from class com.amazonaws.ivs.broadcast.StageStream
StageStream.Type -
Method Summary
Modifier and TypeMethodDescriptiongetFirstLayerWithConstraintsOr(RemoteStageStream.LayerConstraints constraints, RemoteStageStream.Layer defaultValue) Return the first available layer which match the constraints given.Return the layer with the largest combined surface area (width x height).Return the list of layers.Return the list of available layers which match the constraints given.Return the layer with the smallest combined surface area (width x height).Return the most recently selected layer.booleanReturn if dynamic simulcast adaption is enabled.voidsetListener(RemoteStageStream.Listener listener) Set the callback to receive layers.Methods inherited from class com.amazonaws.ivs.broadcast.StageStream
getDevice, getMuted, getPreview, getPreviewSurfaceTarget, getPreviewSurfaceView, getPreviewTextureView, getStreamType, requestQualityStats, requestRTCStats, setListener
-
Method Details
-
setListener
Set the callback to receive layers. Must be called on main thread.- Parameters:
listener- aRemoteStageStream.Listenerobject
-
getLayers
Return the list of layers. Must be called on main thread.- Returns:
- The list of layers.
-
getSelectedLayer
Return the most recently selected layer. Must be called on main thread.- Returns:
- The most recently selected layer.
-
getLayersWithConstraints
public List<RemoteStageStream.Layer> getLayersWithConstraints(RemoteStageStream.LayerConstraints constraints) Return the list of available layers which match the constraints given. Must be called on main thread.- Parameters:
constraints- The layer constraints.- Returns:
- The list of layers.
-
getFirstLayerWithConstraintsOr
public RemoteStageStream.Layer getFirstLayerWithConstraintsOr(RemoteStageStream.LayerConstraints constraints, RemoteStageStream.Layer defaultValue) Return the first available layer which match the constraints given. Must be called on main thread.- Parameters:
constraints- The layer constraints.- Returns:
- The layer.
-
getHighestQualityLayer
Return the layer with the largest combined surface area (width x height). Must be called on main thread.- Returns:
- The layer.
-
getLowestQualityLayer
Return the layer with the smallest combined surface area (width x height). Must be called on main thread.- Returns:
- The layer.
-
isAdapting
public boolean isAdapting()Return if dynamic simulcast adaption is enabled. Must be called on main thread.- Returns:
- if dynamic simulcast adaption is enabled.
-