---
title: "stopRealtimeSampleDelivery(session:)"
framework: mediadevice
role: symbol
role_heading: Instance Method
path: "mediadevice/realtimesamplehandling/stoprealtimesampledelivery(session:)"
---

# stopRealtimeSampleDelivery(session:)

Called when the extension should stop realtime sample delivery.

## Declaration

```swift
@MainActor func stopRealtimeSampleDelivery(session: MediaOutputSession)
```

## Parameters

- `session`: The session to stop delivering samples for.

## Mentioned in

Creating a media device extension
