IVSStageStrategyV2
Objective-C
@protocol IVSStageStrategyV2 <IVSBaseStageStrategy>
Swift
protocol IVSStageStrategyV2 : IVSBaseStageStrategy
A strategy that names the desired subscription as a set of media types.
Adopt this instead of IVSStageStrategy to subscribe to subtitles, or to any combination
IVSStageSubscribeType cannot express, such as video without audio.
-
Return the media types desired from the associated participant. An empty value subscribes to nothing. This will only be invoked on participants that have the subscribe capability.
Declaration
Objective-C
- (IVSStageSubscribeMediaTypes)stage:(nonnull IVSStage *)stage shouldSubscribeToParticipantTypes:(nonnull IVSParticipantInfo *)participant;Swift
func stage(_ stage: IVSStage, shouldSubscribeToParticipantTypes participant: IVSParticipantInfo) -> IVSStageSubscribeMediaTypesParameters
stageThe
IVSStageassociated with the participant.participantThe participant in question.