---
title: "outputVideoEffectDidFail(for:withError:)"
framework: screencapturekit
role: symbol
role_heading: Instance Method
path: "screencapturekit/scstreamdelegate/outputvideoeffectdidfail(for:witherror:)"
---

# outputVideoEffectDidFail(for:withError:)

## Declaration

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

Discussion outputVideoEffectDidFailForStream:withError: 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.
