Hi all
I would like to ask, how can I adjust the volume for the video playback ?
here is the code
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
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!