IVSStageRenderer
Objective-C
@protocol IVSStageRenderer <NSObject>
Swift
protocol IVSStageRenderer : NSObjectProtocol
A protocol to implement that can be used to build user interfaces.
Implementing a IVSStageRenderer provides all the necessary information about a Stage to create a complete UI.
-
The connection state of the associated
IVSStagehas changed.Declaration
Objective-C
- (void)stage:(nonnull IVSStage *)stage didChangeConnectionState:(IVSStageConnectionState)connectionState withError:(nullable NSError *)error;Swift
optional func stage(_ stage: Any!, didChangeConnectionState connectionState: Any!, withError error: Error?)Parameters
stageThe
IVSStagethat had the connection state change.connectionStateThe new connection state of the Stage.
errorAn error, if the state unexpected turned to disconnected.
-
A new participant has joined the Stage and started publishing.
Declaration
Objective-C
- (void)stage:(nonnull IVSStage *)stage participantDidJoin:(nonnull IVSParticipantInfo *)participant;Swift
optional func stage(_ stage: Any!, participantDidJoin participant: IVSParticipantInfo)Parameters
stageThe
IVSStagethat the participant joined and started publishing.participantA description of the participant that joined and started publishing.
-
A participant has left the Stage or stopped publishing.
Declaration
Objective-C
- (void)stage:(nonnull IVSStage *)stage participantDidLeave:(nonnull IVSParticipantInfo *)participant;Swift
optional func stage(_ stage: Any!, participantDidLeave participant: IVSParticipantInfo)Parameters
stageThe
IVSStagethat the participant left or stopped publishing.participantA description of the participant that left or stopped publishing.
-
The publish state of a participant has changed.
Declaration
Objective-C
- (void)stage:(nonnull IVSStage *)stage participant:(nonnull IVSParticipantInfo *)participant didChangePublishState:(IVSParticipantPublishState)publishState;Swift
optional func stage(_ stage: Any!, participant: IVSParticipantInfo, didChange publishState: IVSParticipantPublishState)Parameters
stageThe
IVSStageassociated with the participant that changed their publish state.participantThe participant that changed their publish state.
publishStateThe new publish state.
-
The subscribe state of a participant has changed.
Declaration
Objective-C
- (void)stage:(nonnull IVSStage *)stage participant:(nonnull IVSParticipantInfo *)participant didChangeSubscribeState:(IVSParticipantSubscribeState)subscribeState;Swift
optional func stage(_ stage: Any!, participant: IVSParticipantInfo, didChange subscribeState: IVSParticipantSubscribeState)Parameters
stageThe
IVSStageassociated with the participant that changed their subscribe state.participantThe participant that changed their publish state.
subscribeStateThe new subscribe state.
-
A participant added media streams that can be rendered locally or attached to an
IVSBroadcastSession.Declaration
Objective-C
- (void)stage:(nonnull IVSStage *)stage participant:(nonnull IVSParticipantInfo *)participant didAddStreams:(nonnull NSArray<IVSStageStream *> *)streams;Swift
optional func stage(_ stage: Any!, participant: IVSParticipantInfo, didAdd streams: [IVSStageStream])Parameters
stageThe
IVSStageassociated with the new media streams.participantThe participant associated with the new media streams.
streamsThe new media streams.
-
A participant removed media streams. They could have unpublished or stopped sharing a certain media type.
Declaration
Objective-C
- (void)stage:(nonnull IVSStage *)stage participant:(nonnull IVSParticipantInfo *)participant didRemoveStreams:(nonnull NSArray<IVSStageStream *> *)streams;Swift
optional func stage(_ stage: Any!, participant: IVSParticipantInfo, didRemove streams: [IVSStageStream])Parameters
stageThe
IVSStageassociated with the removed media streams.participantThe participant associated with the removed media streams.
streamsThe removed media streams.
-
Some media streams have had their muted status changed.
Declaration
Objective-C
- (void)stage:(nonnull IVSStage *)stage participant:(nonnull IVSParticipantInfo *)participant didChangeMutedStreams:(nonnull NSArray<IVSStageStream *> *)streams;Swift
optional func stage(_ stage: Any!, participant: IVSParticipantInfo, didChangeMutedStreams streams: [IVSStageStream])Parameters
stageThe
IVSStageassociated with the updated media streams.participantThe participant associated with the updated media streams.
streamsThe media streams that have had their mute status changed.
IVSStageRenderer Protocol Reference