---
title: SetHasVideo
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudiobox/sethasvideo
---

# SetHasVideo

Sets a Boolean value that indicates the box’s video support.

## Declaration

```occ
kern_return_t SetHasVideo(bool in_has_video);
```

## Parameters

- `in_has_video`: true if the box supports video; otherwise, false.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. For a list of error codes, see Error Codes.

## Discussion

Discussion If successful, changing the video support value sends a notification to the host to update the object state. This method synchronizes by using the work queue created by the object.

## See Also

### Determining Media Support

- [SetHasAudio](audiodriverkit/iouseraudiobox/sethasaudio.md)
- [HasAudio](audiodriverkit/iouseraudiobox/hasaudio.md)
- [HasVideo](audiodriverkit/iouseraudiobox/hasvideo.md)
- [SetHasMIDI](audiodriverkit/iouseraudiobox/sethasmidi.md)
- [HasMIDI](audiodriverkit/iouseraudiobox/hasmidi.md)
