Package com.amazonaws.ivs.broadcast
Interface StageRenderer
- 
 @RequiresApi(api=28) public interface StageRendererAn interface to implement that can be used to build user interfaces. Implementing aStageRendererprovides all the necessary information about a Stage to create a complete UI.
- 
- 
Method SummaryAll Methods Instance Methods Default Methods Modifier and Type Method Description default voidonConnectionStateChanged(Stage stage, Stage.ConnectionState state, BroadcastException exception)The connection state of the associatedStagehas changed.default voidonError(BroadcastException exception)Triggers whenever an error occursdefault voidonParticipantJoined(Stage stage, ParticipantInfo participantInfo)A new participant has joined the Stage and started publishing.default voidonParticipantLeft(Stage stage, ParticipantInfo participantInfo)A new participant has left the Stage or stopped publishing.default voidonParticipantPublishStateChanged(Stage stage, ParticipantInfo participantInfo, Stage.PublishState publishState)The publish state of a participant has changed.default voidonParticipantSubscribeStateChanged(Stage stage, ParticipantInfo participantInfo, Stage.SubscribeState subscribeState)The subscribe state of a participant has changed.default voidonStreamsAdded(Stage stage, ParticipantInfo participantInfo, java.util.List<StageStream> streams)Triggers whenever a remote audio/video stream is added.default voidonStreamsMutedChanged(Stage stage, ParticipantInfo participantInfo, java.util.List<StageStream> streams)Triggers whenever a stream is muted, the stream could either beLocalStageStreamorStageStreamdefault voidonStreamsRemoved(Stage stage, ParticipantInfo participantInfo, java.util.List<StageStream> streams)Triggers whenever a remote audio/video stream is removed.
 
- 
- 
- 
Method Detail- 
onErrordefault void onError(@NonNull BroadcastException exception)Triggers whenever an error occurs- Parameters:
- exception- The error that occured
 
 - 
onConnectionStateChangeddefault void onConnectionStateChanged(@NonNull Stage stage, @NonNull Stage.ConnectionState state, @Nullable BroadcastException exception)The connection state of the associatedStagehas changed.- Parameters:
- stage- The- Stagethat had the connection state change.
- state- The new connection state of the Stage.
- exception- An error, if the state change was caused by an error.
 
 - 
onParticipantJoineddefault void onParticipantJoined(@NonNull Stage stage, @NonNull ParticipantInfo participantInfo)A new participant has joined the Stage and started publishing.- Parameters:
- stage- The- Stagethat the participant joined and started publishing.
- participantInfo- A description of the participant that joined and started publishing.
 
 - 
onParticipantLeftdefault void onParticipantLeft(@NonNull Stage stage, @NonNull ParticipantInfo participantInfo)A new participant has left the Stage or stopped publishing.- Parameters:
- stage- The- Stagethat the participant left or stopped publishing.
- participantInfo- A description of the participant that left or stopped publishing.
 
 - 
onParticipantPublishStateChangeddefault void onParticipantPublishStateChanged(@NonNull Stage stage, @NonNull ParticipantInfo participantInfo, @NonNull Stage.PublishState publishState)The publish state of a participant has changed.- Parameters:
- stage- The- Stageassociated with the participant that changed their publish state.
- participantInfo- The participant that changed their publish state.
- publishState- The new publish state.
 
 - 
onParticipantSubscribeStateChangeddefault void onParticipantSubscribeStateChanged(@NonNull Stage stage, @NonNull ParticipantInfo participantInfo, @NonNull Stage.SubscribeState subscribeState)The subscribe state of a participant has changed.- Parameters:
- stage- The- Stageassociated with the participant that changed their subscribe state.
- participantInfo- The participant that changed their subscribe state.
- subscribeState- The new subscribe state.
 
 - 
onStreamsAddeddefault void onStreamsAdded(@NonNull Stage stage, @NonNull ParticipantInfo participantInfo, @NonNull java.util.List<StageStream> streams)Triggers whenever a remote audio/video stream is added. This is the result of subscription state change- Parameters:
- stage- The- Stageassociated with the added streams
- participantInfo- The- ParticipantInfoassociated with the added streams.
- streams- A list of added streams
 
 - 
onStreamsRemoveddefault void onStreamsRemoved(@NonNull Stage stage, @NonNull ParticipantInfo participantInfo, @NonNull java.util.List<StageStream> streams)Triggers whenever a remote audio/video stream is removed. This could be caused by either remote participant is no longer publishing or network issue- Parameters:
- stage- The- Stageassociated with the removed streams
- participantInfo- The- ParticipantInfoassociated with the removed streams.
- streams- A list of removed streams
 
 - 
onStreamsMutedChangeddefault void onStreamsMutedChanged(@NonNull Stage stage, @NonNull ParticipantInfo participantInfo, @NonNull java.util.List<StageStream> streams)Triggers whenever a stream is muted, the stream could either beLocalStageStreamorStageStream- Parameters:
- stage- The- Stageassociated with the updated streams
- participantInfo- The- ParticipantInfoassociated with the updated streams.
- streams- A list of streams that have had their mute state changed
 
 
- 
 
-