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

# HandleChangeStreamIsActive

The system calls this virtual method when the stream active state changes.

## Declaration

```occ
virtual kern_return_t HandleChangeStreamIsActive(bool in_is_active);
```

## Parameters

- `in_is_active`: True if the stream is active; otherwise false.

## Return Value

Return Value kIOReturnSuccess on success. Upon success the stream’s active state should be changed.

## Discussion

Discussion The default implementation calls SetStreamIsActive() and returns kIOReturnSuccess. Subclass and override this method to handle changing stream active state and return kIOReturnSuccess upon success.

## See Also

### Managing stream changes

- [HandleChangeCurrentStreamFormat](videodriverkit/iouservideostream/handlechangecurrentstreamformat.md)
- [DeviceSampleRateChanged](videodriverkit/iouservideostream/devicesampleratechanged.md)
