【发布时间】:2011-03-22 21:42:15
【问题描述】:
所以我正在尝试将流式视频静音。现在我正在使用同一目录中的一个。
var flvURL = 'flvInThisDirectory.flv';
var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var netStream:NetStream = new NetStream(netConn);
my_video2.attachVideo(netStream);
netStream.setBufferTime(0);
netStream.play(flvURL);
//all of the below are different, supposedly valid attempts to mute sound for
//this stream.. none of them work
var nsst = new SoundTransform(0);
nsst.volume = 0;
netStream.soundTransform=nsst;
netStream.fromSrvr.attachAudio(false);
var so = new Sound(netStream);
so.setVolume(0);
stopAllSounds();
但是还是有声音的。如果 URL 也是远程的,这也是一样的。有任何想法吗?
【问题讨论】:
标签: actionscript-2 cs3 netconnection