Package com.amazonaws.ivs.broadcast
Class ImageLocalStageStream
java.lang.Object
com.amazonaws.ivs.broadcast.StageStream
com.amazonaws.ivs.broadcast.LocalStageStream
com.amazonaws.ivs.broadcast.ImageLocalStageStream
-
Nested Class Summary
Nested classes/interfaces inherited from class com.amazonaws.ivs.broadcast.StageStream
StageStream.Listener, StageStream.Type
-
Constructor Summary
ConstructorDescriptionImageLocalStageStream
(Device device) ImageLocalStageStream
(Device device, StageVideoConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionCreate a preview for this stream, only works when Type = VideoCreate a preview for this stream, only works when Type = VideoCreate a preview for this stream, only works when Type = Video Please useStageStream.getPreviewSurfaceView()
if you can, it has better performancevoid
setMuted
(boolean muted) setMuted mutes current LocalStageStream.void
setVideoConfiguration
(StageVideoConfiguration videoConfiguration) Methods inherited from class com.amazonaws.ivs.broadcast.LocalStageStream
getAudioConfiguration, getVideoConfiguration, setAudioConfiguration
Methods inherited from class com.amazonaws.ivs.broadcast.StageStream
getDevice, getMuted, getPreview, getStreamType, requestQualityStats, requestRTCStats, setListener
-
Constructor Details
-
ImageLocalStageStream
public ImageLocalStageStream(@NonNull Device device, @Nullable StageVideoConfiguration configuration) -
ImageLocalStageStream
-
-
Method Details
-
setVideoConfiguration
- Overrides:
setVideoConfiguration
in classLocalStageStream
-
getPreviewSurfaceView
Description copied from class:StageStream
Create a preview for this stream, only works when Type = Video- Specified by:
getPreviewSurfaceView
in classStageStream
- Returns:
- A new preview for this image stream
-
getPreviewTextureView
Description copied from class:StageStream
Create a preview for this stream, only works when Type = Video Please useStageStream.getPreviewSurfaceView()
if you can, it has better performance- Specified by:
getPreviewTextureView
in classStageStream
- Returns:
- A new preview for this image stream
-
getPreviewSurfaceTarget
Description copied from class:StageStream
Create a preview for this stream, only works when Type = Video- Specified by:
getPreviewSurfaceTarget
in classStageStream
- Returns:
- A new preview for this image stream, don't forget to
call
ImagePreviewSurfaceTarget.release()
when done.
-
setMuted
public void setMuted(boolean muted) Description copied from class:LocalStageStream
setMuted mutes current LocalStageStream.- Specified by:
setMuted
in classLocalStageStream
- Parameters:
muted
- Mute the stream if it is true, and unmute the stream if it is false
-