This is in the initial setup of a video player I've made:
__video = __videoHolder.__video;
__nc = new NetConnection();
__nc.connect(null);
__ns = new NetStream(__nc);
__video.attachVideo(__ns);
__videoHolder.attachAudio(__ns);
__volumeControl = new Sound(__videoHolder);
__volumeControl.setVolume(0) will then mute the video.
-josh
On Jun 22, 2006, at 1:55a, Elvin Tan wrote:
Hi Guys,
Adding mute buttons to some of my applications, got it working
fine for
mp3/sound objects.
I've a simple video streaming solution from FMS -> Flash Client.
Here's the code snippet.
nc1.showVideo = function(video) {
ns1= new NetStream(nc1);
ns1.setBufferTime(_global.buffertime);
video1.attachVideo(ns1);
video1.attachAudio(false);
video1.deblocking(_global.deblock);
video1.smoothing(_global.smoothing);
ns1.play(video);
}
(nc1 being the net connection to the FMS,)
The .atttachAudio(false); was supposed to didsable the audio, but
not, it
doesnt work :(
Any ideas ?
Elvin
-
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com