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
@RequiresApi(api=29) public abstract class LocalStageStream extends StageStream
This class represents either local audio stream or local video stream, and it is used inStage.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
Constructors Constructor Description LocalStageStream(Device device, StageVideoConfiguration videoConfiguration, StageStream.Type type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StageVideoConfiguration
getVideoConfiguration()
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, getStreamType, requestRTCStats, setListener
-
-
-
-
Constructor Detail
-
LocalStageStream
public LocalStageStream(@NonNull Device device, @Nullable StageVideoConfiguration videoConfiguration, StageStream.Type type)
-
-
Method Detail
-
setVideoConfiguration
public void setVideoConfiguration(@Nullable StageVideoConfiguration videoConfiguration)
-
getVideoConfiguration
@NonNull public StageVideoConfiguration getVideoConfiguration()
-
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
-
-