热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

控制FLV/MP4音频和声像级别-ControlFLV/MP4Audio&PanLevels

HowcanIcontroltheaudio&panlevelsofanexternalFLVorMP4videothatIamplayingthrou

How can I control the audio & pan levels of an external FLV or MP4 video that I am playing through a Video object?

如何控制通过Video对象播放的外部FLV或MP4视频的音频和声像级别?

In AS 2, the way to do this was to create an empty movieclip and then use the attachAudio function, which has been deprecated. Should I go about doing this the same way or is there a better way to control the audio without having to jump through hoops?

在AS 2中,执行此操作的方法是创建一个空的movieclip,然后使用不推荐使用的attachAudio函数。我应该以同样的方式做到这一点,还是有更好的方法来控制音频而不必跳过箍?

1 个解决方案

#1


I just figured it out. There is a much more effective way in AS 3 to adjust sound properties.

我刚想通了。在AS 3中有一种更有效的方法来调整声音属性。

stream_ns.soundTransform.volume = vol;
stream_ns.soundTransform.pan = panLevel;

ActionScript 3.0 API - NetStream#soundTransform

ActionScript 3.0 API - NetStream#soundTransform


推荐阅读
author-avatar
Yunir_944
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有