<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 10.0.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeKit",
  "identifier" : "/documentation/HomeKit/HMCameraStreamControlDelegate/cameraStreamControl(_:didStopStreamWithError:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "HomeKit"
    ],
    "preciseIdentifier" : "c:objc(pl)HMCameraStreamControlDelegate(im)cameraStreamControl:didStopStreamWithError:"
  },
  "title" : "cameraStreamControl(_:didStopStreamWithError:)"
}
-->

# cameraStreamControl(_:didStopStreamWithError:)

Tells the delegate that the camera stream has stopped.

```
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.

## Discussion

---

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)