0

所以我正在尝试将流式视频静音。现在我正在使用同一目录中的一个。

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 也是远程的,这也是一样的。有任何想法吗?

4

1 回答 1

0

哎呀。

“var so = new Sound(netStream);”

把它变成

“var so = new Sound();”

甚至不会给自己一分。

于 2011-03-22T22:05:23.597 回答