Package com.amazonaws.ivs.broadcast
Class StageStream
- java.lang.Object
-
- com.amazonaws.ivs.broadcast.StageStream
-
- Direct Known Subclasses:
AudioStageStream
,ImageStageStream
,LocalStageStream
@RequiresApi(api=28) public abstract class StageStream extends java.lang.Object
A media stream that contains a singleDevice
and a single type of media data (audio or video).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
StageStream.Listener
StageStream delegate interface to receive callbacks when RTCStats is ready after callingrequestRTCStats()
or StageStream is mutedstatic class
StageStream.Type
Media type of StageStream
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Device
getDevice()
boolean
getMuted()
ImagePreviewView
getPreview()
Create a preview for this stream, only works when Type = Video Please usegetPreviewSurfaceView()
if you can, it has better performanceabstract ImagePreviewSurfaceTarget
getPreviewSurfaceTarget()
Create a preview for this stream, only works when Type = Videoabstract ImagePreviewSurfaceView
getPreviewSurfaceView()
Create a preview for this stream, only works when Type = Videoabstract ImagePreviewView
getPreviewTextureView()
Create a preview for this stream, only works when Type = Video Please usegetPreviewSurfaceView()
if you can, it has better performanceStageStream.Type
getStreamType()
void
requestQualityStats()
request quality statistics about this StageStreamvoid
requestRTCStats()
request RTC statistics about this StageStream, if is is not being published or subscribed, it is a no-opvoid
setListener(StageStream.Listener listener)
-
-
-
Method Detail
-
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 usegetPreviewSurfaceView()
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 usegetPreviewSurfaceView()
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.
-
-