Package com.amazonaws.ivs.broadcast
Interface Stage.StrategyV2
- All Superinterfaces:
Stage.BaseStrategy
- Enclosing class:
Stage
A strategy that names the desired subscription as a set of media types.
Implement this instead of Stage.Strategy to subscribe to subtitles, or to any combination the
Stage.SubscribeType enum cannot express, such as video without audio.
-
Method Summary
Modifier and TypeMethodDescriptionshouldSubscribeToParticipantTypes(Stage stage, ParticipantInfo participantInfo) Return the media types desired from the associated participant.Methods inherited from interface com.amazonaws.ivs.broadcast.Stage.BaseStrategy
preferredLayerForStream, shouldPublishFromParticipant, stageStreamsToPublishForParticipant, subscribeConfigrationForParticipant
-
Method Details
-
shouldSubscribeToParticipantTypes
@NonNull Set<Stage.SubscribeMediaType> shouldSubscribeToParticipantTypes(@NonNull Stage stage, @NonNull ParticipantInfo participantInfo) Return the media types desired from the associated participant. An empty set subscribes to nothing.- Parameters:
stage- TheStageassociated with the participant.participantInfo- TheParticipantInfoin question.- Returns:
- The desired
Stage.SubscribeMediaTypevalues for the associated participant.
-