Package com.amazonaws.ivs.broadcast
Class StageStream
java.lang.Object
com.amazonaws.ivs.broadcast.StageStream
- Direct Known Subclasses:
LocalStageStream
,RemoteStageStream
A media stream that contains a single
Device
and a single type of media data (audio or video).-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
StageStream delegate interface to receive callbacks when RTCStats is ready after callingrequestRTCStats()
or StageStream is mutedstatic enum
Media type of StageStream -
Method Summary
Modifier and TypeMethodDescriptionboolean
getMuted()
Create a preview for this stream, only works when Type = Video Please usegetPreviewSurfaceView()
if you can, it has better performanceabstract ImagePreviewSurfaceTarget
Create a preview for this stream, only works when Type = Videoabstract ImagePreviewSurfaceView
Create a preview for this stream, only works when Type = Videoabstract ImagePreviewView
Create a preview for this stream, only works when Type = Video Please usegetPreviewSurfaceView()
if you can, it has better performancevoid
request quality statistics about this StageStreamvoid
request RTC statistics about this StageStream, if is is not being published or subscribed, it is a no-opvoid
setListener
(StageStream.Listener listener)
-
Method Details
-
setListener
-
getStreamType
-
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
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
Create a preview for this stream, only works when Type = Video- Returns:
- A new preview for this image stream
-
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
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.
-