Skip to content

CallUpdatedEvent

Adnan Arnautović edited this page Jan 26, 2023 · 1 revision

localVideoTrack

Description

Getter for the localVideoTrack field.

Returns

  • VideoTrack? - Value of the localVideoTrack field representing local video stream. nil if there is no local video.

Example

func onUpdated(_ callUpdatedEvent: CallUpdatedEvent) {
    let localVideoTrack = callUpdatedEvent.localVideoTrack
    if localVideoTrack != nil {
      if let localView = self.localView {
        localVideoTrack!.addRenderer(localView)
      }
    }
}

remoteVideoTrack

Description

Getter for the remoteVideoTrack field.

Returns

  • VideoTrack? - Value of the remoteVideoTrack field representing remote video stream. nil if there is no remote video.

Example

func onUpdated(_ callUpdatedEvent: CallUpdatedEvent) {
    let remoteVideoTrack = callUpdatedEvent.remoteVideoTrack
    if remoteVideoTrack != nil {
      if let remoteView = self.remoteView {
        remoteVideoTrack!.addRenderer(remoteView)
      }
    }
}
Clone this wiki locally