Skip to content

CameraVideoAddedEvent

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



track

Description

Getter for the track field.

Returns

  • VideoTrack - Represents the local camera video track.

Example

func onCameraVideoAddedEvent(_ cameraVideoAddedEvent: CameraVideoAddedEvent) {
    let localVideoTrack = cameraVideoAddedEvent.track
    if localVideoTrack != nil {
      if let localView = self.localView {
        localVideoTrack!.addRenderer(localView)
      }
    }
}

Tutorials

Migration guides

Reference documentation

Clone this wiki locally