【问题标题】:Muting all sound for a streaming video in Actionscript-2在 Actionscript-2 中为流媒体视频静音
【发布时间】: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


    【解决方案1】:

    哎呀。

    "var so = new Sound(netStream);"

    把它变成

    "var so = new Sound();"

    甚至不会给自己一分。

    【讨论】:

      猜你喜欢
      • 2013-02-24
      • 2013-05-16
      • 1970-01-01
      • 1970-01-01
      • 2011-10-20
      • 1970-01-01
      • 1970-01-01
      • 2016-06-12
      相关资源
      最近更新 更多