flex how to control the audio volume of a video
-
05-07-2019 - |
Question
I have code like this:
private var video:Video;
...
private function init():void {
...
nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
ns.play("my flv url");
ns.client = nsClient;
video = new Video();
video.attachNetStream(ns);
videoDisplay.addChild(video);
}
Which property should I change or bind a slider to in order to be able to change the sound volume?
Solution
you can set it like this in AS3 VideoDisplay.voulme = 0.5;
else in MXML style you can do as shown here along with a binded slider.
OTHER TIPS
You should use the VideoDisplay object, which has a volume property.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow