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 に答える