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

# SetStreamIsActive

Sets whether that the stream is active and doing IO.

## Declaration

```occ
kern_return_t SetStreamIsActive(bool in_is_active);
```

## Parameters

- `in_is_active`: True if the stream is enabled and doing IO; otherwise, false.

## Discussion

Discussion Changing the stream active state will send a notification to the host to update the object state if successful. The object’s work queue synchronizes access to the stream active state.

## See Also

### Working with stream formats

- [SetCurrentStreamFormat](videodriverkit/iouservideostream/setcurrentstreamformat.md)
- [GetCurrentStreamFormat](videodriverkit/iouservideostream/getcurrentstreamformat.md)
- [SetAvailableStreamFormats](videodriverkit/iouservideostream/setavailablestreamformats.md)
- [GetAvailableStreamFormats](videodriverkit/iouservideostream/getavailablestreamformats.md)
- [GetNumberAvailableStreamFormats](videodriverkit/iouservideostream/getnumberavailablestreamformats.md)
- [IOUserVideoStreamBasicDescription](videodriverkit/videodriverkit/iouservideostreambasicdescription.md)
- [GetStreamDirection](videodriverkit/iouservideostream/getstreamdirection.md)
- [IOUserVideoStreamDirection](videodriverkit/videodriverkit/iouservideostreamdirection.md)
- [GetStreamIsActive](videodriverkit/iouservideostream/getstreamisactive.md)
