我遇到了一个奇怪的问题,我正在使用 SoundTransform 函数仅在左侧扬声器上播放来自 red5 服务器的 RTMP 流的声音并降低其音量
stream.soundTransform = new SoundTransform (0.5,-1.0);
在 Actionscript 3.0 上,但它不起作用...
这有点奇怪,因为对于完全相同的代码,如果我输入音频 flv 文件或 mp3 文件而不是流,它工作正常,所以
SoundTransform
class 似乎对流没有影响。
最佳答案
首先,当然,尝试验证您的音频流是 立体声 ,然后如果您遇到安全错误(我认为不是这种情况),您可以将此块添加到 red5-web.xml
您的文件 live
应用程序 :
<bean id="rtmpSampleAccess" class="org.red5.server.stream.RtmpSampleAccess">
<!-- enable access to the raw audio -->
<property name="audioAllowed" value="true"/>
<!-- if you need access to the raw video, put it to true -->
<property name="videoAllowed" value="false"/>
</bean>
希望能有所帮助。
关于actionscript-3 - SoundTransform 平移不适用于 ActionScript 3.0 的 rtmp 流,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31598331/