Skip to content

ScreenShareAddedEvent

Ajša Terko edited this page Sep 22, 2023 · 2 revisions



track

Description

Getter for the track field.

Returns

  • VideoTrack - Represents the local screen share video track.

Example

func onScreenShareAdded(_ screenShareAddedEvent: ScreenShareAddedEvent) {
    let localScreenShareTrack = screenShareAddedEvent.track
    if localScreenShareTrack != nil {
      if let localScreenShareView = self.localScreenShareView {
        localScreenShareTrack!.addRenderer(localScreenShareView)
      }
    }
}

Tutorials

Migration guides

Reference documentation

Clone this wiki locally