Interface Stage.StrategyV2

All Superinterfaces:
Stage.BaseStrategy
Enclosing class:
Stage

@RequiresApi(api=28) public static interface Stage.StrategyV2 extends Stage.BaseStrategy
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 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 - The Stage associated with the participant.
      participantInfo - The ParticipantInfo in question.
      Returns:
      The desired Stage.SubscribeMediaType values for the associated participant.