2011-03-22 60 views
0

因此,我正在嘗試靜音流式視頻。現在我正在一個目錄中工作。爲Actionscript-2中的流視頻靜音所有聲音

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也是遠程的,這也是一樣的。有任何想法嗎?

回答

0

Woops。

「var so = new Sound(netStream);」

將此成

「變種所以=新聲音();」

甚至沒有給自己點這個。