Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何控制通过 Video 对象播放的外部 FLV 或 MP4 视频的音频和平移级别?
在 AS 2 中,执行此操作的方法是创建一个空的影片剪辑,然后使用已弃用的 attachAudio 函数。我应该以同样的方式继续这样做,还是有更好的方法来控制音频而不必跳过箍?
我刚刚想通了。AS 3 中有一种更有效的方法来调整声音属性。
stream_ns.soundTransform.volume = vol; stream_ns.soundTransform.pan = panLevel;
ActionScript 3.0 API - NetStream#soundTransform