Display microphone activity in flex

I want to display the real-time activity bar for a microphone in flex. This is similar to the vertical bar that can be seen when the microphone settings tab of the flash settings is displayed.

Any inline component or link would help.

thanks

+4
source share
2 answers

Since no one answered, I will answer the question of how I finally did it. I used the image and activityLevel attribute for the microphone to show the sound of the sound in real time on the microphone. Since this activityLevel is not binding, I had to use a timer.

Also do not forget to get the actual activityLevel value, except for the call

microphone = Microphone.getMicrophone ();

also use

microphone.setLoopBack (true);

Microphone.setUseEchoSuppression (true);

Otherwise, the value of activityLevel is -1. The second item is not mentioned in flex docs

+3
source

yes, the fact is that you need to use a microphone. either with microphone.setLoopBack (true); or netstream.attachAudio (microphone)

0
source

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


All Articles