Package com.amazonaws.ivs.broadcast
Class StageAudioManager
- java.lang.Object
-
- com.amazonaws.ivs.broadcast.StageAudioManager
-
@RequiresApi(api=28) public class StageAudioManager extends java.lang.ObjectManages audio settings for all stages.Note that the first time you use this class (either to create a StageAudioManager object or to access one of its static methods), you must ensure that you are not asynchronously accessing one of the following classes at the same time: Device, DeviceDiscovery, BroadcastSession or Stage. Otherwise there is a risk of deadlock due to loading the underlying native library.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStageAudioManager.ContentTypestatic classStageAudioManager.Sourcestatic classStageAudioManager.Usagestatic classStageAudioManager.UseCasePreset
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StageAudioManager.ContentTypegetContentType()static StageAudioManagergetInstance(android.content.Context context)Returns an instance of the StageAudioManager.StageAudioManager.SourcegetSource()StageAudioManager.UsagegetUsage()voidsetConfiguration(StageAudioManager.Source source, StageAudioManager.ContentType contentType, StageAudioManager.Usage usage)voidsetPreset(StageAudioManager.UseCasePreset preset)
-
-
-
Method Detail
-
setPreset
public void setPreset(@NonNull StageAudioManager.UseCasePreset preset) throws java.lang.IllegalStateException- Throws:
java.lang.IllegalStateException
-
setConfiguration
public void setConfiguration(@NonNull StageAudioManager.Source source, @NonNull StageAudioManager.ContentType contentType, @NonNull StageAudioManager.Usage usage) throws java.lang.IllegalStateException- Throws:
java.lang.IllegalStateException
-
getSource
@NonNull public StageAudioManager.Source getSource()
-
getContentType
@NonNull public StageAudioManager.ContentType getContentType()
-
getUsage
@NonNull public StageAudioManager.Usage getUsage()
-
getInstance
public static StageAudioManager getInstance(@NonNull android.content.Context context)
Returns an instance of the StageAudioManager.- Parameters:
context- The current application context- Returns:
- the instance of the StageAudioManager
-
-