Webrtc web audio analyzer for remote stream

We are creating an audio-video application that uses webRTC. The problem is that we cannot show the spectrum of the stream for the remote, but for the local we can.

// setup a analyzer var analyser = audioCtx.createAnalyser(); analyser.smoothingTimeConstant = 0.0; analyser.fftSize = 1024; // get the average for the first channel var array = new Uint8Array(analyser.frequencyBinCount); analyser.getByteFrequencyData(array); var average = getAverageVolume(array); 

For a local stream, we get the frequency values ​​inside the array, but for a remote stream we get zero values ​​inside the array.

If any help, we will be very grateful.

+4
source share
1 answer

A similar problem is described here https://code.google.com/p/chromium/issues/detail?id=241543
It seems that we do not have a specific solution due to a problem with the browser.

+1
source

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


All Articles