SoundTransform panning does not work with rtmp stream using ActionScript 3.0

I had a strange problem: I use the SoundTransform function to play the sound of an RTMP stream from a red5 server only on the left speaker and to reduce its volume with

stream.soundTransform = new SoundTransform (0.5,-1.0); 

on ActionScript 3.0, but it doesn’t work ... This is somewhat strange, because for exactly the same code, if instead of a stream I enter a flv or mp3 file, it works fine, so the class SoundTransformdoes not seem to affect streams.

+4
source share
2 answers

-, , , , , , ( , ), 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>

, .

+1

, , , , ... , soundtransform . , ... ...

0

Source: https://habr.com/ru/post/1599399/


All Articles