# Looking for a way to netStream.hasVideo()

**URL:** https://forum.kirupa.com/t/looking-for-a-way-to-netstream-hasvideo/234003
**Category:** Uncategorized
**Created:** [July 29, 2007, 1:34pm UTC](https://forum.kirupa.com/t/looking-for-a-way-to-netstream-hasvideo/234003 "2007-07-29T13:34:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vooyeq](https://avatars.discourse-cdn.com/v4/letter/v/e36b37/32.png) [@vooyeq](https://forum.kirupa.com/u/vooyeq)
#### Post date: [July 29, 2007, 1:34pm UTC](https://forum.kirupa.com/t/looking-for-a-way-to-netstream-hasvideo/234003/1 "2007-07-29T13:34:32Z")

</div>

Hi, I’m trying to do some live broadcasting from user webcams and microphones. It goes more less this way:

```auto

camera = Camera.get()
microphone = Microphone.get()

if( camera != null && !camera.muted )
netStream.attachVideo(camera);

if( microphone != null && !microphone.muted )
netStream.attachAudio(microphone);

netStream.publish("mystream", "live");

```

Now clients subscribe to the stream using:

```auto

clientnetStream.play("mystream");
mc.attachMovie(clientnetStream);

```

The question is, how can i check whether incoming stream has only audio part or both audio/video part available (so i can display an icon to indicate the incoming stream is audio only) ?
