<!--
{
  "availability" : [
    "DriverKit: 27.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoDriverKit",
  "identifier" : "/documentation/VideoDriverKit/IOUserVideoStream/init",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "VideoDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserVideoStream@F@init#*$@S@IOUserVideoDriver#*$@S@OSString#$@N@VideoDriverKit@E@IOUserVideoStreamDirection#*$@S@OSArray#"
  },
  "title" : "init"
}
-->

# init

Initializes an video stream.

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

true on success.

---

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)