# Question about controlling audio through streaming video

**URL:** <https://forum.kirupa.com/t/question-about-controlling-audio-through-streaming-video/151569>\
**Category:** flash\
**Created:** [June 16, 2005, 12:29pm UTC](https://forum.kirupa.com/t/question-about-controlling-audio-through-streaming-video/151569 "2005-06-16T12:29:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkanakaraj](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jkanakaraj](https://forum.kirupa.com/u/jkanakaraj)\
**Post date:** [June 16, 2005, 12:29pm UTC](https://forum.kirupa.com/t/question-about-controlling-audio-through-streaming-video/151569/1 "2005-06-16T12:29:55Z")

</div>

Is there anyway to control the sound of a streaming .flv movie, without having to rely on the Media Components? Basically, is it possible to build your own set of media components? This is very easy to do if you embed the file locally, but I’m having trouble streaming it.

This is what I’m using to stream the media

```auto

var computeBW = true;
var nc:NetConnection = new NetConnection();

nc.onBWCheck = function (arg) {
	return;
}
//---------------------------------------------------------------------
nc.onBWDone = function(bw) {
	if(bw >= 300) {
		ns.play("15607/19879_vid_hi")
		trace("HighBandwidth");
	}
	else if(bw >=100) {
		ns.play("15607/19879_vid_med")
		trace("MediumBandwidth");
	}
	else {
		ns.play("15607/19879_vid_lo")
		trace("LowBandwidth");
	}
}

//---------------------------------------------------------------------

nc.connect("rtmpt://video:80", computeBW);
var ns:NetStream = new NetStream(nc);
videoObject.attachVideo(ns);
ns.setBufferTime(2);

```

Now, In a button on the stage, shouldn’t this in theory work?

```auto

on (press) {

ns.setVolume(0);

}

```

Does anyone know if there is any documentation on this subject floating around?
