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=28) 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, StageAudioConfiguration audioConfiguration, StageStream.Type type)
LocalStageStream(Device device, StageVideoConfiguration videoConfiguration, StageStream.Type type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StageAudioConfiguration
getAudioConfiguration()
StageVideoConfiguration
getVideoConfiguration()
void
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 Detail
-
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 Detail
-
setVideoConfiguration
public void setVideoConfiguration(@Nullable StageVideoConfiguration videoConfiguration)
-
getVideoConfiguration
@NonNull public StageVideoConfiguration getVideoConfiguration()
-
setAudioConfiguration
public void setAudioConfiguration(@Nullable StageAudioConfiguration audioConfiguration)
-
getAudioConfiguration
@NonNull public StageAudioConfiguration 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
-
-