<!--
{
  "availability" : [
    "tvOS: 12.0.0 - 18.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "TVMLKit",
  "identifier" : "/documentation/TVMLKit/TVMediaItem/TimeRange",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "TVMLKit"
    ],
    "preciseIdentifier" : "c:objc(cs)TVTimeRange"
  },
  "title" : "TVMediaItem.TimeRange"
}
-->

# TVMediaItem.TimeRange

An object that defines a time range in a media item.

```
class TimeRange
```

## Topics

### Defining the Time Range

[`startTime`](/documentation/TVMLKit/TVMediaItem/TimeRange/startTime)

The time in a media item that determines when a time range begins.

[`endTime`](/documentation/TVMLKit/TVMediaItem/TimeRange/endTime)

The time in a media item that determines when a time range ends.

[`duration`](/documentation/TVMLKit/TVMediaItem/TimeRange/duration)

The duration of a time range in a media item.



---

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)