<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: 15.4.0 -",
    "macOS: 12.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMediaIO",
  "identifier" : "/documentation/CoreMediaIO/CMIOExtensionStream/send(_:discontinuity:hostTimeInNanoseconds:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Media I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)CMIOExtensionStream(im)sendSampleBuffer:discontinuity:hostTimeInNanoseconds:"
  },
  "title" : "send(_:discontinuity:hostTimeInNanoseconds:)"
}
-->

# send(_:discontinuity:hostTimeInNanoseconds:)

Sends a media sample to stream client.

```
func send(_ sampleBuffer: CMSampleBuffer, discontinuity: CMIOExtensionStream.DiscontinuityFlags, hostTimeInNanoseconds: UInt64)
```

## Parameters

`sampleBuffer`

A sample buffer that contains the media data to send.

`discontinuity`

A flag that indicates whether the sample buffer represents a discontinuity boundary.

`hostTimeInNanoseconds`

The host time in nanoseconds when the stream captured the buffer.

## Discussion

Specify sample buffer timestamps that are relative to the clock timebase specified by the [`clockType`](/documentation/CoreMediaIO/CMIOExtensionStream/clockType-swift.property) property.

> Important:
> Attempting to send a sample buffer from a sink stream throws an exception.

---

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)