---
title: AddStream
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideodevice/addstream
---

# AddStream

Adds an video stream to the device.

## Declaration

```occ
kern_return_t AddStream(IOUserVideoStream *in_stream);
```

## Parameters

- `in_stream`: IOUserVideoStream to add to the device.

## Return Value

Return Value kIOReturnSuccess if stream was successfully added.

## Discussion

Discussion The stream’s reference count will be incremented if it was successfully added.

## See Also

### Working with video streams

- [RemoveStream](videodriverkit/iouservideodevice/removestream.md)
- [IOUserVideoStream](videodriverkit/iouservideostream.md)
