<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ScreenCaptureKit",
  "identifier" : "/documentation/ScreenCaptureKit/SCStreamDelegate/outputVideoEffectDidFail(for:withError:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ScreenCaptureKit"
    ],
    "preciseIdentifier" : "c:objc(pl)SCStreamDelegate(im)outputVideoEffectDidFailForStream:withError:"
  },
  "title" : "outputVideoEffectDidFail(for:withError:)"
}
-->

# outputVideoEffectDidFail(for:withError:)

```
optional func outputVideoEffectDidFail(for stream: SCStream, withError error: any Error)
```

## Parameters

`stream`

the SCStream object

`error`

the error describing why the video effect failed

## Discussion\abstract outputVideoEffectDidFailForStream:withError:
\discussion Notifies the delegate that the video effect failed with an error. This can occur if the camera device is unavailable, permissions are missing, or an internal error occurs.

---

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)