I use IP cameras + RTSPToWeb
When using MSE & audio AAC there are no problems with visualization. Everything works fine.
When using WebRTC & audio G.711A there is no visualization, although the sound from the camera is audible. No errors!
Connection code:
...................................
const mediaStream = new MediaStream();
audioEl.srcObject = mediaStream;
...................................
const audioEl = document.getElementById('liveStream');
var audioMotion = new AudioMotionAnalyzer(
document.getElementById('audioVisualisation'),
{
source: audioEl,
height: 100,
}
);
When doing audioEl .srcObject.getAudioTracks() I get an audio track.
I can't figure out why visualization doesn't work for MediaStream()
I use IP cameras + RTSPToWeb
When using MSE & audio AAC there are no problems with visualization. Everything works fine.
When using WebRTC & audio G.711A there is no visualization, although the sound from the camera is audible. No errors!
Connection code:
When doing
audioEl .srcObject.getAudioTracks()I get an audio track.I can't figure out why visualization doesn't work for MediaStream()