-
Notifications
You must be signed in to change notification settings - Fork 3
ParticipantScreenShareAddedEvent
Ajša Terko edited this page Sep 22, 2023
·
2 revisions
Getter for the participant
field.
-
Participant
- Represents the participant that turned on their screen share video.
func onParticipantScreenShareAdded(_ participantScreenShareAddedEvent: ParticipantScreenShareAddedEvent) {
os_log("%s added a screen share.", participantScreenShareAddedEvent.participant.endpoint.identifier())
}
Getter for the track
field.
-
VideoTrack
- Represents the participant's screen share track that was added.
func onParticipantScreenShareAdded(_ participantScreenShareAddedEvent: ParticipantScreenShareAddedEvent) {
let remoteScreenShareTrack = participantScreenShareAddedEvent.track
if remoteScreenShareTrack != nil {
if let remoteScreenShareView = self.remoteScreenShareView {
remoteScreenShareTrack!.addRenderer(remoteScreenShareView)
}
}
}