Package com.amazonaws.ivs.broadcast
Class LocalStageStream
java.lang.Object
com.amazonaws.ivs.broadcast.StageStream
com.amazonaws.ivs.broadcast.LocalStageStream
- Direct Known Subclasses:
AudioLocalStageStream
,ImageLocalStageStream
This class represents either local audio stream or local video stream, and it is used
in
Stage.Strategy
to guide SDK what stream to publish-
Nested Class Summary
Nested classes/interfaces inherited from class com.amazonaws.ivs.broadcast.StageStream
StageStream.Listener, StageStream.Type
-
Constructor Summary
ConstructorDescriptionLocalStageStream
(Device device, StageVideoConfiguration videoConfiguration, StageAudioConfiguration audioConfiguration, StageStream.Type type) LocalStageStream
(Device device, StageVideoConfiguration videoConfiguration, StageStream.Type type) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setAudioConfiguration
(StageAudioConfiguration audioConfiguration) abstract void
setMuted
(boolean muted) setMuted mutes current LocalStageStream.void
setVideoConfiguration
(StageVideoConfiguration videoConfiguration) Methods inherited from class com.amazonaws.ivs.broadcast.StageStream
getDevice, getMuted, getPreview, getPreviewSurfaceTarget, getPreviewSurfaceView, getPreviewTextureView, getStreamType, requestQualityStats, requestRTCStats, setListener
-
Constructor Details
-
LocalStageStream
public LocalStageStream(@NonNull Device device, @Nullable StageVideoConfiguration videoConfiguration, StageStream.Type type) -
LocalStageStream
public LocalStageStream(@NonNull Device device, @Nullable StageVideoConfiguration videoConfiguration, @Nullable StageAudioConfiguration audioConfiguration, StageStream.Type type)
-
-
Method Details
-
setVideoConfiguration
-
getVideoConfiguration
-
setAudioConfiguration
-
getAudioConfiguration
-
setMuted
public abstract void setMuted(boolean muted) setMuted mutes current LocalStageStream.- Parameters:
muted
- Mute the stream if it is true, and unmute the stream if it is false
-