---
title: "init(participantUUID:streamDirection:)"
framework: sensitivecontentanalysis
role: symbol
role_heading: Initializer
path: "sensitivecontentanalysis/scvideostreamanalyzer/init(participantuuid:streamdirection:)"
---

# init(participantUUID:streamDirection:)

Creates a video stream analyzer for the given call participant and stream option.

## Declaration

```swift
init(participantUUID: String, streamDirection: SCVideoStreamAnalyzer.StreamDirection) throws
```

## Parameters

- `participantUUID`: A unique identifier that you provide to distinguish among multiple individuals on a conference call. Set this argument to the same value per person on the call, if your app supports multiple streams per person.
- `streamDirection`: An option that indicates whether the stream comes from the device’s camera or from a remote individual signed in to the call.

## Discussion

Discussion important: This class works only when the Communication Safety parental control in Screen Time is enabled, or when the Sensitive Content Warnings setting is on. This method throws an error if both settings are off, or if the device doesn’t support analysis for the specified stream direction.

## See Also

### Creating a video stream analyzer

- [SCVideoStreamAnalyzer.StreamDirection](sensitivecontentanalysis/scvideostreamanalyzer/streamdirection.md)
