---
title: duration
framework: carplay
role: symbol
role_heading: Instance Property
path: carplay/cpplaybackconfiguration/duration
---

# duration

The total duration of the media content as a CMTime value. Provide 0 if the duration of the content is unknown or unavailable, for example in live-streaming content.

## Declaration

```swift
var duration: CMTime { get }
```
