在 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 是远程的,情况也是如此。有什么想法吗?
So I'm trying to mute a streamed video. For now I'm working with one in the same directory.
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();
But there's still sound. This is the same if the URL is remote, too. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
糟糕。
“var so = new Sound(netStream);”
将其变为
“var so = new Sound();”
甚至都不会给自己一分。
Woops.
"var so = new Sound(netStream);"
Make this into
"var so = new Sound();"
not even gonna give myself a point for this one.