所以我在试着静音一段流视频。现在,我在同一目录中使用一个。
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也是远程的,这也是相同的。有什么想法吗?
发布于 2011-03-23 06:05:24
哇哦。
"var so =新声音(NetStream);“
把这个写成
"var so = new Sound();“
我甚至都不会给自己加一分。
https://stackoverflow.com/questions/5398192
复制相似问题