Class RemoteStageStream

java.lang.Object
com.amazonaws.ivs.broadcast.StageStream
com.amazonaws.ivs.broadcast.RemoteStageStream
Direct Known Subclasses:
AudioStageStream, ImageStageStream

@RequiresApi(api=28) public abstract class RemoteStageStream extends StageStream
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
  • Method Details

    • setListener

      public void setListener(RemoteStageStream.Listener listener)
      Set the callback to receive layers
      Parameters:
      listener - a RemoteStageStream.Listener object
    • getLayers

      public List<RemoteStageStream.Layer> getLayers()
      Return the list of layers.
      Returns:
      The list of layers.
    • getSelectedLayer

      @Nullable public RemoteStageStream.Layer getSelectedLayer()
      Return the most recently selected layer.
      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.
      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.
      Parameters:
      constraints - The layer constraints.
      Returns:
      The layer.
    • getHighestQualityLayer

      public RemoteStageStream.Layer getHighestQualityLayer()
      Return the layer with the largest combined surface area (width x height).
      Returns:
      The layer.
    • getLowestQualityLayer

      public RemoteStageStream.Layer getLowestQualityLayer()
      Return the layer with the smallest combined surface area (width x height).
      Returns:
      The layer.
    • isAdapting

      public boolean isAdapting()
      Return if dynamic simulcast adaption is enabled.
      Returns:
      if dynamic simulcast adaption is enabled.