<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureInput/Port",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureInputPort"
  },
  "title" : "AVCaptureInput.Port"
}
-->

# AVCaptureInput.Port

An object that represents a stream of data that a capture input provides.

```
class Port
```

## Overview

Instances of [`AVCaptureInput`](/documentation/AVFoundation/AVCaptureInput) have one or more input ports, one for each data stream they can produce. For example, an [`AVCaptureDeviceInput`](/documentation/AVFoundation/AVCaptureDeviceInput) object presenting one video data stream has one port.

## Topics

### Inspecting an input port

[`isEnabled`](/documentation/AVFoundation/AVCaptureInput/Port/isEnabled)

A Boolean value that indicates whether the port is in an enabled state.

[`mediaType`](/documentation/AVFoundation/AVCaptureInput/Port/mediaType)

The media type of the port.

[`formatDescription`](/documentation/AVFoundation/AVCaptureInput/Port/formatDescription)

A description of the port format.

[`sourceDeviceType`](/documentation/AVFoundation/AVCaptureInput/Port/sourceDeviceType)

The device type of the source camera that provides data to the port.

[`sourceDevicePosition`](/documentation/AVFoundation/AVCaptureInput/Port/sourceDevicePosition)

The position of the source device providing input through this port.

[`clock`](/documentation/AVFoundation/AVCaptureInput/Port/clock)

An object that represents the capture device’s clock.

### Observing format changes

[`formatDescriptionDidChangeNotification`](/documentation/AVFoundation/AVCaptureInput/Port/formatDescriptionDidChangeNotification)

A notification the system posts when the capture input port’s format description changes.

### Accessing the input

[`input`](/documentation/AVFoundation/AVCaptureInput/Port/input)

The input object that owns the port.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)