---
title: endSession()
framework: videotoolbox
role: symbol
role_heading: Instance Method
path: videotoolbox/vtframeprocessor/endsession()
---

# endSession()

Performs all necessary tasks to end the session.

## Declaration

```swift
func endSession()
```

## Discussion

Discussion After this call completes, no new frames can be processed unless startSession(configuration:) is called again.

## See Also

### Processing frames

- [startSession(configuration:)](videotoolbox/vtframeprocessor/startsession(configuration:).md)
- [process(parameters:)](videotoolbox/vtframeprocessor/process(parameters:).md)
- [process(parameters:completionHandler:)](videotoolbox/vtframeprocessor/process(parameters:completionhandler:).md)
- [process(with:parameters:)](videotoolbox/vtframeprocessor/process(with:parameters:).md)
