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
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?
on (press) {
ns.setVolume(0);
}
Does anyone know if there is any documentation on this subject floating around?