---
title: "cameraStreamControl(_:didStopStreamWithError:)"
framework: homekit
role: symbol
role_heading: Instance Method
path: "homekit/hmcamerastreamcontroldelegate/camerastreamcontrol(_:didstopstreamwitherror:)"
---

# cameraStreamControl(_:didStopStreamWithError:)

Tells the delegate that the camera stream has stopped.

## Declaration

```swift
optional func cameraStreamControl(_ cameraStreamControl: HMCameraStreamControl, didStopStreamWithError error: (any Error)?)
```

## Parameters

- `cameraStreamControl`: The stream control responsible for the camera stream.
- `error`: If the stream stops because of an error, this is an error object with details; nil otherwise.

## See Also

### Observing stream activity

- [cameraStreamControlDidStartStream(_:)](homekit/hmcamerastreamcontroldelegate/camerastreamcontroldidstartstream(_:).md)
