Package com.amazonaws.ivs.broadcast
Class AudioLocalStageStream
- java.lang.Object
-
- com.amazonaws.ivs.broadcast.StageStream
-
- com.amazonaws.ivs.broadcast.LocalStageStream
-
- com.amazonaws.ivs.broadcast.AudioLocalStageStream
-
@RequiresApi(api=29) public class AudioLocalStageStream extends LocalStageStream
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.amazonaws.ivs.broadcast.StageStream
StageStream.Listener, StageStream.Type
-
-
Constructor Summary
Constructors Constructor Description AudioLocalStageStream(Device device)
Note: Since VOICE_COMMUNICATION audio mode is used, audio may be routed from a different audio device than the oneAudioLocalStageStream
was created with.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImagePreviewView
getPreview()
void
setMuted(boolean muted)
setMuted mutes current LocalStageStream.void
setStatsCallback(AudioDevice.StatsCallback callback)
-
Methods inherited from class com.amazonaws.ivs.broadcast.LocalStageStream
getVideoConfiguration, setVideoConfiguration
-
Methods inherited from class com.amazonaws.ivs.broadcast.StageStream
getDevice, getMuted, getStreamType, requestRTCStats, setListener
-
-
-
-
Constructor Detail
-
AudioLocalStageStream
public AudioLocalStageStream(@NonNull Device device)
Note: Since VOICE_COMMUNICATION audio mode is used, audio may be routed from a different audio device than the oneAudioLocalStageStream
was created with. Based on device vendor audio policy.
-
-
Method Detail
-
getPreview
public ImagePreviewView getPreview()
- Specified by:
getPreview
in classStageStream
-
setStatsCallback
public void setStatsCallback(AudioDevice.StatsCallback callback)
-
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
-
-