Class StageStream

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

@RequiresApi(api=28) public abstract class StageStream extends Object
A media stream that contains a single Device and a single type of media data (audio or video).
  • Method Details

    • setListener

      public void setListener(StageStream.Listener listener)
    • getStreamType

      public StageStream.Type getStreamType()
    • getDevice

      public Device getDevice()
    • requestRTCStats

      public void requestRTCStats()
      request RTC statistics about this StageStream, if is is not being published or subscribed, it is a no-op
    • requestQualityStats

      public void requestQualityStats()
      request quality statistics about this StageStream
    • getMuted

      public boolean getMuted()
    • getPreview

      public ImagePreviewView getPreview()
      Create a preview for this stream, only works when Type = Video Please use getPreviewSurfaceView() if you can, it has better performance
      Returns:
      A new preview for this image stream
    • getPreviewSurfaceView

      public abstract ImagePreviewSurfaceView getPreviewSurfaceView()
      Create a preview for this stream, only works when Type = Video
      Returns:
      A new preview for this image stream
    • getPreviewTextureView

      public abstract ImagePreviewView getPreviewTextureView()
      Create a preview for this stream, only works when Type = Video Please use getPreviewSurfaceView() if you can, it has better performance
      Returns:
      A new preview for this image stream
    • getPreviewSurfaceTarget

      public abstract ImagePreviewSurfaceTarget getPreviewSurfaceTarget()
      Create a preview for this stream, only works when Type = Video
      Returns:
      A new preview for this image stream, don't forget to call ImagePreviewSurfaceTarget.release() when done.