---
title: init
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideostream/init
---

# init

Initializes an video stream.

## Declaration

```occ
virtual bool init(IOUserVideoDriver *in_driver, OSString *in_stream_uid, IOUserVideoStreamDirection in_direction, OSArray *in_video_buffers);
```

## Parameters

- `in_driver`: The video driver that owns this object.
- `in_stream_uid`: The identifier for the stream. Create a new UUID for each video stream you initialize — for example, using the genuuid command in Terminal. Don’t initialize another instance with the same UUID unless you ensure the previous instance has been deallocated.
- `in_direction`: The stream’s direction.
- `in_video_buffers`: An array of video buffers.

## Return Value

Return Value True on success.

## See Also

### Creating a video stream

- [Create](videodriverkit/iouservideostream/create.md)
- [IOUserVideoDriver](videodriverkit/iouservideodriver.md)
