# \[How-to\] adjust volume in NetStream video?

**URL:** https://forum.kirupa.com/t/how-to-adjust-volume-in-netstream-video/228997
**Category:** Uncategorized
**Created:** [June 13, 2007, 7:16am UTC](https://forum.kirupa.com/t/how-to-adjust-volume-in-netstream-video/228997 "2007-06-13T07:16:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![manfree](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@manfree](https://forum.kirupa.com/u/manfree)
#### Post date: [June 13, 2007, 7:16am UTC](https://forum.kirupa.com/t/how-to-adjust-volume-in-netstream-video/228997/1 "2007-06-13T07:16:33Z")

</div>

Hi all

I would like to ask, how can I adjust the volume for the video playback ?  
here is the code

```auto
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
video.attachNetStream(ns);
/ **************************
video.volume(0);
************************** /
ns.play("video.flv");

```

thanks

---

<div class="post-metadata">

### Author: ![phil\_harlow](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@phil\_harlow](https://forum.kirupa.com/u/phil_harlow)
#### Post date: [May 26, 2008, 10:44pm UTC](https://forum.kirupa.com/t/how-to-adjust-volume-in-netstream-video/228997/2 "2008-05-26T22:44:23Z")

</div>

I think what they mean about the displayobjectcontainer, is that once the Video object is added to the stage into a displayobjectcontainer (eg stage, sprite1, etc) you can then control the sounds for the whole displayobject container, rather than just the Video object.

eg  
\_sprite = new Sprite();  
addChild(\_sprite);  
\_video = new Video();  
\_sprite.addChild(\_video);  
\_sprite.soundTransform = new SoundTransform(0.5);

vs \_video = new Video();  
addChild(\_video);  
\_video.soundTransform = new SoundTransform(0.5);

Only time I could see this being prefered is if you had several sound-emitting objects on one displayobjectcontainer and you wanted them all to change volume/panning the same.

Hope that helps!
